Package org.antlr.works.debugger.input

Examples of org.antlr.works.debugger.input.DBInputTextTokenInfo


        if(token != null) {
            /** If token is not null, ask the input text object the
             * line and character number.
             */

            DBInputTextTokenInfo info = inputPanel.getTokenInfoForToken(token);
            if(info == null)
                selectGrammarText(location);
            else
                selectGrammarText(info.getLocation());
        } else {
            /** If token is null, the line and pos will be provided as parameters */
            selectGrammarText(location);
        }

View Full Code Here


        debuggerTab.playerEndBacktrack(event.level, event.successful);
    }

    public void playRecognitionException(DBEventRecognitionException event) {
    // make sure that the recognition exception as its token set
    DBInputTextTokenInfo info = processor.getTokenInfoAtTokenIndex(event.e.index);
    if ( info!=null ) {
      event.e.token = info.token;
    }
    debuggerTab.playerRecognitionException(event.e);
    }
View Full Code Here

    public void playCreateNode(DBEventCreateNode event) {
        if(event.tokenIndex == -1) {
            /** Imaginary token. Use the 'text' and 'type' info instead. */
            debuggerTab.playerCreateNode(event.id, event.text, event.type);
        } else {
            DBInputTextTokenInfo info = processor.getTokenInfoAtTokenIndex(event.tokenIndex);
            if(info == null)
                debuggerTab.getConsole().println("No token info for token index "+event.tokenIndex);
            else
                debuggerTab.playerCreateNode(event.id, info.token);
        }
View Full Code Here

TOP

Related Classes of org.antlr.works.debugger.input.DBInputTextTokenInfo

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.