devel/happy-lib 2.2 NetBSD
Library for the happy parser generator for Haskell
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- 2-clause-bsd
- Categories
- devel
- Package size
- 1344.2 KiB, 18953.5 KiB installed
Description
Happy is a parser generator for Haskell. Given a grammar specification in BNF, Happy generates Haskell code to parse the grammar. Happy works in a similar way to the yacc tool for C.
This library provides the following functionality:
* Data type definitions for the Grammar AST type, capturing the information in .y-files * A parser for happy grammar files (.y) to produce a Grammar * Implementations of the text book algorithms that compute the LR action and goto tables for the given Grammar * An LALR code generator to produce table-driven, deterministic parsing code in Haskell * A (less maintained) GLR code generator to produce table-driven, non-deterministic parsing code in Haskell, where ambiguous parses produce multiple parse trees
Install
Binary package:
pkgin install happy-lib
From pkgsrc:
cd /usr/pkgsrc/devel/happy-lib && 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 | 2.2 |
| NetBSD 10.1 aarch64 | 2.2 |
| SmartOS / illumos x86_64 | 2.2 |
| macOS 15 arm64 | 2.2 |