RepositoryRustFRPháp
gwenn

gwenn/lemon-rs

LALR(1) parser generator for Rust based on Lemon + SQL parser

66sao
18fork
17issue
0lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: sql-parser

#1 Repository Của Tuần

2
TINIX TRENDING·Chủ đề: lalr

#2 Repository Của Tuần

2
TINIX TRENDING·Chủ đề: parser-generator

#2 Repository Của Tuần

🍋 lemon-rs: Sinh parser LALR(1) cho Rust, cánh tay đai của SQLite

Bộ sinh parser LALR(1) dựa trên Lemon, được điều chỉnh để sinh mã Rust. Kèm theo là parser SQL được cổng trực tiếp từ SQLite3.

lemon-rs là một dự án sinh parser LALR(1) cho Rust, được phát triển dựa trên nền tảng của LEMON parser generator từ dự án SQLite. Ngoài ra, dự án còn bao gồm một phiên bản parser SQL được cổng từ C sang Rust, dựa trên cú pháp grammar của SQLite3.

✨ Điểm nổi bật

  • Sinh mã parser LALR(1): Dựa trên LEMON, tối ưu cho hiệu năng.
  • Parser SQL từ SQLite3: Được cổng hoàn toàn từ mã nguồn C của SQLite sang Rust.
  • Theo dõi vị trí token: Lexer/parser ghi nhận dòng và cột của từng token.
  • Streamable & Resumable: Parser ngừng ở cuối mỗi câu lệnh và có thể tiếp tục.
  • Tạo AST: Parser SQL sinh ra cây cú pháp trừu tượng (AST).
  • Đã được kiểm thử: Được kiểm tra với bộ test từ sqlite-parser và official-suite của SQLite.

💡 Vì sao đáng chú ý

lemon-rs khác biệt so với các dự án tương tự như lalrpop hay lemon_rust ở chỗ hỗ trợ cú pháp streaming và fallback — hai tính năng mà lalrpop chưa hỗ trợ. Ngoài ra, phiên bản lemon trong dự án này được đồng bộ cập nhật tới tháng 4 năm 2026, đảm bảo tính tương thích và hiệu suất cao.

Dự án phù hợp với các ứng dụng cần xử lý SQL nhẹ, hoặc như một nền tảng để xây dựng parser tùy chỉnh trong Rust.


#ParserGenerator #LALR #Rust #SQLParser #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryRust
farion1231/cc-switch

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

148.9k
Oct 26, 2026
RepositoryPHP
zephir-lang/php-zephir-parser

The Zephir Parser delivered as a C extension for the PHP language.

193
Oct 12, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
190.2M
Jun 1, 2026
RepositoryRust
rust-lang/rust

Empowering everyone to build reliable and efficient software.

120.8k
Oct 25, 2026
RepositoryMarkdown
DigitalPlatDev/FreeDomain

Free domain registration and practical DNS learning resources for everyone.

205.9k
Aug 12, 2026
RepositoryPython
yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader

202.5k
Oct 23, 2026
Repository
getify/You-Dont-Know-JS

A book series (2 published editions) on the JS language.

184.8k
Feb 15, 2026
RepositoryPython
521xueweihan/HelloGitHub

:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.

184.7k
Sep 28, 2026
RepositoryRust
rustdesk/rustdesk

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

127.1k
Oct 26, 2026