1065 Commits (03912dc7613885a35699d06d8609a9b06055c622)
 

Author SHA1 Message Date
Futago-za Ryuu 03912dc761 Create CODE_OF_CONDUCT.md 7 years ago
Futago-za Ryuu 928fdca6ac Added TOC's [skip ci] 7 years ago
Futago-za Ryuu 8856913ae8 Updated maintainer #503 7 years ago
Futago-za Ryuu 9658f4a92d Added package-lock.json 7 years ago
Futago-za Ryuu 081856cdeb Set "linebreak-style" rule to 0 7 years ago
Futago-za Ryuu 5e3ed79f95 Merge pull request #415 from sampsyo/master
Docs: try to explain error messages
7 years ago
Futago-za Ryuu 6939d1eb8d Merge pull request #481 from fatfisz/esm-support
Add support for ES modules
7 years ago
Futago-za Ryuu bc5c8a0f97 Add support for testing with Node.js 8 7 years ago
fatfisz 9c60380f86 Add info about es to the cmd tool 7 years ago
fatfisz d1f62596f1 Add info about the "es" target to the README 7 years ago
fatfisz c541911c04 Extract formats into array
Previously there was a very long condition.
7 years ago
fatfisz e3b7f0c3a9 Change "esm" to "es" 7 years ago
fatfisz aab928de91 Add support for ES modules 7 years ago
Futago-za Ryuu 35f3c5267a Merge pull request #490 from chearon/css-num-fix
CSS example: parse decimal form of nums correctly
7 years ago
Futago-za Ryuu f18cf30d76 Merge pull request #493 from AdhirRamjiawan/master
spelling error
7 years ago
Futago-za Ryuu 91c85d824d Merge pull request #494 from davidberneda/patch-1
Update arithmetics.pegjs
7 years ago
Futago-za Ryuu 624f87f66b README.md: Remove the notice about looking for a new maintainer [ci skip]
PEG.js has [a new maintainer](https://github.com/pegjs/pegjs/issues/503#issuecomment-303004127).
7 years ago
David Majda ba2f8bf3c2 README.md: Add a notice about looking for a new maintainer 7 years ago
David Berneda 962db9d090 Update arithmetics.pegjs
Allow spacing before digits like: "     2 * (3 + 4)"
7 years ago
Adhir Ramjiawan f861c2f476 spelling error 7 years ago
Caleb Hearon 770ca6e723 CSS example: parse decimal form of nums correctly
Before, 0.02 could get parsed as 0 and 0.02 when looking for nums+
7 years ago
David Majda 205c55d309 Tests: s/Spec/Test/
Missed in f5a372b075 (I probably grepped
case-sensitively).
7 years ago
David Majda 2942fa1867 Tests: Make tracing tests more specific
Check that the console and the default tracer are called with specific
arguments in given order. Previously the order of calls wasn't checked.
7 years ago
David Majda 9cc35d2cab Tests: DRY up tracing tests 7 years ago
David Majda 5d6bd75619 Tests: Use "to.be.{a,an}" instead of "expect(typeof ...)" 7 years ago
David Majda 6817f3b964 Tests: Require specific modules instead of the whole library
Requiring the whole library was a relict from the time where the tests
were exercising the browser build when run in the browser.
7 years ago
David Majda 9f36131637 Use https: in links to majda.cz
This avoids redirects.
7 years ago
David Majda e0511a55d5 .travis.yml: Test also with Node.js 7.0.x 7 years ago
David Majda f982e1cfd1 README.md: Indicate that IE8 is unsupported
Should have been done as part of #441.
7 years ago
David Majda 95d1e0decf package.json: Use exact version of run-sequence
The package was added with a version range ("^") by mistake.
7 years ago
David Majda f5a372b075 Use "test" and "tests" instead of "spec" and "specs"
This reflects a convention used in most JavaScript projects. The change
involves renaming the "spec" directory, Gulp task, etc.
7 years ago
David Majda 73de2c9384 Switch from Jasmine to Mocha & Chai
The switch is mostly mechanical, with assertions translated 1:1. The
biggest non-mechanical part is rewriting Jasmine custom matchers as Chai
helpers. The matchers were streamlined and simplified in the process and
their messages were made more in line with messages produced by built-in
Chai helpers.

Fixes #409.
7 years ago
David Majda 266f17d11c Adapt to using HTTPS on PEG.js website
PEG.js website is now served exclusively using HTTPS. Change protocol in
all links to it to avoid redirects.
7 years ago
David Majda a733beb933 Remove unnecessary escaping of "]" in a regexp
This fixes the following ESLint error, which started to appear after
eslint/eslint#7424 was fixed:

  /Users/dmajda/Programming/PEG.js/pegjs/lib/compiler/js.js
    37:17  error  Unnecessary escape character: \]  no-useless-escape

