Open mochicode opened 7 years ago
The calculator example comes with both lexer (inside a %lex.../lex
section) and a grammar (parser), while the ansic example does not include a lexer spec, hence jison does not produce a lexer to go with the parser. Hence this.lexer
is not defined.
Hey, sorry that I didn't had time to responde. I thought that the examples would work, thous I was a little confused.
When I build and run the ansic example from the repository I get the following error:
I used
yarn run jison examples/ansic.jison
to build the parser and tried to use the cli as well as to embed the parser in a program and I'm getting the same error.The calculator example, however, works fine.