statementBlock method

Parser<CompoundStatementNode> statementBlock()

Implementation

Parser<CompoundStatementNode> statementBlock() => seq3(
  ref1(token, 'begin'),
  ref0(statement).plusSeparated(ref1(token, ';')).map((sep) => sep.elements),
  ref1(token, 'end'),
).map3((_, stmts, _) => CompoundStatementNode(statements: stmts));