Created an expression decision tree plan

This commit is contained in:
Sasha Koshka 2024-02-07 12:44:54 -05:00
parent 51ef3682f1
commit 531d3ca22b
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
| +Ident =Variable
| | 'true' =LiteralBoolean
| | 'false' =LiteralBoolean
| | 'nil' =LiteralNil
| | 'if' =IfElse
| | 'loop' =Loop
| | +Colon =Declaration
|
| +LBracket | +Ident =Call
| | | 'break' =Break
| | | 'return' =Return
| |
| | +Dot +Expression =Dereference
| | | +Expression =Subscript
| | +Symbol X
| | '\' =Slice
| | '#' =Length
| | '@' =Reference
| | '~' =ValueCast
| | '~~' =BitCast
| | OPERATOR =Operation
| +Int =LiteralInt
|
| +Float =LiteralFloat
|
| +String =LiteralString
|
| +LParen X
| +Star =LiteralArray
| +Dot =LiteralStruct