You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5a4d04fa90
Until now, expectations were constructed using object literals. This commit changes the construction to use factory functions. This change makes generated parsers slightly smaller because property names don't have to be repeated many times and factory function calls are more amenable to minifying. Some numbers based on the aggregate size of parsers generated from examples/*.pegjs: Optimization Minified? Size before Size after Saving ------------------------------------------------------------ speed no 719066 716063 0.42% speed yes 188998 180202 4.65% size no 194810 197813 1.52% size yes 108782 99947 8.12% (Minification was done using "uglify --mangle --compress" with uglify-js 2.4.24.) |
9 years ago | |
---|---|---|
.. | ||
compiler | 9 years ago | |
utils | 9 years ago | |
.eslintrc.json | 9 years ago | |
compiler.js | 9 years ago | |
grammar-error.js | 9 years ago | |
parser.js | 9 years ago | |
peg.js | 9 years ago |