This should fix broken Travis CI builds:

  https://travis-ci.org/pegjs/pegjs/builds/180092802
7 years ago
David Majda b5bd30c813 gulpfile.js: Use "run-sequence" to run default tasks
Instead of specifying tasks that are part of the "default" task using
dependencies and running them in parallel, execute them serially using
"run-sequence". This makes things deterministic and ensures that all
messages from all tasks are seen in the output (which wasn't the case
before, leading to confusion).
7 years ago
David Majda 9d12b500df .travis.yml: Separate entries with empty lines 8 years ago
David Majda b33f2b2d24 Remove VERSION
Version information is already present in package.json and no code uses
the VERSION file anymore. It doesn't make sense too keep it just for the
sake of following an old convention as it is a maintenance burden.
8 years ago
David Majda 9956b42392 Switch from Make to Gulp
The core of the transition is getting rid of Makefile and replacing it
with gulpfile.js. The rest is details (fixing dependencies, changing all
references to "make", etc.).

Target/task names mostly stay the same, so in most cases "gulp foo" does
what "make foo" did before. The only exceptions are "make browser" and
"make browserclean", which are now "gulp browser:build" and "gulp
browser:clean" (it feels more systematic).

Functionality is mostly unchanged (modulo Gulp clutter in the console),
but there are two small exceptions:

  gulp spec

    The reporter now displays just dots while previously it displayed
    spec descriptions. There is also a deprecation warning (most likely
    because I used an old version of gulp-jasmine in order to support
    Jasmine 1.x). I kept these issues unfixed because I plan to switch
    to Mocha soon (#409).

  gulp browser:build

    The copyright header is now added manually both to the development
    and minified build. Before, it was added only to the development
    build and the minified build relied on preserving it using "uglify
    --comments". This was broken since switching to //-style comments.

    There is now also an empty line between the header and the source
    code.

Fixes #444.
8 years ago
David Majda ef3abf33b9 Fix error when generating AMD/UMD dependencies
Generating AMD/UMD dependencies lead to an error:

  $ bin/pegjs --format amd --dependency $:jquery examples/arithmetics.pegjs
  dependencyIds is not defined

  $ bin/pegjs --format umd --dependency $:jquery examples/arithmetics.pegjs
  dependencyIds is not defined

This commit fixes the problem, which was caused by a mistake done in
d2569b9bf3.
8 years ago
David Majda 83d748d522 Code style: Make all static "require" calls global
The "global-require" rule is disabled in ESLint configuration used by
PEG.js, but the idea is not bad, so let's make all static "require"
calls global.

Follow-up to #407.
8 years ago
David Majda f4df9ddde1 Code style: Fix some ESLint errors in generated code
Running ESLint on generated code with the configuration used on PEG.js
itself produces a lot of errors. This commit fixes some unnecessary ones
caught by these rules:

  - max-len
  - new-cap
  - newline-before-return
  - no-unused-vars

See also 5dd8e797f7.

Follow-up to #407.
8 years ago
David Majda 7d6ad99e33 Code style: Remove unnecessary "eslint-disable" directives
Part of #407.
8 years ago
David Majda 8471b621a8 Code style: Fix ESLint "newline-before-return" errors
Part of #407.
8 years ago
David Majda 2cb94adba7 Code style: Fix ESLint "space-in-parens" errors
Part of #407.
8 years ago
David Majda 6c3565fc96 Code style: Fix ESLint "func-style" errors
Part of #407.
8 years ago
David Majda 88f115146d Code style: Fix ESLint "space-infix-ops" errors
Part of #407.
8 years ago
David Majda 80a9e03614 Code style: Fix ESLint "no-empty-function" errors
Part of #407.
8 years ago
David Majda fd07f64637 Code style: Fix ESLint "indent" errors
Part of #407.
8 years ago
David Majda e61ae59681 Code style: Fix ESLint "default-case" errors
Part of #407.
8 years ago
David Majda 364482dd68 Code style: Fix ESLint "no-prototype-builtins" errors
Part of #407.
8 years ago