Comments (2)
Fixed the rewrite of xx : ( ) ( yy ) * ; yy: 'b' ;
. It will now output xx : yy * ; yy: 'b' ;
. I am working on the other optimization, which I described above. And, I also have to test whether there are parentheses already around elements, so I don't add extra parentheses, which the Antlr4 Tool cannot parse!
from domemtech.trash.
Similarly,
grammar temp;
xx : xx yy | ;
yy: 'b' ;
gets transformed to
grammar temp;
xx : ( ) ( yy ) * ;
yy: 'b' ;
EDIT: turns out trrup
removes the empty parens.
from domemtech.trash.
Related Issues (20)
- [Feature Request] Add a command for adding labels HOT 2
- Trsponge doesn't work nicely with "trparse -l" input
- Decouple Antlr4.Runtime.Standard from Trash tools
- trperf doesn't show which alts are problems in a parser rule
- trconvert documentation error HOT 1
- Add Z3/SMT analysis of grammars to Trash
- Add trgenvsc HOT 1
- Consider distributing package as docker image HOT 2
- Port Saxon and switch over from Xalan
- Update Antlr4 grammar to not use labeledLexerElement HOT 1
- Add in template attribute definitions in the desc.xml HOT 1
- Reasoning about off-channel content HOT 1
- Converting really old bison HOT 5
- Replace trdelabel with g4-scripts/delabel.sh HOT 1
- Cannot get parent of attribute node HOT 1
- Fix grammar analysis for trgen
- Trgen should give a meaningful error message for missing Eof
- tritext should add equivalent space characters for text that has a vectored start.
- trgen's desc.xml needs to be documented!
- trgen needs to handle lexer from one grammar, and parser from another.
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 domemtech.trash.