Interface TokenType

All Known Implementing Classes:
TokenComment, TokenEOF, TokenLeftParenthesis, TokenLeftSquare, TokenQuotedString, TokenRightParenthesis, TokenRightSquare, TokenSymbol

  • Method Summary

    Modifier and Type
    Method
    Description
    com.io7m.jlexing.core.LexicalPosition<URI>
     
    <A, E extends Exception>
    A
    Match a token.
  • Method Details

    • lexical

      com.io7m.jlexing.core.LexicalPosition<URI> lexical()
      Returns:
      The lexical information for the token
    • matchToken

      <A, E extends Exception> A matchToken(TokenMatcherType<A,E> m) throws E
      Match a token.
      Type Parameters:
      A - The type of values returned by the matcher
      E - The type of exceptions raised by the matcher
      Parameters:
      m - The matcher
      Returns:
      The value returned by the matcher
      Throws:
      E - If the matcher raises E