Top Description Fields Constructors Methods
org.antlr.stringtemplate.language

public Class InterfaceParser

extends LLkParser
implements InterfaceParserTokenTypes
Class Inheritance
All Implemented Interfaces
org.antlr.stringtemplate.language.InterfaceParserTokenTypes
Imports
org.antlr.stringtemplate.*, java.util.*, antlr.TokenBuffer, .TokenStreamException, .TokenStreamIOException, .ANTLRException, .LLkParser, .Token, .TokenStream, .RecognitionException, .NoViableAltException, .MismatchedTokenException, .SemanticException, .ParserSharedInputState, antlr.collections.impl.BitSet

Match an ST group interface. Just a list of template names with args. Here is a sample interface file: interface nfa; nfa(states,edges); optional state(name);

Field Summary

Modifier and TypeField and Description
public static final String[]
public static final BitSet
public static final BitSet
public static final BitSet
protected StringTemplateGroupInterface

Constructor Summary

AccessConstructor and Description
protected
InterfaceParser(TokenBuffer tokenBuf, int k)

public
protected
public
public

Method Summary

Modifier and TypeMethod and Description
public final LinkedHashMap<K, V>
args()

public final void
private static final long[]
private static final long[]
private static final long[]
public void
reportError(RecognitionException e)

Overrides antlr.Parser.reportError.

Parser error-reporting function can be overridden in subclass
public final void
Inherited from antlr.LLkParser:
consumeLALTtraceIntraceOut

Field Detail

_tokenNamesback to summary
public static final String[] _tokenNames
_tokenSet_0back to summary
public static final BitSet _tokenSet_0
_tokenSet_1back to summary
public static final BitSet _tokenSet_1
_tokenSet_2back to summary
public static final BitSet _tokenSet_2
groupIback to summary
protected StringTemplateGroupInterface groupI

Constructor Detail

InterfaceParserback to summary
protected InterfaceParser(TokenBuffer tokenBuf, int k)
InterfaceParserback to summary
public InterfaceParser(TokenBuffer tokenBuf)
InterfaceParserback to summary
protected InterfaceParser(TokenStream lexer, int k)
InterfaceParserback to summary
public InterfaceParser(TokenStream lexer)
InterfaceParserback to summary
public InterfaceParser(ParserSharedInputState state)

Method Detail

argsback to summary
public final LinkedHashMap<K, V> args() throws RecognitionException, TokenStreamException
groupInterfaceback to summary
public final void groupInterface(StringTemplateGroupInterface groupI) throws RecognitionException, TokenStreamException
mk_tokenSet_0back to summary
private static final long[] mk_tokenSet_0()
mk_tokenSet_1back to summary
private static final long[] mk_tokenSet_1()
mk_tokenSet_2back to summary
private static final long[] mk_tokenSet_2()
reportErrorback to summary
public void reportError(RecognitionException e)

Overrides antlr.Parser.reportError.

Doc from antlr.Parser.reportError.

Parser error-reporting function can be overridden in subclass

templateback to summary
public final void template(StringTemplateGroupInterface groupI) throws RecognitionException, TokenStreamException