Class TalkBankTokenSource

java.lang.Object
ca.phon.phontalk.parser.TalkBankTokenSource
All Implemented Interfaces:
org.antlr.runtime.TokenSource

public class TalkBankTokenSource extends Object implements org.antlr.runtime.TokenSource
Uses StAX to generate tokens for the ANTLR parser UtteranceParser.
  • Constructor Details

    • TalkBankTokenSource

      public TalkBankTokenSource(InputStream source)
      Constructor
      Parameters:
      file - the token def file
  • Method Details

    • getSourceName

      public String getSourceName()
      Specified by:
      getSourceName in interface org.antlr.runtime.TokenSource
    • nextToken

      public org.antlr.runtime.Token nextToken()
      Specified by:
      nextToken in interface org.antlr.runtime.TokenSource