@flowscripter/mpeg-sdl-parser
Version:
ISO/IEC 14496-34 Syntactic Description Language (MPEG SDL) parser implemented in TypeScript
46 lines (42 loc) • 990 B
Plain Text
# Simple
class A {while (i<9) {i++;}}
==>
Specification(
ClassDeclaration(
class,
Whitespace
Identifier
Whitespace
OpenBrace
WhileStatement(
while
Whitespace
OpenParenthesis
BinaryExpression(
UnaryExpression(
Identifier
)
RelationalLessThan
UnaryExpression(
IntegerLiteral
)
)
CloseParenthesis
Whitespace
CompoundStatement(
OpenBrace
ExpressionStatement(
UnaryExpression(
UnaryExpression(
Identifier
)
PostfixIncrement
)
Semicolon
)
CloseBrace
)
)
CloseBrace
)
)