4 ms·
> By using the LR parsing algorithm In case anyone else was wondering, this is a LR parser-generator that is supposed to be error-insensitive. Here is a java
by melissalobos 4y ago
> By using the LR parsing algorithm
In case anyone else was wondering, this is a LR parser-generator that is supposed to be error-insensitive. Here is a java grammar written in it: https://github.com/lezer-parser/java/blob/main/src/java.grammar https://github.com/lezer-parser/java/blob/main/src/java.gram... which doesn't look terrible.
- layer8 4y agoI noticed that the Java @tokens definition doesn’t seem to support Unicode Java identifiers and Unicode escapes. Since the latter can appear anywhere in Java source code [0], it’s likely impossible to have a fully compliant auto-generated Java lexer/parser from that tool. [0] https://javajee.com/unicode-escapes-in-java https://javajee.com/unicode-escapes-in-java