Exemplo n.º 1
0
 Rule InvokeStart() {
   return Sequence(
       Invoke.builder(),
       AccessExpression(),
       Invoke.access(),
       Optional(Expression(), Invoke.invoke()),
       Invoke.build());
 }
Exemplo n.º 2
0
 Rule For() {
   return FirstOf(
       Sequence(
           FOR,
           DOT,
           Invoke.builder(),
           AccessExpression(),
           ForIterationAccessExpression.of(),
           Invoke.access(),
           Invoke.build()),
       Sequence(FOR, For.builder(), ForDeclaration(), For.build()));
 }