gwenn / lemon-rs

LALR(1) parser generator for Rust based on Lemon + SQL parser
The Unlicense
48 stars 11 forks source link
lalr parser-generator rust sql-parser

Build Status Latest Version Docs dependency status

LEMON parser generator modified to generate Rust code.

Lemon source and SQLite3 grammar were last synced as of July 2024.

Unsupported

Unsupported Grammar syntax

https://www.codeproject.com/Articles/1056460/Generating-a-High-Speed-Parser-Part-Lemon https://www.sqlite.org/lemon.html

SQLite

SQLite lexer and SQLite parser have been ported from C to Rust. The parser generates an AST.

Lexer/Parser:

Lexer and parser have been tested with the following scripts:

TODO:

Unsupported by Rust

API change

Features not tested

To be fixed

Raison d'être

Minimum supported Rust version (MSRV)

Latest stable Rust version at the time of release. It might compile with older versions.