You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will generate a `calculator.js` file in your current working directory. This file can be used to parse an input file, like so:
32
32
@@ -144,11 +144,14 @@ A demo of the calculator script used in a web page is [here](http://zaach.github
144
144
145
145
Specifying a language
146
146
---------------------
147
-
The process of parsing a language involves two phases: **lexical analysis** (tokenizing) and **parsing**, which the Lex/Yacc and Flex/Bison combinations are famous for. Jison lets you specify a parser much like you would using Bison/Flex, with separate files for tokenization rules and for the language grammar.
147
+
The process of parsing a language involves two phases: **lexical analysis** (tokenizing) and **parsing**, which the Lex/Yacc and Flex/Bison combinations are famous for. Jison lets you specify a parser much like you would using Bison/Flex, with separate files for tokenization rules and for the language grammar, or with the tokenization rules embedded in the main grammar.
148
148
149
-
For example, here is the calculator parser:
149
+
For example, here is the grammar for the calculator parser:
150
150
151
-
calc.jisonlex, tokenization rules
151
+
/* description: Parses end executes mathematical expressions. */
0 commit comments