Comments (4)
These are questions better asked on StackOverflow.
You probably need to check interactions with @@nameguard, which is turned on by default.
from tatsu.
You either have to tell the parser what rule to start with or name it "start".
I'm not sure why the other one works in the first place. There's also $
to specify the end of input, I'd add that to your starting rule.
from tatsu.
Confirmed that the results is unexpected even with @@nameguard :: False
from tatsu.
Thanks for the quick turnaround. I learned a lot.
from tatsu.
Related Issues (20)
- 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
- Node missing children with nested dict HOT 1
- [grammar] its not possible to specify no regex for comments or eol_comments HOT 3
- Literal ``None`` is interpreted as a string HOT 6
- Surprising whitespace handling HOT 4
- Online yacc/lex grammar editor/tester HOT 3
- Positive join cant ignore Whitespace HOT 4
- Issue #59 ("Comment handling interferes with simple grammars") is back HOT 1
- [docs] Document the ParserConfig protocol
- Broken 5.9.0 wheel package HOT 4
- Incorrect escaping of regexes specified for @@whitespace HOT 11
- TatSu installs the 'test' directrory into the global python namespace HOT 3
- @@keyword + @name directives fail if keyword is "True" or "False" 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 tatsu.