khzaw/xcalibur

Can't add to the source code Lexer directly

Closed this issue · 0 comments

I don't think you can directly add rules to the lexer like that. That would affect the lexing of SIMPLE source code, since it will now regard '#' '(' ')' ., etc characters as legit lexemes, which technically should be ERROR lexemes in terms of lex-ing SIMPLE source code. You could try inheriting the current parser and extend it with Query grammar specific rules or write a new QueryLexer file or something like that.