Class InterfaceParser

java.lang.Object
antlr.Parser
antlr.LLkParser
org.antlr.stringtemplate.language.InterfaceParser
All Implemented Interfaces:
InterfaceParserTokenTypes

public class InterfaceParser extends antlr.LLkParser implements InterfaceParserTokenTypes
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 Details

    • groupI

      protected StringTemplateGroupInterface groupI
    • _tokenNames

      public static final String[] _tokenNames
    • _tokenSet_0

      public static final antlr.collections.impl.BitSet _tokenSet_0
    • _tokenSet_1

      public static final antlr.collections.impl.BitSet _tokenSet_1
    • _tokenSet_2

      public static final antlr.collections.impl.BitSet _tokenSet_2
  • Constructor Details

    • InterfaceParser

      protected InterfaceParser(antlr.TokenBuffer tokenBuf, int k)
    • InterfaceParser

      public InterfaceParser(antlr.TokenBuffer tokenBuf)
    • InterfaceParser

      protected InterfaceParser(antlr.TokenStream lexer, int k)
    • InterfaceParser

      public InterfaceParser(antlr.TokenStream lexer)
    • InterfaceParser

      public InterfaceParser(antlr.ParserSharedInputState state)
  • Method Details

    • reportError

      public void reportError(antlr.RecognitionException e)
      Overrides:
      reportError in class antlr.Parser
    • groupInterface

      public final void groupInterface(StringTemplateGroupInterface groupI) throws antlr.RecognitionException, antlr.TokenStreamException
      Throws:
      antlr.RecognitionException
      antlr.TokenStreamException
    • template

      public final void template(StringTemplateGroupInterface groupI) throws antlr.RecognitionException, antlr.TokenStreamException
      Throws:
      antlr.RecognitionException
      antlr.TokenStreamException
    • args

      public final LinkedHashMap args() throws antlr.RecognitionException, antlr.TokenStreamException
      Throws:
      antlr.RecognitionException
      antlr.TokenStreamException