Package net.sf.jcontracts.antlr.actions

Examples of net.sf.jcontracts.antlr.actions.ActionLexer


            return actionStr;
        }
        if (grammar.buildAST && actionStr.indexOf('#') != -1 || (grammar instanceof LexerGrammar)
                && actionStr.indexOf('$') != -1)
        {
            ActionLexer lexer = new ActionLexer(actionStr, currentRule, this, tInfo);
            lexer.setLineOffset(line);
            try
            {
                lexer.mACTION(true);
                actionStr = lexer.getTokenObject().getText();
            }
            catch (ScannerException ex)
            {
                lexer.reportError(ex);
                return actionStr;
            }
        }
        return actionStr;
    }
View Full Code Here

TOP

Related Classes of net.sf.jcontracts.antlr.actions.ActionLexer

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.