139 Commits (b7b87ea8aeeaa1caf096e2da99fd95a971890ca1)

Author SHA1 Message Date
Futago-za Ryuu 68ca388d91 Update badges 5 years ago
Futago-za Ryuu 5a209ff186 Remove CBT logo 5 years ago
Futago-za Ryuu 61377b1bd7 Azure Pipelines -> GitHub Actions
- Update CodeCov CI provider URL
- Remove Support for Azure Pipelines
- Add support for GitHub Actions
- Stop generating redundent reports
- Update @pegjs/publish-dev
5 years ago
Futago-za Ryuu baf8b3a339 Publish to pegjs@dev on every CI run
This adds a new local package called '@pegjs/publish-dev' that will be run by the CI after all other tasks.

'@pegjs/publish-dev' will, as the name implies, publish a new release of pegjs on NPM under the dev tag.
6 years ago
Futago-za Ryuu 5542547091 Switch to codecov.io 6 years ago
Futago-za Ryuu 9801b966c0 Add repository to packages table 6 years ago
Futago-za Ryuu 8d1a9a6ceb Updated packages table [no ci] 6 years ago
Futago-za Ryuu 9716fe5f38 Yarn: ignore website directory 6 years ago
Futago-za Ryuu c59c81c318 Removed test coverage badges (#598) 6 years ago
Futago-za Ryuu bdde25a9e4
Set up CI with Azure Pipelines (#596)
* Add support for Azure Pipelines
* Remove Travis CI support
* coverage: Generate cobertura and lcov reports only
* Add support for Code Climate
6 years ago
Futago-za Ryuu 29943edf60 Add forum badge 6 years ago
Futago-za Ryuu 7cf887ec4b Update packages table 6 years ago
Futago-za Ryuu 4f4af756d3 Fix CBT image width [ci skip] 6 years ago
Futago-za Ryuu ec93e64939 Update root README.md: Add packages table 6 years ago
Futago-za Ryuu f09f2f2cb4 Move CBT logo 6 years ago
Futago-za Ryuu 8bd4d390a9 Add linkback to CrossBrowserTesting [ci skip] 6 years ago
Futago-za Ryuu 699038c507 Link to doc for plugins 7 years ago
Futago-za Ryuu 2ac387e1c9 Move documentation
The README.md file in the root of the repository had become too large, and as a result the file became hard to maintain.

This commit extracts all the documentation and moves it to separate but managable files within the docs directory, a new folder also located in the root of the repository.
7 years ago
Futago-za Ryuu 8e9be9afea Use CommentMap 7 years ago
Futago-za Ryuu 11bc94f4c3 Updated docs for JavaScript API [ci skip]
This includes detials about the 3 main methods a developer will use along with their respective options.

Closes #553
7 years ago
Mingun 0dab14d652 Add ability to extract comments from the grammar (#511)
All comments stored in the `comments` property of the `grammar` node.
Comments extracted only if the `extractComments` options set to `true` when you generate parser.
This property is object with mapping start offset of comment to comment object, that looks like:

```js
{
  text: 'text in the comment, just after // or /* and before */',
  multiline: true|false,// true for /**/ comments, false for // comments
  location: location()
}
```
7 years ago
Futago-za Ryuu b6bc0d905e Use .js files with -c option on CLI
This commit adds support for '.js' files to be passed to the '-c', '--config'  or '--extra-options-file' options on the CLI, allowing the developer to do some extra work before the parser is generated (if they wish), or dynamically set options based on the enviroment.
7 years ago
Mingun 3f8cf7cd58 Add coveralls.io support 7 years ago
Futago-za Ryuu d6142772f8 Switch dev to pegjs@dev [ci skip] 7 years ago
Futago-za Ryuu db70215c4a Added 'header' option (#491) 7 years ago
Futago-za Ryuu a33eb0b45c Updated contribution section 7 years ago
felix 6a9a9a5d23 Add more explanation of balanced braces (#533) 7 years ago
felix 369b8cdcc6 Clarify details for the execution environment for actions (#531)
* Clarify execution environment of actions and predicates
* Makes a new section for describing the common execution environment
* Add the new section to TOC
* Clarify start/end for predicates
* Clarify the scope of labels
7 years ago
felix 958e15879d Reimplement offset() and add range(). (#528)
* Reimplement offset()
* Implement range()

Fixes #526, thanks @felix9
7 years ago
Futago-za Ryuu 0ed8c6f89a Rewrote command line tool
- Split into 3 files: "peg.js", "options.js" and "usage.txt"
- Rewrote arguments parser and helpers to be more precise
- Any arguments after "--" will be passed to "options['--']" now
- Added negation options: "--no-cache" and "--no-trace"
- Added "bare" to accepted module formats
- Added 2 aliases for "--extra-options-file": "-c" and "--config"
- Added short options: "-a", "-f" and "-p"
- Reformatted help text in "usage.txt"
- Updated documentation related to command line options and normal options
- Changed "bin" field in "package.json" from "bin/pegjs" to "bin/peg"
- Added documentation note about command line options that are repeated
- Updated gulpfile.js, replacing "bin/pegjs" with "bin/*.js"

See #429, which was what I intended to fix/solve, but instead pushed back and did this instead.
7 years ago
Futago-za Ryuu 48a0c37997 Fix link for dot character [ci skip] 7 years ago
Futago-za Ryuu 6661f6b958 Updated documentation
- Updated Badges
- Moved the introduction back to the top
- Added a title for the TOC list
- Added "Latest" sub-section (closes #521)
- Added "Case-insensitivity" sub-section (see #518)
- Added "Backtracking" sub-section (closes #438)
- Fixed link for . (dot character)
- Added a title for the links in the development section
- Added "Contribution" sub-section (closses #457)
- Updated the TOC list
7 years ago
Futago-za Ryuu 928fdca6ac Added TOC's [skip ci] 8 years ago
Futago-za Ryuu 8856913ae8 Updated maintainer #503 8 years ago
Futago-za Ryuu 5e3ed79f95 Merge pull request #415 from sampsyo/master
Docs: try to explain error messages
8 years ago
fatfisz d1f62596f1 Add info about the "es" target to the README 8 years ago
Adhir Ramjiawan f861c2f476 spelling error 8 years ago
David Majda 9f36131637 Use https: in links to majda.cz
This avoids redirects.
8 years ago
David Majda f982e1cfd1 README.md: Indicate that IE8 is unsupported
Should have been done as part of #441.
8 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.
8 years ago
David Majda 400a3cfa3c Avoid aligning object keys
The only exception left are objects representing a mapping with simple
keys and values -- essentially tables written as object literals.

See #443.
8 years ago
David Majda 16f38f6380 Drop Node 0.10.x & 0.12.x support
See #442.
8 years ago
David Majda 8003edafc9 Rename the "node" module format to "commonjs"
Parsers generated in this format use module.exports, so they are not
strictly CommonJS, but this is a common extension and the original name
would be confusing once Node.js implements ES2015 modules.
8 years ago
David Majda 8962dcfd16 Rename the "global" module format to "globals"
I think the new name is more widely used when describing the pattern.
8 years ago
David Majda 2a8544d86c README.md: Remove io.js from the list of compatible environments 8 years ago
David Majda 75cd17ed58 bin/pegjs: Implement the --format option 8 years ago
David Majda db9920e3ca peg.generate: Implement { format: "global" } 8 years ago
David Majda 61c11ee1b4 peg.generate: Implement { format: "amd" } 8 years ago
David Majda f633f697c9 peg.generate: Implement { format: "node" } 8 years ago
David Majda e8be76ee3a Don't expose the "parser" variable in parser code
The "parser" variable allowed access to the parser object. Among other
things, this made it possible to invoke the parser recursively using
"parser.parse".

One problem with the "parser" variable is that it bakes in the idea that
the parser is an *object*, not a *module*. While this is true now, it
won't necessarily be in the future, when parsers may be exported as ES6
modules. Also, people tend to use parsers as modules even today, e.g.
like this:

  var parse = require("parser").parse;
  var result = parse(...);

Such usage broke the "parser" variable (as it was implemented).

For this reasons I decided to remove the "parser" variable. If someone
needs to do tricks like recursive invocation of the parser, he/she must
pass the parser or the "parse" function itself using options.

Related to #433.
8 years ago