Commit graph

75 commits

Author SHA1 Message Date
Justin Ethier
6068b30ded Issue #530 - Handle parsing of +i / -i 2024-03-13 19:31:58 -07:00
Justin Ethier
334787b6d6 Issue #517 - Raise error when reading invalid number
Previously #f was returned in this case but it is more correct to raise an error instead. This prevents weird edge cases and is more consistent with other schemes.
2023-12-05 18:14:52 -08:00
Justin Ethier
ab25e360a9 Merge #497 2022-12-09 13:29:56 -08:00
Justin Ethier
dcf51c86a6 Avoid warning from C compiler 2021-03-18 13:22:44 -04:00
Justin Ethier
b350a0cf33 Prevent overwritting evn's when importing from repl 2020-07-27 17:53:31 -04:00
Justin Ethier
7dd6ddfc71 Make error messages with location info consistent 2020-07-23 12:44:12 -04:00
Justin Ethier
0d25e5e122 Clean up error messages, provide filename if able 2020-07-21 22:35:47 -04:00
Justin Ethier
7794cbd98f Allow (include) to read line information 2020-07-21 12:42:50 -04:00
Justin Ethier
f3c9874e29 WIP 2020-07-20 14:52:46 -04:00
Justin Ethier
858cac4eee Relocating source list to (scheme base) 2020-07-19 22:58:01 -04:00
Justin Ethier
f4ac3c7cb7 WIP 2020-07-17 23:34:46 -04:00
Justin Ethier
cb08f60ec2 Added code to test location storage 2020-07-17 22:23:02 -04:00
Justin Ethier
a4421267e4 Build out infrastructure to save source info
Need to be able to save source object / line number data so we can use it for compiler error messages.
Trying to be careful not to make this hurt performance too much.
2020-07-16 23:10:48 -04:00
Justin Ethier
7751464294 Added TODO's, start to flesh out changes 2020-07-15 23:01:51 -04:00
Justin Ethier
b3bf701f6f Remove debug code 2018-08-06 21:28:17 -04:00
Justin Ethier
edf56a4c15 Added debugging 2018-08-06 20:43:15 -04:00
Justin Ethier
8714206b9f Issue #55 - Create a complex num object 2018-05-07 20:55:02 -04:00
Justin Ethier
c480470123 Issue #55 - parse out read and imag for complex 2018-05-09 13:41:39 -04:00
Justin Ethier
9e17ea628b Issue #55 - WIP parsing complex numbers 2018-05-07 19:11:12 -04:00
Justin Ethier
d03258c83a Make read a little faster by streamlining main path
Move 2 comparisons underneath the (vector?) case, so in the normal case they can be skipped.
2017-08-23 17:26:20 +00:00
Justin Ethier
821e04eb34 Cache symbols instead of computing them each time 2017-08-23 16:56:39 +00:00
Justin Ethier
64a562812b Mark additional function as inline 2017-08-23 16:27:57 +00:00
Justin Ethier
73b166c65f Added inline functions 2017-08-22 18:58:36 -04:00
Justin Ethier
d471813a37 Faster parsing of numbers 2017-08-21 10:39:03 +00:00
Justin Ethier
e01815ae21 Bug fixes 2017-08-18 17:52:06 -04:00
Justin Ethier
68bf9e3316 Remove old code 2017-08-18 17:06:21 -04:00
Justin Ethier
f61ba6ee4a Cleanup 2017-08-17 16:36:01 +00:00
Justin Ethier
b997d10f43 Cut-over to new reader 2017-08-17 13:54:53 +00:00
Justin Ethier
af30ac8066 Cut over to faster reader for files 2017-08-16 14:36:37 +00:00
Justin Ethier
3072000956 Remove old comments 2017-08-07 18:52:49 -04:00
Justin Ethier
57926605a5 For empty string literals, return the empty symbol 2017-06-07 17:57:49 +00:00
Justin Ethier
70c5212fd2 Added inlines back 2017-04-29 01:27:03 +00:00
Justin Ethier
4d7abf3b8c Fix to coerce inf result 2017-02-21 04:32:07 -05:00
Justin Ethier
17be2dc09a Recognize #true and #false 2016-11-19 18:37:20 +00:00
Justin Ethier
42d8bc5846 include-ci, alias to include 2016-11-19 14:33:45 +00:00
Justin Ethier
4bfece04a3 Issue #137 - added the include macro 2016-11-19 11:29:35 +00:00
Justin Ethier
ddefaa4167 Recognize | and x char escapes 2016-11-19 04:07:46 +00:00
Justin Ethier
ac23534bde Handle vertical line char in strings 2016-11-19 03:22:46 +00:00
Justin Ethier
b55ff76701 Issue #112 - Final version of the reader 2016-10-24 01:41:39 +00:00
Justin Ethier
d6881ed7d9 Parse inf/nan directly 2016-10-24 17:40:28 -04:00
Justin Ethier
7b1e3ce5f7 Issue #112: Allow reader to recognize inf and nan 2016-10-24 00:24:16 +00:00
Justin Ethier
e719eaeeb3 Reverted previous change 2016-10-19 01:15:29 -04:00
Justin Ethier
b44308f03b Minor speed increase 2016-10-18 21:31:07 -04:00
Justin Ethier
3ee2b290fb Performance improvements 2016-10-18 21:27:58 -04:00
Justin Ethier
86e3b0fbd9 Code formatting 2016-10-15 18:39:49 -04:00
Justin Ethier
aa822470ce Performance improvements 2016-10-15 18:34:46 -04:00
Justin Ethier
64d39650fb Handle more escaped chars 2016-08-08 17:40:57 -04:00
Justin Ethier
1048375003 Read literal whitespace chars 2016-04-01 22:41:01 -04:00
Justin Ethier
949aef875f Read hex scalar values 2016-04-02 01:14:57 -04:00
Justin Ethier
ad94e0eed9 Issue #52 - Recognize flonums with a leading dot 2016-04-01 03:29:08 -04:00