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

Add builtin types to global symbol table #175

Open
AZHenley opened this issue Aug 6, 2020 · 1 comment
Open

Add builtin types to global symbol table #175

AZHenley opened this issue Aug 6, 2020 · 1 comment

Comments

@AZHenley
Copy link
Owner

AZHenley commented Aug 6, 2020

And or check identifiers if they are a reserved keyword (from token.go) or the symbol table.

This should not be allowed:

class int { }

@AZHenley
Copy link
Owner Author

AZHenley commented Aug 6, 2020

Possibly remove keywords from the lexer and treat all identifiers the same. That way they do not need to be maintained in multiple places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant