Package nz.org.riskscape.dsl
Interface LexerProblems
- All Superinterfaces:
ProblemFactory
-
Method Summary
Modifier and TypeMethodDescriptioneofInString
(int position) Reached EOF while parsing a quoted string.static LexerProblems
get()
unexpectedCharacter
(SourceLocation position, char character) Unexpected character - this is when the lexer sees a character that isn't part of any token.unexpectedEof
(SourceLocation position) Unexpectedly reached EOF.
-
Method Details
-
get
-
unexpectedEof
Unexpectedly reached EOF.
-
eofInString
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
Unexpected character - this is when the lexer sees a character that isn't part of any token.
-