Commit graph

6 commits

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.
2016-09-08 14:53:00 +02:00
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.
2016-05-05 17:35:40 +02:00
David Majda 138405d89d Add syntax highlighting to code blocks in README.md files 2016-05-05 10:21:20 +02:00
David Majda c6f0818d49 Use sentence case consistently in {spec,benchmark}/README.md headers 2014-05-10 16:40:39 +02:00
David Majda f102814998 Rewrite spec/README.md
More clarity, better grammar (hopefully).
2014-05-09 15:09:53 +02:00
David Majda 24e1644c58 Convert spec/README to Markdown
It will look nicer on GitHub.
2014-05-09 14:37:05 +02:00
Renamed from spec/README (Browse further)