devel/lemon 1.0.3.53.4 NetBSD
Simple LALR(1) parser generator
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Last update
- Commit
f041ebb2a2- License
- public-domain
- Categories
- devel
- Package size
- 57.5 KiB, 166.2 KiB installed
Description
The Lemon program is an LALR(1) parser generator. It takes a context free grammar and converts it into a subroutine that will parse a file using that grammar.
Lemon is similar to the much more famous programs "YACC" and "BISON". But lemon is not compatible with either yacc or bison.
There are several important differences: * Lemon using a different grammar syntax which is less prone to programming errors. * The parser generated by Lemon is both re-entrant and thread-safe. * Lemon includes the concept of a non-terminal destructor, which makes it much easier to write a parser that does not leak memory.
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | devel/lemon | 1.0.3.53.4 |
| FreeBSD | devel/lemon | 3.34 |
| DragonFly | devel/lemon | 3.34 |
| MidnightBSD | devel/lemon | 3.34 |
| HardenedBSD | devel/lemon | 3.34 |
| GhostBSD | devel/lemon | 3.34 |
Install
Binary package:
pkgin install lemon
From pkgsrc:
cd /usr/pkgsrc/devel/lemon && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 1.0.3.53.4 |
| NetBSD 10.1 aarch64 | 1.0.3.53.2 |
| SmartOS / illumos x86_64 | 1.0.3.54.1 |
| macOS 15 arm64 | 1.0.3.54.0 |