You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Comments should have a place in the monkey lang. Two implementations are possible: ignore them at lexing, or create a Token for the comments that will be later ignored at parsing. The issue is that doing this will lose track of comments in the AST, which seems reasonable but implies that the formatter will need to parse the file in a different way.
The text was updated successfully, but these errors were encountered:
Comments should have a place in the monkey lang. Two implementations are possible: ignore them at lexing, or create a Token for the comments that will be later ignored at parsing. The issue is that doing this will lose track of comments in the AST, which seems reasonable but implies that the formatter will need to parse the file in a different way.
The text was updated successfully, but these errors were encountered: