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


Keywords
library, parser-builder, program, Propose Tags , https://github.com/kwanghoon/yapb#readme, Skip to Readme, , yapb-0.2.7.tar.gz, browse, Package description, package maintainers, edit package information , https://github.com/kwanghoon/sbparser, https://github.com/kwanghoon/polyrpc, https://github.com/kwanghoon/c11parser, https://github.com/kwanghoon/Lecture_EOPL_Exercise, For parser: Parser generators sharing LR automaton generators and accepting general purpose programming language-based specifications, For syntax complection with YAPB-0.1.2: A text-based syntax completion method using LR parsing (PEPM 2021), References
License
BSD-3-Clause
Install
cabal install yapb-0.2.7

Documentation

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