-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arrow notation barfs on comments #51
Comments
I would consider the latter variant a grammar bug as
SHOULD be parsed by the machine as semantic action
(note the edit) SHOULD be parsed by the machine as semantic action Good catch, by the way. Must find out where this went wrong. Without looking, my bet is that it's the That hunch suggest you might also try this, which I expect should also fix the issue:
|
For now, I continued all of my comments on the following line a la:
It's reversible so I can make my way back when the parser's happy with arrows with comments. Tx for being so attentive! |
Can I help with this? I'm typically pingable on gitter 9:00-19:00, 21:30-24:00 CEST. |
Will be available Saturday. Might have a look at it then, see if we can fix
this easily (haven't built jison-gho in a while, but we'll see how it goes
:-)
…On Fri, Nov 6, 2020, 11:15 ericprud ***@***.***> wrote:
Can I help with this? I'm typically pingable on gitter 9:00-19:00,
21:30-24:00 CEST.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#51 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADCIHU4YKD4RX4BCO7QM3LSOPEFLANCNFSM4I52KEBQ>
.
|
I'll be around. Not much leaving the house these days. |
Ok. This took a lot longer than intended. Had the overestimated confidence that I would be able to run a few Currently I have (should push this by now 🤔 [Edit: done] ) a bleeding edge which is halfway there (latest lexer grammar working, latest BNF parser grammar failing badly and therefor rolled back to bnf parser from last release plus some minimal changes) and compiling grammars again. The good news -- though most of it unrelated to your problem yet
The bad news
Ergo: this issue will need some more work before I'ld call it anywhere near "done". Meanwhile, thank you VERY MUCH for your patience-in-the-extreme. Wow. Sticking around for a year while I'm silent is impressive (for lack of better words). I cannot guarantee better performance in the future but I don't know how else I can convey to you that I am humbled. I can only hope If you feel extremely daring, the bleeding edge I'll push in a few minutes today will be in the That's the current state of affairs; things are moving, possibly a glacial pace, but at least now you know a bit about what going on. HTH |
- use the pre-patched jison from the previous commit to build these as using an older jison won't fly. Hence you MUST copy the dist/ directory to node_modules/jison-gho/dist/ before running `make` or your ass is graas. - patch the code generator(s) to check if action code chunks include `let` or `const` keywords and if they do, wrap them in a {...} scope block to prevent collisions with other action code blocks in the same generated large switch/case statement. - drop ES5 usage in the build paths everywhere. This means we're not testing the validity of the BABEL output anymore. ES5 is on the way out. - **WARNING/NOTICE**: this dist/ is KNOWN-GOOD-ENOUGH for bootstrapping jison. Bootstrapping jison with ANY EARLIER BUILD WILL FAIL due to the ES6 features used in the action code blocks and the way the older versions generated lexer/parser code, which will result in load-time fatal collisions reported by `node` as multiple `let` statements will compete for supremacy. - issue 51 examples have been tweaked to compile and run a basic test run -- at least sample 1 does, while the others still fail, even when marked GOOD: to make those work we'll need the bnf.y grammar overhaul from master and then some extra work. - while this /dist/ is known-good-enough, arrow-actions in the /examples/ grammars will fail to generate a viable parser due to lingering overzealous {...} brace cleanup code that's been in jison-gho for quite a while: hence #51 is DEFINITELY NOT FIXED YET! - augmented the bnf.y grammar spec to produce a slightly less horrid and unintelligible error report for arrow-action code blocks which fail to test-compile: you'ld often get error reports about unexpected () braces, which are NOT in your action code line(s) but in the auto-generated wrapper instead -- which is required to test-compile the arrow-action code.
…lled `braceArrowActionCode()` - micro step towards merging this branch with the (currently still faulty!) master branch and make that one the main dev line once again. + this will take some significant migratory work on bnf.l + bnf.y before we can merge branches, though! master has a significantly advanced, yet buggy, new grammar spec, which never got finished as the plugs got pulled due to RL developments which are nearing the end after a year now |:-( - regenerated library files - updated test reference files - as usual done brute-force via `make clean-dumpfiles ; make` - removing testset file lists as globby is back in action -- see also sindresorhus/globby#155 (comment) - added another test example grammar for #51 ; also added the required input file and minimal lexer for producing a Minimum Viable Test Product running the generated grammars (if there's any success there)
In case you feel extremely daring as mentioned above, you'll need this for hints on that |
and I applaud your persistence in picking up a cold project. I'll try to fiddle around with the grammar in the bleeding edge and maybe even add its build products into a branch of shex.js in order to see how those hacks fares there. |
zaaaach/jison parses
jison-gho 0.6.1-216 and master fail if there's a comment following the semantic action.
(zaaaaach also parses extra ';'s
but I think that's a bug.)
The text was updated successfully, but these errors were encountered: