org.webjars.npm:nearley

📜🔜🌲 Simple, fast, powerful parser toolkit for JavaScript.

https://github.com/kach/nearley

Science Score: 57.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.8%) to scientific vocabulary

Keywords

earley-algorithm earley-parser javascript nearley node nodejs parser parsing parsing-library
Last synced: 4 months ago · JSON representation ·

Repository

📜🔜🌲 Simple, fast, powerful parser toolkit for JavaScript.

Basic Info
  • Host: GitHub
  • Owner: kach
  • License: mit
  • Language: JavaScript
  • Default Branch: master
  • Homepage: https://nearley.js.org
  • Size: 2.25 MB
Statistics
  • Stars: 3,706
  • Watchers: 44
  • Forks: 234
  • Open Issues: 198
  • Releases: 1
Topics
earley-algorithm earley-parser javascript nearley node nodejs parser parsing parsing-library
Created almost 12 years ago · Last pushed about 1 year ago
Metadata Files
Readme Contributing License Citation

README.md

nearley ↗️

JS.ORG npm version

nearley is a simple, fast and powerful parsing toolkit. It consists of: 1. A powerful, modular DSL for describing languages 2. An efficient, lightweight Earley parser 3. Loads of tools, editor plug-ins, and other goodies!

nearley is a streaming parser with support for catching errors gracefully and providing all parsings for ambiguous grammars. It is compatible with a variety of lexers (we recommend moo). It comes with tools for creating tests, railroad diagrams and fuzzers from your grammars, and has support for a variety of editors and platforms. It works in both node and the browser.

Unlike most other parser generators, nearley can handle any grammar you can define in BNF (and more!). In particular, while most existing JS parsers such as PEGjs and Jison choke on certain grammars (e.g. left recursive ones), nearley handles them easily and efficiently by using the Earley parsing algorithm.

nearley is used by a wide variety of projects:

nearley is an npm staff pick.

Documentation

Please visit our website https://nearley.js.org to get started! You will find a tutorial, detailed reference documents, and links to several real-world examples to get inspired.

Contributing

Please read this document before working on nearley. If you are interested in contributing but unsure where to start, take a look at the issues labeled "up for grabs" on the issue tracker, or message a maintainer (@kach or @tjvr on Github).

nearley is MIT licensed.

A big thanks to Nathan Dinsmore for teaching me how to Earley, Aria Stewart for helping structure nearley into a mature module, and Robin Windels for bootstrapping the grammar. Additionally, Jacob Edelman wrote an experimental JavaScript parser with nearley and contributed ideas for EBNF support. Joshua T. Corbin refactored the compiler to be much, much prettier. Bojidar Marinov implemented postprocessors-in-other-languages. Shachar Itzhaky fixed a subtle bug with nullables.

Citing nearley

If you are citing nearley in academic work, please use the following BibTeX entry.

