Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement comments #5

Open
Yag000 opened this issue Aug 3, 2023 · 0 comments
Open

Implement comments #5

Yag000 opened this issue Aug 3, 2023 · 0 comments
Labels
enhancement New feature or request feature request Feature request monkey lang Issues about the monkey language as a whole

Comments

@Yag000
Copy link
Owner

Yag000 commented Aug 3, 2023

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.

@Yag000 Yag000 added enhancement New feature or request feature request Feature request monkey lang Issues about the monkey language as a whole labels Aug 3, 2023
@Yag000 Yag000 changed the title [Feature Request] Comments Implement comments Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature request Feature request monkey lang Issues about the monkey language as a whole
Projects
None yet
Development

No branches or pull requests

1 participant