6 Commits (6fa8ad63f9fb7bf393459b5166092cc3920e13cb)

Author SHA1 Message Date
David Majda 5c40fff136 Pass spec code through Babel before serving it to the browser
This will allow to use ES2015 constructs in spec code.

The change required introducing a small server, which serves both PEG.js
and spec code passed through Babel and bundled together. This allowed to
convert the specs to regular modules and get rid of the hackery that was
previously needed to make them run both in Node.js and in the browser.

Note the specs no longer exercise the browser version. This will allow
to spec PEG.js internals in the future.

See #442.
8 years ago
David Majda c50ad15461 Use http-server to serve specs and benchmarks to the browser
Previously, the instructions recommended using Python's SimpleHTTPServer
module, which created unnecessary dependency on Python.
8 years ago
David Majda 138405d89d Add syntax highlighting to code blocks in README.md files 8 years ago
David Majda c6f0818d49 Use sentence case consistently in {spec,benchmark}/README.md headers 10 years ago
David Majda f102814998 Rewrite spec/README.md
More clarity, better grammar (hopefully).
10 years ago
David Majda 24e1644c58 Convert spec/README to Markdown
It will look nicer on GitHub.
10 years ago