Comments (1)
Comments can be added to the TatSu grammar for rule
and option
. The corresponding classes in grammars
would have a comment
field for the pretty-printer to use.
Some tweaks may be needed for comments right before a rule
definition, and right after, before the first element.
PEG allows for this.
Complications would be on the pretty printer (most important), though the code generator could also try to do its part.
from tatsu.
Related Issues (20)
- PRs for trace output readability? HOT 2
- tatsu.ast.AST objects don't pickle/unpickle properly HOT 1
- Generated semantics use old syntax for super() in __init__()
- Naming nested parses causes inside nodes to be duplicated in the AST HOT 2
- Calling `str()` on a model containing non-JSON-representable types raises exception
- Generated `main()` passes the wrong arguments to `parser.parse()` HOT 17
- Unusual use of `__new__()` in `NodeWalker` HOT 3
- Generared code parser and dynamic parser return a different AST HOT 4
- NodeWalker._find_walker returns invalid walker due to conflicting ids in node.__class__. HOT 3
- Arguments passed to NodeWalker are not passed correctly if Node is a list instance.
- _walker_cache must be owned by an instance of NodeWalker, not by the NodeWalker class.
- Node missing children with nested dict HOT 5
- How to parse indent based language like yaml? HOT 7
- Support for currently active python versions (e.g. 3.7) HOT 20
- Interpreting parseinfo HOT 3
- Cannot change default comment regexp HOT 1
- Does TatSu 5.8.3 still pick up the regex module automatically? HOT 3
- Name is not used in tatsu.to_python_sourcecode HOT 1
- tests not excluded from sdist HOT 1
- Regex broken after v5.7.3 HOT 2
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 tatsu.