Commit d6cfee19 authored by Arpad Lovassy's avatar Arpad Lovassy
Browse files

bugfix: TtcnLexer: Assign token to all characters


Signed-off-by: Arpad Lovassy's avatarzlovarp <arpad.lovassy@semcon.com>
parent 28979b4d
...@@ -27,7 +27,7 @@ public final class ReparseUtilities { ...@@ -27,7 +27,7 @@ public final class ReparseUtilities {
public static List<Integer> getAllValidTokenTypes() { public static List<Integer> getAllValidTokenTypes() {
final List<Integer> result = new ArrayList<Integer>(); final List<Integer> result = new ArrayList<Integer>();
for (int i = Ttcn3Lexer.EOF + 1; i < Ttcn3Lexer.LEXERPLACEHOLDER; i++) { for (int i = Ttcn3Lexer.EOF + 1; i < Ttcn3Lexer.UNKNOWN_CHAR; i++) {
result.add(Integer.valueOf(i)); result.add(Integer.valueOf(i));
} }
......
...@@ -656,5 +656,7 @@ ROTATERIGHT: '@>'; ...@@ -656,5 +656,7 @@ ROTATERIGHT: '@>';
STRINGOP: '&'; STRINGOP: '&';
//TODO: remove if not needed // This should be the LAST lexer rule in your grammar
LEXERPLACEHOLDER: 'meaningless text just to have a last token' ; UNKNOWN_CHAR
: .
;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment