Closed rmdort closed 4 years ago
The Lexer can not be used to validate grammar. You should use a normal parser/dependency parser to validate grammar.
In the Lexer, double quotes are only used to match Strings. That's why lex('SUM("')
throws an error.
const String = createToken({
name: 'String',
pattern: /"(""|[^"])*"/
});
Got it thank you
Do you know why i receive parser error with double quotes?