Comments (4)
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.
from jison.
@GerHobbelt Thank you! Looking forward to it.
from jison.
Please see comment #51 (comment) 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 :
- look for lines containing bits like
let lst =
orlet srcCode =
in their "action code blocks".- all jison / jison-gho releases will go
💥 bang💥 as they will, at best, generate code which has scope collisions as multiplelet
variable declarations with the same variable name end up in the same scope inside the large parser kernelswitch
/case
statement. Bleeding edgejison-gho
add curly braces where needed to scope these fellas.
- all jison / jison-gho releases will go
- %{ import ... %} at the top /should/ work as expected.
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.
from jison.
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 intot3
before I overrule the bad parts ofmaster
by mergingt3
into it.
from jison.
Related Issues (20)
- Generate lexer/parser in different programming language
- build problem: @gerhobbelt/recast should require @gerhobbelt/esprima
- Rename project, new identity.
- arrow notation barfs on comments HOT 8
- `lexer.conditions[K].rules` grows with each call to parse HOT 7
- Question: jison-gho debugger HOT 1
- Do parsers share a global state? HOT 1
- Parser source produced by generate API is different from CLI output HOT 1
- suggestion: typescript compilable to WASM HOT 6
- make esprima errors more intelligible (caused by faults in user action code test-parse-passes during grammar compile)
- Add unit tests to directly verify feature stripper generating compiling-and-running output
- Doesn't seem to pick longest possible match HOT 1
- Using "?." and "??" JS operators in action code blocks ?
- TypeError: yylexer.mergeLocationInfo is not a function HOT 1
- Use sub part of the parser HOT 2
- How is possible to implement C-like pre-processor macros ?
- NPM warnings about vulnerabilities
- Can't parse postgresql grammar and missing error location HOT 2
- Decorator error when using `@` variables in actions
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 jison.