Comments (1)
This is particularly annoying if your project starts out with a combined grammar and you later need to convert it to separate lexer/parser grammars. Obviously you can't fix the default behavior without an incompatible change to the generated names, but you could add an option or options to enable some other behavior.
Note that if you name the parser grammar Foo
then you get the mostly the same names as in the combined grammar with the exception of the parser class, which is just called Foo
instead of FooParser
. You can then create a subclass named FooParser
to get pretty close to the combined grammar behavior.
Given that the primary problems are going to come about from going from a combined grammar to a split grammar and not the other way around, I think that providing an option to let you specify the name of the parser class might be sufficient.
from antlr4.
Related Issues (20)
- [Swift] Add privacy manifest HOT 2
- [Go] Type signature error HOT 1
- How can we write multiple parsers to use the same lexer? HOT 1
- [CSharp] Member GetMaxTokenType missing in IVocabulary
- Missing TypeScript methods
- [TorqueScript: C++]Old scripting language conversion HOT 2
- When is there a plan to support Rust?
- Left recursive rules that do not conform to a pattern ANTLR can handle HOT 1
- Android Tool run
- Separated package/artifactId when the minor version is upgraded for compatibility issues
- [Go] Can not use BailErrorStrategy since ParseCancellationException is not implement HOT 2
- Issue with using ANTLR4 from Julia via PyCall
- [TypeScript target] I would like to know how to create a custom visitor in TypeScript. HOT 4
- C++ warning + fix HOT 2
- Error with books source examples in chapter 4
- Clarify supported Python runtime language version HOT 4
- Unable to customize error messages on top of error messages generated by ANTLR4 Parser HOT 1
- [go] performance downgrade a lot after upgrade antlr from 4.9 to 4.13.1 HOT 8
- [C++] Building grammar with rule named "match" causes errors
- JavaScript runtime fails to parse input that can be parsed by `grun` with same grammar HOT 1
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.