bibtex @misc{nearley, author = "Kartik Chandra and Tim Radvan", title = "{nearley}: a parsing toolkit for {JavaScript}", year = {2014}, doi = {10.5281/zenodo.3897993}, url = {https://github.com/kach/nearley} }

Owner

  • Name: Kartik Chandra
  • Login: kach
  • Kind: user
  • Location: Stanford / MIT
  • Company: MIT CSAIL

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you are citing nearley in academic work, please use the following citation."
authors:
  - family-names: Chandra
    given-names: Kartik
  - family-names: Radvan
    given-names: Tim
title: "nearley: a parsing toolkit for JavaScript"
doi: 10.5281/zenodo.3897993
date-released: 2014-02-23
repository-code: "https://github.com/kach/nearley/"

GitHub Events

Total
  • Issues event: 1
  • Watch event: 111
  • Issue comment event: 9
  • Push event: 1
  • Pull request event: 2
  • Fork event: 3
Last Year
  • Issues event: 1
  • Watch event: 111
  • Issue comment event: 9
  • Push event: 1
  • Pull request event: 2
  • Fork event: 3

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 935
  • Total Committers: 55
  • Avg Commits per committer: 17.0
  • Development Distribution Score (DDS): 0.48
Past Year
  • Commits: 1
  • Committers: 1
  • Avg Commits per committer: 1.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Hardmath123 h****3@g****m 486
tjvr t****m@t****g 178
Aria Stewart a****l@n****g 46
Joshua T Corbin j****n@w****g 44
rwindelz r****z@g****m 24
Toby Ho a****h@g****m 20
Bojidar Marinov b****g@g****m 13
Kaspar Emanuel k****l@g****m 12
corwin c****r@g****m 10
Viet Le v****5@g****m 10
Hardmath123 H****3 8
bandaloo b****o@i****m 6
Alex Bates 1****a@g****m 6
Alexander Trefz a****z@g****m 5
Scott Olmsted s****d@g****m 4
Ali Clark a****i@a****t 4
Nikita Litvin n@d****m 4
Cameron Hunter h****o@c****k 4
Jan Ivica w****e@g****m 3
JacobEdelman e****d@g****m 3
Henry Zhang h****g@f****m 3
coolreader18 3****8 2
Simon Hildebrandt s****t@g****m 2
Rob Rose R****s@g****m 2
Peter Ljunglöf p****f@h****e 2
Kyle J. Kemp k****e@s****m 2
Janne Aukia j****a@g****m 2
Jake j****e@d****m 2
Bob Kanefsky k****f 2
Shahar Soel s****l@g****m 1
and 25 more...

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 86
  • Total pull requests: 31
  • Average time to close issues: 8 months
  • Average time to close pull requests: 11 months
  • Total issue authors: 79
  • Total pull request authors: 27
  • Average comments per issue: 2.49
  • Average comments per pull request: 1.48
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: about 4 hours
  • Issue authors: 2
  • Pull request authors: 2
  • Average comments per issue: 1.5
  • Average comments per pull request: 0.5
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • KillyMXI (3)
  • gajus (3)
  • agladysh (3)
  • jrh3 (2)
  • will62794 (1)
  • Zemnmez (1)
  • crguezl (1)
  • Lysxia (1)
  • AsLogd (1)
  • lassehp (1)
  • vladinator1000 (1)
  • TekuConcept (1)
  • Daniellop1 (1)
  • ibrahimesseddyq (1)
  • bburns (1)
Pull Request Authors
  • bandaloo (2)
  • msimerson (2)
  • sorawee (2)
  • mattfysh (2)
  • seansfkelley (2)
  • DavidTanner (2)
  • naraen (1)
  • mightymax (1)
  • misdocumeno (1)
  • lguzzon (1)
  • AsLogd (1)
  • alchemistake (1)
  • abitrolly (1)
  • okonech (1)
  • markandrus (1)
Top Labels
Issue Labels
question (3) enhancement (2) help wanted (1) docs (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads: unknown
  • Total dependent packages: 2
  • Total dependent repositories: 0
  • Total versions: 2
repo1.maven.org: org.webjars.npm:nearley

WebJar for nearley

  • Versions: 2
  • Dependent Packages: 2
  • Dependent Repositories: 0
Rankings
Stargazers count: 4.7%
Forks count: 10.0%
Average: 17.3%
Dependent packages count: 22.4%
Dependent repos count: 32.0%
Last synced: 4 months ago

Dependencies

docs/package-lock.json npm
  • 120 dependencies
docs/package.json npm
  • http-server ^0.12.3 development
  • handlebars ^4.0.10
  • metalsmith ^2.3.0
  • metalsmith-headings ^0.2.0
  • metalsmith-layouts ^1.8.1
  • metalsmith-markdown ^1.3.0
  • metalsmith-paths ^3.0.1
package-lock.json npm
  • 479 dependencies
package.json npm
  • @types/moo ^0.3.0 development
  • @types/node ^7.0.27 development
  • babel-cli ^6.18.0 development
  • babel-preset-env ^1.6.0 development
  • benchr ^3.2.0 development
  • coffee-script ^1.10.0 development
  • doctoc ^1.3.0 development
  • expect ^1.20.2 development
  • microtime ^2.1.2 development
  • mocha ^8.2.1 development
  • typescript ^2.6.1 development
  • commander ^2.19.0
  • moo ^0.5.0
  • railroad-diagrams ^1.0.0
  • randexp 0.4.6