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.
David Majda cc7ad9739f Add ability to start parsing from any grammar rule
Calling the parsing function could have been done without the ugly table
using |eval|, but this seemed to degrade performance significantly (by
about 3 %). This is probably because engines optimize badly in presence
of |eval|.

The method used in this patch does not change the benchmark suite
execution speed statistically significantly on V8.

Detailed results (benchmark suite totals):

---------------------------------
 Test #     Before       After
---------------------------------
      1   38.24 kB/s   38.28 kB/s
      2   38.35 kB/s   38.15 kB/s
      3   38.43 kB/s   38.40 kB/s
      4   38.53 kB/s   38.20 kB/s
      5   38.25 kB/s   38.39 kB/s
---------------------------------
Average   38.36 kB/s   38.39 kB/s
---------------------------------

Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.1
13 years ago
..
vendor/qunit Upgrade QUnit to the current master (c532d183664118fc2ca1) 13 years ago
README Add command-line runner for the test suite 13 years ago
checks-test.js Do not pass |global| into wrapping functions in tests, it's useless 13 years ago
compiler-test.js Add ability to start parsing from any grammar rule 13 years ago
helpers.js Add ability to start parsing from any grammar rule 13 years ago
index.html Move test helper into its own file + reorder test file includes 14 years ago
parser-test.js Do not pass |global| into wrapping functions in tests, it's useless 13 years ago
passes-test.js Do not pass |global| into wrapping functions in tests, it's useless 13 years ago
run Test and benchmark command-line runners can be run from any directory 13 years ago

README

PEG.js Test Suite
=================

This is the PEG.js test suite. It ensures PEG.js works correctly. All tests
should always pass on all supported platforms.

Running in a browser
--------------------

  1. Open the index.html file in your browser.

  2. Watch the test pass (or fail).

Running from a command-line
---------------------------

  1. Make sure you have Node.js installed.

  2. Run the following command:

       ./run

  3. Watch the tests pass (or fail).