Class AntlrTokens

java.lang.Object
ca.phon.phontalk.parser.AntlrTokens

public class AntlrTokens extends Object
Handles mapping from String invalid input: '<'-> ANTLR Token type
  • Field Details

  • Constructor Details

    • AntlrTokens

      public AntlrTokens(String tokenFile)
  • Method Details

    • getTokenType

      public Integer getTokenType(String tokenName)
      Returns null if type is not found
      Parameters:
      tokenName -
      Returns:
    • getANTLRTokenType

      public Integer getANTLRTokenType(XMLEvent evt)
      Returns null if type is not found
      Parameters:
      evt -
      Returns:
    • getTokenName

      public String getTokenName(int iToken)