This commit is contained in:
Sasha Koshka 2024-04-06 13:51:00 -04:00
parent d8f897d023
commit 2346c34cce
1 changed files with 18 additions and 18 deletions

View File

@ -74,29 +74,29 @@ expression, the parser follows this decision tree to determine what to parse:
| | 'loop' =Loop
| | 'for' =For
| | +Colon =Declaration
| | +DoubleColon | +TypeIdent =(A)
| | +LBracket =(B)
| | +DoubleColon | +TypeIdent =Constant
| | +LBracket =Call
|
| +TypeIdent(A) =Constant
| +TypeIdent =Constant
|
| +LParen X =LiteralArray
| | +Dot =LiteralStruct
|
| +LBracket(B) | +Ident =Call
| | | 'break' =Break
| | | 'return' =Return
| |
| | +Dot +Expression =Dereference
| | | +Expression =Subscript
| | +Star =Operation
| |
| | +Symbol X
| | '\' =Slice
| | '#' =Length
| | '@' =Reference
| | '~' =ValueCast
| | '~~' =BitCast
| | OPERATOR =Operation
| +LBracket | +Ident =Call
| | | 'break' =Break
| | | 'return' =Return
| |
| | +Dot +Expression =Dereference
| | | +Expression =Subscript
| | +Star =Operation
| |
| | +Symbol X
| | '\' =Slice
| | '#' =Length
| | '@' =Reference
| | '~' =ValueCast
| | '~~' =BitCast
| | OPERATOR =Operation
|
| +LBrace =Block
| +Int =LiteralInt