/** * @see <a href="http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#3.4">JLS section 3.4</a> */ @SuppressSubnodes Rule whitespaceChar() { return FirstOf(Ch(' '), Ch('\t'), Ch('\f'), lineTerminator()); }
/** * @see <a href="http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#3.4">JLS section 3.4</a> */ @SuppressSubnodes Rule whitespaceChar() { return FirstOf(Ch(' '), Ch('\t'), Ch('\f'), lineTerminator()); }
/** * @see <a href="http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#3.4">JLS section 3.4</a> */ @SuppressSubnodes Rule whitespaceChar() { return FirstOf(Ch(' '), Ch('\t'), Ch('\f'), lineTerminator()); }
/** * @see <a href="http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#3.10.4">JLS section 3.10.4</a> */ public Rule charLiteral() { return Sequence( Sequence( Ch('\''), FirstOf( Sequence(escapedSequence(), Ch('\'')), Sequence( ZeroOrMore(Sequence(TestNot( FirstOf(Ch('\''), group.basics.lineTerminator())), Any())), Ch('\'')), Any())), set(actions.createCharLiteral(lastText())), group.basics.optWS()); }
/** * @see <a href="http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#3.10.4">JLS section 3.10.4</a> */ public Rule charLiteral() { return Sequence( Sequence( Ch('\''), FirstOf( Sequence(escapedSequence(), Ch('\'')), Sequence( ZeroOrMore(Sequence(TestNot( FirstOf(Ch('\''), group.basics.lineTerminator())), Any())), Ch('\'')), Any())), set(actions.createCharLiteral(lastText())), group.basics.optWS()); }
/** * @see <a href="http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#3.10.4">JLS section 3.10.4</a> */ public Rule charLiteral() { return Sequence( Sequence( Ch('\''), FirstOf( Sequence(escapedSequence(), Ch('\'')), Sequence( ZeroOrMore(Sequence(TestNot( FirstOf(Ch('\''), group.basics.lineTerminator())), Any())), Ch('\'')), Any())), set(actions.createCharLiteral(lastText())), group.basics.optWS()); }