yapb: Yet Another Parser Builder (YAPB)

[ bsd3, library, parser-builder, program ] [ Propose Tags ]

A programmable LALR(1) parser builder system. Please see the README on GitHub at https://github.com/kwanghoon/yapb#readme


[Skip to Readme]

Modules

  • AVL
  • Attrs
  • AutomatonType
  • CFG
  • CmdArgs
  • CodeGenC
  • CommonParserUtil
  • Config
  • EmacsServer
  • GenLRParserTable
  • LoadAutomaton
  • MaxRhsLen
  • ParserTable
  • ParserTime
  • ReadGrammar
  • SampleGrammar
  • SaveProdRules
  • SynCompAlgoBU
  • SynCompAlgoBUTree
  • SynCompAlgoBUTreeNested
  • SynCompAlgoPEPM
  • SynCompAlgoTD
  • SynCompAlgoUtil
  • SynCompAlgorithm
  • SynCompInterface
  • Terminal
  • TokenInterface

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0, 0.1.1, 0.1.3, 0.1.3.1, 0.1.3.2, 0.2, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6
Change log ChangeLog.md
Dependencies base (>=4.7 && <5), bytestring (>=0.10.8 && <0.11), deepseq (>=1.4.4.0), directory (>=1.3.3 && <1.4), hashable (>=1.3.0 && <1.4), hspec, mtl, network (>=3.1.1 && <3.2), process (>=1.6.5 && <1.7), regex-tdfa (>=1.3.1 && <1.4), timeit (>=2.0), transformers, yapb [details]
License BSD-3-Clause
Copyright 2020-2021 Kwanghoon Choi
Author Kwanghoon Choi
Maintainer lazyswamp@gmail.com
Category parser builder
Home page https://github.com/kwanghoon/yapb#readme
Bug tracker https://github.com/kwanghoon/yapb/issues
Source repo head: git clone https://github.com/kwanghoon/yapb
Uploaded by lazyswamp at 2022-04-17T01:55:25Z
Distributions NixOS:0.2.6
Executables yapb-exe, syncomp-exe, parser-exe, error-exe, conv-exe, ambiguous-exe
Downloads 531 total (18 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2022-04-17 [all 1 reports]

Readme for yapb-0.2.6

[back to package description]

YAPB: Yet Another Parser Builder

A programmable parser builder system

  • Allows to write LALR(1) parser specifications in Haskell
  • Provides an automatic syntax completion method

Library, tools, and examples

  • yapb: a library for a programmable parser builder system
  • yapb-exe: a wrapper interface to YAPB
  • conv-exe: a grammar format utility for conversion of a readable grammar (.lgrm) format into the Haskell data format (.grm)
  • Examples:
    • parser-exe: an arithmetic parser
    • ambiguous-exe: an arithmetic parser with the ambiguous grammar but backed by precedence attributes
    • error-exe: a demo for error recovery by an interplay between a lexer and a parser through a monadic interface
    • syncomp-exe: a syntax completion server for Emacs

Applications using YAPB:

Download, build, and test

  $ git clone https://github.com/kwanghoon/yapb
  $ cd yapb
  $ stack build
  $ stack test

Tutorial

Reference