Add yet another AST example

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2024-07-05 12:55:44 +02:00
parent 239c18fece
commit af243a8ce8
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
Include "004-incl.bb"
; Should be parsed as:
; Include(String("test.bb"))
; which should then jump to parsing "test.bb" relative to the current file.
iValue = iValue + 4
; Should be parsed as Assign(Variable(iValue), Add(Variable(iValue), Int32(4)))
Print iValue
; Should be parsed as Call(Function(Print), Variable(iValue))