Allowed multiple functions + non "main" functions

Also fixed a bug in the lexer and changed how AST is logged.
This commit is contained in:
Pasha Bibko
2025-05-08 16:03:54 +01:00
parent 794173e14f
commit 050eeb5a53
6 changed files with 56 additions and 14 deletions

View File

@@ -1,3 +1,8 @@
func add(int a, int b)
{
return a + b
}
func main()
{
int a