qfox/zeparser2 — pull request #24 by qfox (2013-08-22 00:20:02+00:00)
Title: Add constants

Replaced all numbers and non-obvious booleans with a constant. Build script was updated to undo this action (quite basic but effective). Fixes #19

Added workaround for performance bug in Chrome. Introduced when I wrapped everything in an anonymous function, performance took a 100% hit. The workaround is to explicitly assign

Defined `tokenCountAll` explicitly in the constructor, improved most of lost perf this way.

Removed `tokenCount` in favor of `tokenCountAll`. The latter includes `EOF` in its count, makes certain things in Par easier to do.

Seems I've lost some perf in the past few commits. Tried some minor things to retrieve it but we're still down. Have some ideas to get some back though.

Updated all files and fixed all tests.