Coder Social home page Coder Social logo

late's Introduction

Status of this project

This was a weekend project I decided to do to learn a new parsing algorithm. I will probably contine to work on the project in some freetime and I hope to eventually finish the parser generator aspect of the project.

That being said, development on the project will probably be fairly slow.

Late

Late is a parser generator based around the Earley parsing algorithm.

Late attempts to make writing grammars easy by not having to use a lexer ahead of time. Instead when it finds a terminal symbol it greedily consumes the input stream if it matches the terminal. Additionally a terminal can be supplied as a regex for increased ease of use.

Currently it can run on either boost or stl regex's. Latest tests (after a variety of bug-fixes) show that both perform roughly equivalently performance wise.

Perfomance

This parser is slow. It runs a O(N^3) algorithm and I haven't fully optimized it. My basic grammar (which parses grammars for the parser generator) can parse a 15KB file in about 6 seconds, including constructing the AST.

This was mostly meant for me to learn a parsing algorithm and have fun implementing it.

That said if you see ways to improve its speed please let me know. I would love to make it faster.

late's People

Contributors

robojeb avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

shifu-engineer

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.