pegjs/lib/compiler/passes
David Majda 7f8b3f7012 UMD parsers: Generate parser wrapper separately from its toplevel code
Code which was at the toplevel of the "generateJS" function in the code
generator is now split into "generateToplevel" (which genreates parser
toplevel code) and "generateWrapper" (which generates a wrapper around
it). This is pure refactoring, generated parser code is exactly the same
as before.

This change will make it easier to modifiy the code genreator to produce
UMD modules.

Part of work on #362.
2016-05-02 12:41:19 +02:00
..
generate-bytecode.js Fix labels leaking to outer scope 2016-03-11 16:42:03 +01:00
generate-js.js UMD parsers: Generate parser wrapper separately from its toplevel code 2016-05-02 12:41:19 +02:00
remove-proxy-rules.js Convert PEG.js code to strict mode 2015-06-12 17:34:59 -07:00
report-infinite-loops.js Report left recursion and infinite loops only as "possible" 2015-09-11 14:58:53 +02:00
report-left-recursion.js Report full rule chain in recursive rule errors 2015-09-11 15:09:42 +02:00
report-missing-rules.js Convert PEG.js code to strict mode 2015-06-12 17:34:59 -07:00