Golemon
Port of the lemon parser generator to the Go programming language
Install / Use
/learn @nsf/GolemonREADME
From the golang-nuts mailing list (with few modifications):
--== intro ==--
Hi. I just want to announce a simple port of the lemon parser generator to the Go programming language.
Shortly: Lemon is a LALR(1) parser generator, similar to yacc, but is much simpler. Also it has few neat features, like:
- It is thread-safe and re-entrant
- Tokenizer calls the parser, instead of parser calls tokenizer (the opposite of yacc/bison)
- Uses no global variables, allows to run multiple parsers simultaneously
- Auto-generation of token symbol constants (yacc/bison requires a list)
- No need to count grammar symbols, they can be named (nice names instead of $1 $2 $3)
- etc..
The Lemon is developed as a part of the sqlite project. The generator code is quite horrible, but it works and I believe it is very solid. Of course it has few drawbacks, but.. :)
Lemon homepage: http://www.hwaci.com/sw/lemon
--== golemon specific info ==--
I don't know whether I will support the golemon or not, but at least if someone likes lemon (like me), he/she has a decent (I hope so) base for his/her experiments now.
I've successfully compiled and executed the very beginning of this tutorial: http://freshmeat.net/articles/lemon-parser-generator-tutorial
See also 'examples' directory.
Hopefully, I will have enough enthusiasm to fix some of the obvious issues (see TODO).
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
