Rule mandatory(Rule rule, ParseException exception) { return FirstOf( rule, throwException(exception) ); }
Rule mandatory(Rule rule, ParseException exception) { return FirstOf( rule, throwException(exception) ); }
public Rule start() { return FirstOf( extendTemplate(), normalTemplate() ); }
public Rule start() { return FirstOf( extendTemplate(), normalTemplate() ); }
Rule text (Rule until) { return Sequence( push(new Text()), OneOrMore( FirstOf( Sequence( basicParser.escape(), ((Text) peek()).append(match()) ), Sequence( TestNot( until ), ANY, ((Text) peek()).append(match()) ) ) ).suppressSubnodes() ); }
Rule text (Rule until) { return Sequence( push(new Text()), OneOrMore( FirstOf( Sequence( basicParser.escape(), ((Text) peek()).append(match()) ), Sequence( TestNot( until ), ANY, ((Text) peek()).append(match()) ) ) ).suppressSubnodes() ); }
Rule text() { return Sequence( push(new Text()), OneOrMore( FirstOf( Sequence("{#", ZeroOrMore(TestNot("#}"), ANY), "#}"), Sequence( basicParser.escape(), ((Text) peek()).append(match()) ), Sequence( TestNot( FirstOf( basicParser.symbol(OPEN_OUTPUT), basicParser.symbol(OPEN_CODE) ) ), ANY, ((Text) peek()).append(match()) ) ) ).suppressSubnodes() ); }
Rule text() { return Sequence( push(new Text()), OneOrMore( FirstOf( Sequence("{#", ZeroOrMore(TestNot("#}"), ANY), "#}"), Sequence( basicParser.escape(), ((Text) peek()).append(match()) ), Sequence( TestNot( FirstOf( basicParser.symbol(OPEN_OUTPUT), basicParser.symbol(OPEN_CODE) ) ), ANY, ((Text) peek()).append(match()) ) ) ).suppressSubnodes() ); }
Sequence( expressionParser.variable(), FirstOf( Sequence( symbol(COMMA),
Sequence( expressionParser.variable(), FirstOf( Sequence( symbol(COMMA),
push(new JtwigContent()), ZeroOrMore( FirstOf( addToContent(output()), addToContent(block()),
push(new JtwigContent()), ZeroOrMore( FirstOf( addToContent(output()), addToContent(block()),