Parser is held together by duck-tape and a wish

This commit is contained in:
Pasha Bibko
2025-04-17 14:47:19 +01:00
parent e1fce699da
commit 3017e70631
6 changed files with 216 additions and 33 deletions

View File

@@ -5,7 +5,13 @@ Started lexing file
Token::FUNCTION
Token::IDENTIFIER: main
Token::IDENTIFIER: return
Unknown: 3
Token::NUMBER_LITERAL: 34
Token::ADD
Token::NUMBER_LITERAL: 4
Token::NUMBER_LITERAL: 4324
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Started parsing tokens
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
AST length: 1

View File

@@ -1,3 +1,2 @@
func main
return 34 + 4
return 34 + 4324