1135 Commits (fde1c480f4214be4e4770c94fa0fc91881ba2211)
 

Author SHA1 Message Date
Mingun fde1c480f4 Use chai-like instead of own properties matcher (#550) 7 years ago
Mingun a480c7d39c Excess points are deleted from the PR template (#551)
They already covered by `lint` and `test` checks [ci skip]
7 years ago
Mingun 534dc53ac2 Optimize redundant fail checks (#400)
eliminate unnecessary checks for the result of parse, when it can be statically determined
7 years ago
Futago-za Ryuu f5699d63fb Updated devDependencies
- Bump: eslint-config-futagozaryuu@3.8
- Bump:  run-sequence@2.2.1
7 years ago
Futago-za Ryuu cb385476c1 Updated header for generated browser files
The 'broser/*.js' files should now include the 'eslint-disable' comment directive.
7 years ago
Futago-za Ryuu 92f1798308 Moved Babel options to .babelrc 7 years ago
Futago-za Ryuu 06f1565a32 tsd: Added NotExpectation interface 7 years ago
Mingun 42ec335d13 Optimize silent fails: remove checks that always false (#399)
* Optimization: do not generate unreachable calls |peg$fail| and constants for it (local to the rule).
* Optimization: do not generate unreachable calls |peg$fail| and constants for it (non-local to rule).
7 years ago
Mingun a7a0a0d9ac Bump devDependencies (#549)
- Removed: babel-preset-es2015@6.24.1
- Added: babel-preset-env@1.6.1
- Updated: gulp-mocha@5.0.0
- Updated: nyc@11.4.1
- Updated: vinyl-buffer@1.0.1
- Updated: vinyl-source-stream@2.0.0
7 years ago
Mingun 669f782a5f Partial fix #194 - nonsenses error messages with semantic predicates (#547)
* Remove stack manipulations from FAIL opcode and rename FAIL to EXPECT
* Always save the expected values regardless of the match result of expression
* Remove unnecessary check for match result in the `named` node
* Collect and process expectations from predicates
7 years ago
Futago-za Ryuu 1b20aa5427 Ensure usage of 'lib/peg.d.ts'
This commit ensures that all modules outside 'lib' are importing 'lib/peg.js' so that VS Code automatically gets 'lib/peg.d.ts'.

An alias module for 'lib/peg.js' called 'pegjs-dev' was made for test files at 'test/node_modules/pegjs-dev.js'
7 years ago
Futago-za Ryuu 03cc2eae95 Added 'lib/peg.d.ts' for internal use 7 years ago
Futago-za Ryuu ea688abd02 Fix shadowing issue on UMD format (#499) 7 years ago
Futago-za Ryuu cd02806c94 Moved 'package.json:repository' field 7 years ago
Futago-za Ryuu 95409f0155 Moved Github related documents 7 years ago
Futago-za Ryuu 01a2be7b78 Removed 'gulp benchmark' from default tasks 7 years ago
Futago-za Ryuu d3cbbee592 Added .d.ts declaration files (#519) 7 years ago
Futago-za Ryuu a02f8091e3
Merge pull request #541 from Mingun/correct-options-in-tests
Auto-add `allowedStartRules` to test options for `changeAST` method if it not defined
7 years ago
Mingun 3e89534bb7 Auto-add `allowedStartRules` to test options for `changeAST` and `reportError` methods if it not defined 7 years ago
Futago-za Ryuu 75d655409c
Merge pull request #546 from Mingun/coverage
Add code coverage by Istanbul and coveralls.io
7 years ago
Mingun 3f8cf7cd58 Add coveralls.io support 7 years ago
Mingun f0e5eebe1a Add code coverage by Intanbul 7 years ago
Futago-za Ryuu d6142772f8 Switch dev to pegjs@dev [ci skip] 7 years ago
Futago-za Ryuu 1dd1487f9b Set version to v0.11.0-dev 7 years ago
Futago-za Ryuu db70215c4a Added 'header' option (#491) 7 years ago
Futago-za Ryuu 247a0bf707 Removed non-LTS versions of Node.js 7 years ago
Futago-za Ryuu f7dd11698a Updates devDependencies
- eslint-config-futagozaryuu
- sinon
7 years ago
Futago-za Ryuu 2a7dcdcfbe Changed 'bin/usage.txt' to 'bin/usage.js'
This change ensures the usage text always has LF line ending on Linux
7 years ago
Futago-za Ryuu 881eb67545 Removed redundant css files
The css files used in the benchmark contained 2 files for IE that contained syntax errors. These files weren't actually used by the benchmark, but were still in the repository.
7 years ago
Futago-za Ryuu a33eb0b45c Updated contribution section 7 years ago
Futago-za Ryuu 30d39f6267 Added PR Template
Based on the example at https://github.com/stevemao/github-issue-templates/tree/master/checklist2
7 years ago
Futago-za Ryuu 280466cc7b Added Issue Template
Based on the example at https://github.com/stevemao/github-issue-templates/tree/master/checklist2
7 years ago
Futago-za Ryuu 9568522d9c Move guidelines to docs folder 7 years ago
Futago-za Ryuu 123a20a83c Updated ignored and published files 7 years ago
Futago-za Ryuu 37698d8981 Updated NPM scripts & Gulp tasks
- updated names & ordering
- set "gulp clean" to also remove generated examples
- added "gulp lint" to list of default tasks
7 years ago
Futago-za Ryuu b4e5b97a2e Disabled eslint rule 'prefer-spread' 7 years ago
Futago-za Ryuu 5f0001c3e5 Fix compatibility for older bins 7 years ago
Futago-za Ryuu e6d018a88d Update code format and style
This is related to my last commit. I've updated all the JavaScript files to satisfy 'eslint-config-futagozaryuu', my eslint configuration.

I'm sure I've probally missed something, but I've run all NPM scripts and Gulp tasks, fixed any bugs that cropped up, and updated some stuff (mainly related to generated messages), so as far as I can, tell this conversion is over (I know I've probally jixed it just by saying this ;P).
7 years ago
Futago-za Ryuu 3c6523ff83 Switched eslint configuration
Was using 'eslint-config-dmajda' by @dmajda, but since it's diffucult for me to use multiple styles across multiple projects, I'm switching to my own 'eslint-config-futagozaryuu'.
7 years ago
Futago-za Ryuu 50cbcd6704 Updated devDependencies
Was planning on doing this after 0.11 (see #497), but since I'm doing an overhaul of the development files now instead, might as well...
7 years ago
Futago-za Ryuu 35832f474f Updated gulpfile.js
- Updated glob for test files
- Updated HEADER var for generated browser build
- Inlined list of JS_FILES to lint
- Added helper 'execFile'
- Simplyfied 'gulp benchmark'
- Parser generator now use's 'bin/peg.js'
- Moved HEADER var into 'browser:build' function
- Simplyfied 'gulp browser:clean'
- removed dependency 'gulp-transform'
7 years ago
Futago-za Ryuu 9802bae15f test/impact: Add compatibility for older bin files
This ensures the impact test doesn't throw when testing against older commits that contain the bin files at their orignal locations.
7 years ago
Futago-za Ryuu abadaf4d5d Add test for empty grammars
This add's a test that ensures grammars without any rules are not accepted.
7 years ago
Futago-za Ryuu 96a386ff15 Merged documents for test suites 7 years ago
Futago-za Ryuu 5c36738a52 Rewrote test/impact as a Node.js script
"test/impact" was a bash script before, and used tools spefic to some systems, which required Window users to have more software installed.

This rewrite removes the bash script and add's a cross platform Node.js script that doesn't depend on platform-spefic tools.
7 years ago
Futago-za Ryuu 08bbd6d5b6 Moved "eslint-env node" to the root
It seem's kind of pointless setting the comment "/* eslint-env node */" at the top of only some JavaScript files when nearly all of them are Node.js releated, so I moved this option to the root level config, only leaving the 'lib' folder as "/* eslint-env commonjs */"
7 years ago
Futago-za Ryuu 5a833bd982 Moved all spec and benchmark tests
- Moved benchmark to test/benchmark
- Moved tests to test/spec
- Removed individual servers
- Implemented single test server
- Moved server assets to test/server
- Updated Gulpfile.js
- Moved tools/impact to test/impact

This commit move's nearly all code related to testing the PEG.js module into the test directory, and also ensures they run as they did before the move.
7 years ago
Futago-za Ryuu a1ad351c2c Add extension for bin file
Fixes #535 (again ...)
7 years ago
Futago-za Ryuu 14948dad93 Update files field to include bin files
Closes #529, Fixes #535
7 years ago
felix 6a9a9a5d23 Add more explanation of balanced braces (#533) 7 years ago