Skip to content

Commit

Permalink
added isolated function calls
Browse files Browse the repository at this point in the history
  • Loading branch information
JVerbruggen committed Dec 15, 2021
1 parent 124e075 commit 04c5584
Show file tree
Hide file tree
Showing 7 changed files with 263 additions and 242 deletions.
1 change: 1 addition & 0 deletions JurjenLang.g4
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ stat : assignment
| assertion
| whileloop
| func_return
| func_call
;

debugtools : printstat
Expand Down
2 changes: 1 addition & 1 deletion antlr_python/JurjenLang.interp

Large diffs are not rendered by default.

495 changes: 255 additions & 240 deletions antlr_python/JurjenLangParser.py

Large diffs are not rendered by default.

Binary file modified antlr_python/__pycache__/JurjenLangLexer.cpython-39.pyc
Binary file not shown.
Binary file modified antlr_python/__pycache__/JurjenLangParser.cpython-39.pyc
Binary file not shown.
Binary file modified antlr_python/__pycache__/JurjenLangVisitor.cpython-39.pyc
Binary file not shown.
7 changes: 6 additions & 1 deletion input.jur
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@ func fib x{
return fib(x-1) + fib(x-2)
}

print fib(20)
func dosomeprinting x{
print x
}

var = fib(1)
dosomeprinting(var)

0 comments on commit 04c5584

Please sign in to comment.