Comments (3)
That doesn't fit the pattern. why do you have extra parens?
from antlr4.
oh, the parens are the problem? They are superfluous, agree. A relic of the non-left recursive (name .)* name form. However, should the parser rely on simple pattern matching for detecting mutual left recursion? I dont think that extra parens should ever change the semantics of a grammar file.
from antlr4.
Hi. No doubt the computation is undecidable or close for arbitrary grammars. I am doing a pattern match for only those grammars that will work with the generated code pattern. It is a fairly complicated precedence parsing mechanism. I must be able to determine the operators, which would be quite difficult for arbitrary grammars.
from antlr4.
Related Issues (20)
- Is this project out of date?
- ANTLR doesn't generate needed methods for C++ HOT 1
- Add methods for Go runtime
- Add some modifications for Dart runtime
- [antlr4-python3-runtime-4.13.1] ANTLR runtime and generated code versions disagree: 4.13.1!=4.11.2-SNAPSHOT HOT 14
- [Cpp] XPath.findAll does not produce the same result than python3 runtime
- Easy to reproduce baffling parse failure when using semantic predicates. Bug in parser generator? HOT 9
- [TypeScript]: The module βantlr4β or the associated type declarations were not found.ts(2307) HOT 2
- Go runtime should not depend on Go 1.22 yet HOT 4
- Go target: lexer constants with the private access if g4 filename starts with the lowercase
- [Feature request] Support range operator for tokens HOT 1
- Incorrect Handling of Syntax Errors in MySqlParser with Custom Error Strategy
- javascript runtime v4.13.1 not found api: getVocabulary()
- How to make antlr4 skip the intermediate errors and continue parsing backward when parsing Sql? HOT 1
- generate go lexer file error HOT 2
- Always error: line 1:0 mismatched input 'Token' expecting {<EOF>,Token} HOT 5
- ruleIndex property missing in ParserRuleContext itypescript type
- Syntax and other errors when using the Cpp runtime of ANTLR4 with grammars generated with antlr4.13.2-complete.jar HOT 4
- The syntax parsing time and performance did not meet my expectations HOT 2
- Go Target: Does ANTLR4 support canceled by context? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antlr4.