Closed flixm16 closed 5 months ago
Make sure to increment yylineno
.
Consider returning \n
in lexer
consider using #.*
for comments, because #
starts a comment and .*
matches any character except line terminators. with this the linebreak is seperated from the comment and yylineno can use it
include comments in lexer with the form:
don't forget to increment the linenumber after a comment