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() ); }