GerHobbelt / jison

bison / YACC / LEX in JavaScript (LALR(1), SLR(1), etc. lexer/parser generator)
https://gerhobbelt.github.io/jison/
MIT License
117 stars 20 forks source link

Git version looks older than NPM #53

Open martianboy opened 4 years ago

martianboy commented 4 years ago

Hi. I was wondering if you could push the latest version of this project to its Git repo as well, cause unless I'm missing something, it looks like the NPM version is ahead. I can't even successfully build the project without having to hack my way through. This is a great work, and I'd love to hack on it a bit. Thank you!

GerHobbelt commented 3 years ago

Bleeding edge is b0rked at the moment as work towards better action code block checking via transpilation through babel was aborted in 2019 due to RL priorities taking over and the realization that the chosen direction was not really doable.

I'll try to revive the bleeding edge in the next few months -- expect slow going.

martianboy commented 3 years ago

@GerHobbelt Thank you! Looking forward to it.

GerHobbelt commented 3 years ago

Please see comment https://github.com/GerHobbelt/jison/issues/51#issuecomment-728324902 and onwards from that for info on the bleeding edge.

As stated there, if you feel very daring, you can try the stuff in the t3 branch and if you just want to run the bleeding edge jison-gho you could go and copy its /dist/ files into your /node_modules/jison-gho/dist/ as described as "patching" in https://github.com/GerHobbelt/jison/blob/t3/CONTRIBUTING.md#big-fat-warning-for-when-that-make-fails--the-need-to-patch-node_modulesjison-ghodist -- be sure to spin up your prayer wheels to full speed while you do this. πŸ˜‰ πŸ˜‰ πŸ˜‡

What's new then?

What you will get is a jison-gho which /should/ be ES6 capable, as may be observed from its own grammar spec files, such as https://github.com/GerHobbelt/jison/blob/t3/packages/lex-parser/lex.y :

I HAVE NOT tested jison-gho output in a rollup merge process like someone once asked a long time ago, but we might be getting much closer to a doable situation there.

Anyway, that's where we are today. There's movement, but haphazardly as time and other duties allow. πŸ‘Ό πŸ™

GerHobbelt commented 3 years ago

If you try anything dev-like, be reminded: master is b0rked today. t3 branch is the only branch currently doing anything sort of sane when you try to build it using make.

Note: master will become viable again later, but there's no time frame for that yet, as I had bit of a fight with the code and will need to mix the remaining good bits into t3 before I overrule the bad parts of master by merging t3 into it.