Package net.sf.antcontrib.cpptasks.parser

Examples of net.sf.antcontrib.cpptasks.parser.AbstractParserState


   */
  private MetaObjectParser() {
    //
    //    search for Q_OBJECT
    //
    AbstractParserState t = new FinalTState(this);
    AbstractParserState c = new LetterState(this, 'C', t, null);
    AbstractParserState e = new LetterState(this, 'E', c, null);
    AbstractParserState j = new LetterState(this, 'J', e, null);
    AbstractParserState b = new LetterState(this, 'B', j, null);
    AbstractParserState o = new LetterState(this, 'O', b, null);
    AbstractParserState underline = new LetterState(this, '_', o, null);
    newLineState = new WhitespaceOrLetterState(this, 'Q', underline);
  }
View Full Code Here


        //      and stay in this state for more filenamese
        if (ch == ';') {
            super.consume(terminator);
            return this;
        }
        AbstractParserState newState = super.consume(ch);
        //
        //   change null (consume to end of line)
        //      to look for next switch character
        if (newState == null) {
            newState = getParser().getNewLineState();
View Full Code Here

        //
        //   a quoted path (-I"some path")
        //      doesn't end till a close quote and will be abandoned
        //      if a new line is encountered first
        //
        AbstractParserState quote = new CfgFilenameState(this, new char[]{'"'});
        //
        //    an unquoted path (-Ic:\borland\include)
        //      ends at the first space or new line
        AbstractParserState unquote = new CfgFilenameState(this, new char[]{
                ' ', '\n', '\r'});
        AbstractParserState quoteBranch = new QuoteBranchState(this, quote,
                unquote);
        AbstractParserState toNextSwitch = new ConsumeToSpaceOrNewLine(this);
        AbstractParserState switchState = new LetterState(this, switchChar,
                quoteBranch, toNextSwitch);
        newLineState = new WhitespaceOrLetterState(this, '-', switchState);
    }
View Full Code Here

TOP

Related Classes of net.sf.antcontrib.cpptasks.parser.AbstractParserState

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.