Closed ilammy closed 7 years ago
Implement basic reader that is able to scan a string and break it into tokens, producing a list of tokens and their locations as well as diagnostics.
Tracking productions specified by R7RS:
|
.
/
@
+
-
i
#\
#\x
"
(
)
#(
#u8(
'
`
,
,@
; line
#| #| nested |# |#
#; (s expr)
Yes, there are a lot of them. And this does not include recovery code paths.
Implement basic reader that is able to scan a string and break it into tokens, producing a list of tokens and their locations as well as diagnostics.
Tracking productions specified by R7RS:
|
symbol-element*|
.
dot-subsequent subsequent*.
dot-subsequent subsequent*/
uinteger-R.
digit-10* suffix.
digit-10+ suffix@
real-R+
|-
) real-R?i
i
+
|-
) ureal-R?i
i
#\
any-character#\
character-name#\x
Unicode-scalar"
string-element*"
(
|)
|#(
|#u8(
|'
|`
|,
|,@
|.
; line
#| #| nested |# |#
#; (s expr)
Yes, there are a lot of them. And this does not include recovery code paths.