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(SourceLocation startQuote, String quote)

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

      Parameters:
      startQuote - the source location of the quote that starts the string
      quote - the quote character(s) that were used
    • unexpectedCharacter

      Problem unexpectedCharacter(SourceLocation position, char character)

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