antlr4
antlr4 copied to clipboard
ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.
For example, I want access `ruleToStartState` field, but it is not exported. Go can't https://github.com/antlr/antlr4/blob/2a7904a595479954ccfb1c78124fc3d7f5bebcb1/runtime/Go/antlr/v4/atn.go#L42 But javascript can. https://github.com/antlr/antlr4/blob/2a7904a595479954ccfb1c78124fc3d7f5bebcb1/runtime/JavaScript/src/antlr4/atn/ATN.d.ts#L11
Following the instructions in https://github.com/antlr/antlr4/blob/4.13.2/doc/getting-started.md, 1. I first created a miniconda environment for antlr and then proceeded with installing antlr4-tools: ``` conda create --prefix /home/lan/miniconda3/envs/antlr python=3.11 conda activate /home/lan/miniconda3/envs/antlr python3...
The number of hex digits to follow \u is exactly four, not up to 4.
I am using ANTLR 4.13.2 ``` functionsReturningNumerics : 'LENGTH' '(' stringPrimary ')' ``` ........ passing just 'LENGTH' without parentheses, ANTLR matches the expression. Is it an expected behaviour or it's...
Remove unused function createThin() from common_token_factory.go, CommonTokenFactory.py, CommonTokenFactory.js. The unexported function 'antlr.createThin' is never used but has a potential bug. Using nil constant at common_token_factory.go:52, it is passed as 1st...
Error occurs when using the latest version of Intellij Error com.intellij.diagnostic.PluginException: `ActionUpdateThread.OLD_EDT` is deprecated and going to be removed soon. 'org.antlr.intellij.plugin.actions.UniquifyRuleRefs' must override `getActionUpdateThread()` and chose EDT or BGT. See...
I’m not sure how applicable this is to targets other than Typescript. If you use a label in a rule named as a reserved words, you get bad behaviour when...
Hello! I am using ANTLR to parse https://github.com/gscept/GPULang which I've been using for years prior. Until recently I haven't bothered much with thinking about small optimizations, such as memory placement...
Hi, team As mentioned in issue #2454, I also found a performance bottleneck in ANTLR caused by the lock on the `DFA.states` object. Due to lock contention, the performance degrades...
If I have a grammar g4 file and a lexer g4 file. Then _inadvertently_ insert a literal token like `{` into the grammar (when that _same token_ has actually been...