Mixin: Build_Stmts

Eleven~ Build_Stmts

Class actions to represent a list of statements as a tree.

Source:

Methods


loop()

loop: 'while' expr 'do' stmts 'od'; returns [ 'loop' expr stmts ]

Source:

print()

print: 'print' expr [{ ',' expr }]; returns [ 'print' expr ... ]

Source:

select()

select: 'if' expr 'then' stmts [ 'else' stmts ] 'fi'; returns [ 'select' expr left right? ]

Source:

stmt()

stmt: print | ...; returns tree

Source:

stmts()

stmts: stmt [{ ';' stmt }]; returns stmt or [ 'stmts' stmt ... ]

Source: