mirror of
https://github.com/PashaBibko/LX.git
synced 2026-04-04 09:59:03 +00:00
Allowed multiple functions + non "main" functions
Also fixed a bug in the lexer and changed how AST is logged.
This commit is contained in:
@@ -37,6 +37,7 @@ namespace LX
|
||||
TOKEN_CASE(Token::CLOSE_PAREN);
|
||||
TOKEN_CASE(Token::ASSIGN);
|
||||
TOKEN_CASE(Token::INT_DEC);
|
||||
TOKEN_CASE(Token::COMMA);
|
||||
|
||||
// Default just returns it as it's numerical value //
|
||||
default: return "Unknown: " + std::to_string((int)type);
|
||||
|
||||
Reference in New Issue
Block a user