jison icon indicating copy to clipboard operation
jison copied to clipboard

Use without node.js?

Open gitmh opened this issue 10 years ago • 5 comments

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?

gitmh avatar May 02 '15 20:05 gitmh

In short, yes. Take a look, here:

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

cdibbs avatar May 02 '15 20:05 cdibbs

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

gitmh avatar May 02 '15 20:05 gitmh

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

nolanlawson avatar May 02 '15 22:05 nolanlawson

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?

iancampelo avatar Feb 05 '16 11:02 iancampelo

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

yosbelms avatar Feb 05 '16 15:02 yosbelms