zaach / jison

Bison in JavaScript.
http://jison.org
4.36k stars 450 forks source link

Use without node.js? #281

Open gitmh opened 9 years ago

gitmh commented 9 years ago

Is it technical possible to use jison without a node server - just inside a browser? Are there any dependencies that will never work inside a browser?

cdibbs commented 9 years ago

In short, yes. Take a look, here:

http://zaach.github.io/jison/try/

gitmh commented 9 years ago

Sorry, I missed the /web folder :-) I'll try it out - thank you very much.

nolanlawson commented 9 years ago

There's also the wonderful jisonify browserify transform you can use to directly require('mygrammar.jison') :smiley: .

iancampelo commented 8 years ago

I used the solution of @cdibbs, now I have a .js file, how can I call the parser? I need to use Jison parser on my Web Page and I can't install the NPM package...

Can I do that?

yosbelms commented 8 years ago

For a browserified bundle see https://gist.github.com/nolanlawson/e20335847fba32a3f385 by @nolanlawson.

@iancampelo, to use the generated parser see http://zaach.github.io/jison/docs/#using-the-parser-from-the-web