softwarelanguageslab / maf

Static Analysis Framework for Modular Analyses
Other
13 stars 12 forks source link

Add support for multi-line and other comments #31

Open bramvdbogaerde opened 2 years ago

bramvdbogaerde commented 2 years ago

Currently the S-expression lexer and parser only support comments that start with ";". However Racket and other Scheme variants also support more types of comments, a notable one is the multi-line comment that starts with #|.

Other types of comments supported in Racket: https://docs.racket-lang.org/reference/reader.html#%28part._parse-comment%29 (1.3.9 Reading Comments).