Interface LexerProblems

All Superinterfaces:
ProblemFactory

public interface LexerProblems extends ProblemFactory
  • Method Details

    • get

      static LexerProblems get()
    • unexpectedEof

      Problem unexpectedEof(SourceLocation position)

      Unexpectedly reached EOF.

    • eofInString

      Problem eofInString(int position)

      Reached EOF while parsing a quoted string. Special case of unexpectedEof.

      This takes a position, not an int, because it was too much change to feed in the SourceLocation here - required changing the TokenMatcher API to accept a SourceLocation.

    • unexpectedCharacter

      Problem unexpectedCharacter(SourceLocation position, char character)

      Unexpected character - this is when the lexer sees a character that isn't part of any token.