Giter Club home page Giter Club logo

autumn_archive's Introduction

The Autumn Parsing Library

Legacy Versions

The initial version of Autumn is an extensible parser-combinator library built upon the PEG formalism. It was the first general PEG parsing library to support left recursion with both left- and right-associative interpretations. It also includes support for precedence and associativity.

It was the object of a paper (Parsing Expression Grammars Made Practical) at the SLE (Software Language Engineering) in 2015.

v2 is a considerably simplified rewrite of v1 in the Kotlin programming language.

It was the object of a paper (Taming Context-Sensitive Languages with Principled Stateful Parsing) at the SLE (Software Language Engineering) in 2016.

v3 is a rewrite of v2, still in Kotlin. It was part of the Whimsy compiler framework project, whose other component (a reactive middle-end compiler library) never fuly materialized.

v3 features two significant changes: first the context-sensitive parsing mechanism now uses a log of undoable changes instead of relying on state snapshots. Second, the framework uses Kotlin's inline keyword pervasively in order to avoid megamorphic call sites overheads, and enable additional optimization. This works well in practice, and performance are greatly improved.

Current Version

The current (and hopefully final major revision) of Autumn.

This version underpins my 2019 PhD thesis.

This is a full rewrite in Java. It keeps v3's way of handling the context, but reverts back to using a graph of parser objects to represent a grammar โ€” the reason being that these graphs can be traversed by walkers and visitors to achieve all kind of things.

It adds many many useful features, and performance are on par with v3 despite the lack of inlining. The best Autumn has to offer!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.