Comments (3)
Yeah, we should essentially gate out all untrue predicated alts and choose min of remaining.
For this issue, we can maybe make an option.
from antlr4.
Fully identifying ambiguities is more work than decision making. In plain decision making mode, adaptivePredict
could simply identify the first alt which has a passing config (unpredicated or predicated evaluating to true
). In ambiguity detection mode, it would have to check each alternative to try and find at least one passing config, and then call reportAmbiguity
if 2 or more alts remain. The ambiguity detection mode may result in more work, but the returned decision will be the same.
from antlr4.
Fixed in 2cc39c2
from antlr4.
Related Issues (20)
- Building Swift runtime failed when running `swift package generate-xcodeproj` in boot.py HOT 3
- Is it possible to tell antlr c++ generator to create library export tokens? HOT 1
- ParserRuleContext.stop is null with all optional rule? HOT 3
- ignore HOT 1
- TestRig exports invalid SVG HOT 3
- Reveal 1.6.4 release notes
- Broken javascript download link HOT 4
- Creates parser that uses wrong fieldname when referencing field causing CS1001 HOT 1
- JavaScript runtime: could the transition classes be exported? HOT 11
- ANTLR not recognizing label assignment HOT 11
- Segmentation fault on C++ runtime in SingletonPredictionContext HOT 5
- Is Java Lexer ATN Serialization explosion expected since 4.7.2? HOT 7
- Using antlr4 go to parse SQL takes too much time HOT 21
- The altNum displayed in the ANTLR4 plugin tool differs from the altNum at runtime.
- antlr4-go out-of-date HOT 3
- How to get parent of the node using antlr4 typescript HOT 5
- Usage of `\p{Alpha}` does not work as expected on earlier versions of JDK 17
- ATN.NextToken(state) should be memoized HOT 3
- PL/SQL grammar cannot recognise identifiers that start with keywords HOT 2
- Migration bug in golang runtime 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.