Open AZHenley opened 4 years ago
And or check identifiers if they are a reserved keyword (from token.go) or the symbol table.
This should not be allowed:
class int { }
Possibly remove keywords from the lexer and treat all identifiers the same. That way they do not need to be maintained in multiple places.
And or check identifiers if they are a reserved keyword (from token.go) or the symbol table.
This should not be allowed:
class int { }