Search in sources :

Example 1 with InternalN4JSParser

use of org.eclipse.n4js.ui.contentassist.antlr.internal.InternalN4JSParser in project n4js by eclipse.

the class N4JSParser method createParser.

@Override
protected InternalN4JSParser createParser() {
    InternalN4JSParser result = new InternalN4JSParser(null);
    result.setGrammarAccess(grammarAccess);
    return result;
}
Also used : InternalN4JSParser(org.eclipse.n4js.ui.contentassist.antlr.internal.InternalN4JSParser)

Example 2 with InternalN4JSParser

use of org.eclipse.n4js.ui.contentassist.antlr.internal.InternalN4JSParser in project n4js by eclipse.

the class N4JSParser method getFollowElements.

@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
    try {
        InternalN4JSParser typedParser = (InternalN4JSParser) parser;
        typedParser.entryRuleScript();
        return typedParser.getFollowElements();
    } catch (RecognitionException ex) {
        throw new RuntimeException(ex);
    }
}
Also used : InternalN4JSParser(org.eclipse.n4js.ui.contentassist.antlr.internal.InternalN4JSParser) RecognitionException(org.antlr.runtime.RecognitionException)

Aggregations

InternalN4JSParser (org.eclipse.n4js.ui.contentassist.antlr.internal.InternalN4JSParser)2 RecognitionException (org.antlr.runtime.RecognitionException)1