All Projects → kach → Nearley

kach / Nearley

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

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
Nearley
35 projects
CSS
56736 projects

Projects that are alternatives of or similar to Nearley

Covfefe
A parser for nondeterministic context free languages
Stars: ✭ 49 (-98.41%)
Mutual labels:  parsing, earley-algorithm, earley-parser
Whispers
Identify hardcoded secrets and dangerous behaviours
Stars: ✭ 66 (-97.86%)
Mutual labels:  parser, parsing
Arpeggio
Parser interpreter based on PEG grammars written in Python http://textx.github.io/Arpeggio/
Stars: ✭ 204 (-93.4%)
Mutual labels:  parser, parsing
Neodoc
Beautiful, hand-crafted commandline interfaces for node.js
Stars: ✭ 221 (-92.85%)
Mutual labels:  parser, parsing
Parse Xml
A fast, safe, compliant XML parser for Node.js and browsers.
Stars: ✭ 184 (-94.04%)
Mutual labels:  parser, parsing
Lief
Authors
Stars: ✭ 2,730 (-11.62%)
Mutual labels:  parser, parsing
Escaya
An blazing fast 100% spec compliant, incremental javascript parser written in Typescript
Stars: ✭ 217 (-92.98%)
Mutual labels:  parser, parsing
Parjs
JavaScript parser-combinator library
Stars: ✭ 145 (-95.31%)
Mutual labels:  parser, parsing
parson
Yet another PEG parser combinator library and DSL
Stars: ✭ 52 (-98.32%)
Mutual labels:  parsing, parsing-library
extract-emails
Extract emails from a given website
Stars: ✭ 58 (-98.12%)
Mutual labels:  parsing, parsing-library
FAParser
JSON Parsing + Archiving & Unarchiving in User Defaults
Stars: ✭ 67 (-97.83%)
Mutual labels:  parsing, parsing-library
Cppsharp
Tools and libraries to glue C/C++ APIs to high-level languages
Stars: ✭ 2,221 (-28.1%)
Mutual labels:  parser, parsing
Command Line Api
Command line parsing, invocation, and rendering of terminal output.
Stars: ✭ 2,418 (-21.72%)
Mutual labels:  parser, parsing
Lark
Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.
Stars: ✭ 2,916 (-5.6%)
Mutual labels:  parser, parsing-library
Rats
Movie Ratings Synchronization with Python
Stars: ✭ 156 (-94.95%)
Mutual labels:  parser, parsing
Goose Parser
Universal scrapping tool, which allows you to extract data using multiple environments
Stars: ✭ 211 (-93.17%)
Mutual labels:  parser, parsing
Whois Parser
Go(Golang) module for domain whois information parsing.
Stars: ✭ 123 (-96.02%)
Mutual labels:  parser, parsing
Dan Jurafsky Chris Manning Nlp
My solution to the Natural Language Processing course made by Dan Jurafsky, Chris Manning in Winter 2012.
Stars: ✭ 124 (-95.99%)
Mutual labels:  parser, parsing
DotGrok
Parse text with pattern. Inspired by grok filter.
Stars: ✭ 26 (-99.16%)
Mutual labels:  parsing, parsing-library
pe
Fastest general-purpose parsing library for Python with a familiar API
Stars: ✭ 21 (-99.32%)
Mutual labels:  parsing, parsing-library

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.

@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}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].