Grammars

Open-source projects categorized as Grammars

Top 9 Grammar Open-Source Projects

  • ohm

    A library and language for building parsers, interpreters, compilers, etc.

  • Project mention: Ohm: A library and language for building parsers, interpreters, compilers, etc. | news.ycombinator.com | 2023-10-31

    Building an interpreter or a compiler from a grammar is an interesting idea. I can't immediately see how to go about it - the grammar would need to match on SSA or similar.

    The examples have a lisp-like interpreter at https://github.com/ohmjs/ohm/blob/main/examples/simple-lisp/... which definitely uses a grammar for parsing and might use a generic AST representation.

    Will have to think more - a grammar might be a worthwhile way to specify a nanopass style compiler pipeline.

  • Chevrotain

    Parser Building Toolkit for JavaScript

  • Project mention: Ohm: A library and language for building parsers, interpreters, compilers, etc. | news.ycombinator.com | 2023-10-31

    How does this compare with Chevrotain[1]?

    More specifically, can I build lexers with Ohm? Can it generate a syntax diagram from a grammar?

    [1]: https://github.com/chevrotain/chevrotain

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • kaldi-active-grammar

    Python Kaldi speech recognition with grammars that can be set active/inactive dynamically at decode-time

  • Project mention: Ask HN: How do you get started with adding voice commands to a computer system? | news.ycombinator.com | 2023-11-21

    https://github.com/dictation-toolbox/dragonfly

    https://github.com/daanzu/kaldi-active-grammar

  • Caster

    Dragonfly-Based Voice Programming and Accessibility Toolkit

  • noam

    JavaScript library for working with automata and grammars for regular and context-free languages

  • autumn

    A Java parser combinator library written with an unmatched feature set.

  • Lexepars

    Concise monadic parser combinator library with separate lexer/parser phases, off-side rule and big-size input support.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • panini

    A general-purpose parser framework in Rust.

  • Recognition-of-logical-document-structures

    First approach for recognizing logical document structures like texts, sentences, segments, words, chars and sentence/segment depth based on recurrent neural network grammars.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Grammars related posts

Index

What are some of the best open-source Grammar projects? This list will help you:

Project Stars
1 ohm 4,877
2 Chevrotain 2,397
3 kaldi-active-grammar 329
4 Caster 328
5 noam 200
6 autumn 119
7 Lexepars 7
8 panini 6
9 Recognition-of-logical-document-structures 5

Sponsored
The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com