GerHobbelt / jison

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

Compile/test ES6/TypeScript/??? action code in jison grammars? #17

Open GerHobbelt opened 6 years ago

GerHobbelt commented 6 years ago

Sideways related to #14: here the challenge is setting up jison so that its internal code generation, code validation and 'live parser' generation logic can cope (= precompile) sources which are not 'vanilla JS', i.e. which are not JavaScript which is supported out of the box on the platform you're currently running jison on.

GerHobbelt commented 6 years ago

Related: #22

GerHobbelt commented 6 years ago

Note to self: this issue basically says: "whatever you do, also have a workflow choice where nothing is validated/expected to be 'sensible' JavaScript action code for whatever definition of 'sensible': just copy everything as-is as let the user play entirely their own game. Less precise error discovery and reporting but arbitrary input = arbitrary output, no hold-up or blocking b0rk along the way."

GerHobbelt commented 5 years ago

Related: #46