mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-08 10:20:41 +00:00
parent
b558d3cbf5
commit
c190289f6f
@ -151,7 +151,9 @@ public class LambdaLexer {
|
||||
} while (pos < term.length() && Character.isLetterOrDigit(term.charAt(pos))
|
||||
&& (int) term.charAt(pos) < 128);
|
||||
if (pos < term.length() && (int) term.charAt(pos) >= 128) {
|
||||
return new Result<>(null, ParseError.unexpectedCharacter2(term.charAt(pos), pos, term, errorType));
|
||||
return new Result<>(null,
|
||||
ParseError.unexpectedCharacter2(term.charAt(pos), pos, term, errorType)
|
||||
.expectedType(TokenType.VARIABLE));
|
||||
}
|
||||
String s = sb.toString();
|
||||
TokenType type;
|
||||
|
Loading…
Reference in New Issue
Block a user