SableCC2Hs: Generate a parser (in Haskell) with the SableCC parser generator.

[ bsd3, library, parsing, program ] [ Propose Tags ] [ Report a vulnerability ]

This package allows one to use parsers that were written for the SableCC parser generator from Haskell and Prolog. More specifically it reads an XML file that is generated by SableCC (version sablecc-3-beta.3.altgen.20041114.zip) and generates Haskell and Prolog modules which contain the parser tables. The package is used in the build-process of the the ProB Animator (http:/www.stups.uni-duesseldorf.deProB) to build parsers for the B specification language and it is primarily interesting for ProB developers. Nevertheless, there are several SableCC grammars available on the Internet (http:/sablecc.orgwiki/GrammarPage) and in case someone ever has to use one of those grammars with Haskell (for whatever reason), then this package might be useful. As this package is still under development, it does not contain the actual parser-engines that execute the generated parser-tables. For an example of a runnable B-Parser, based on this tool, look at the ProB source-code (Prolog) or the B-Frontend package (Haskell). Any questions of feedback well-come.

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.0.1, 0.0.0.2, 0.0.1.0
Dependencies array (>0.4 && <0.5), base (>=4.0 && <5.0), containers (>=0.4 && <0.5), filepath (>=1.3 && <1.4), loch-th (>=0.1 && <0.2), pretty (>=1.1 && <1.2), text (>=0.11 && <0.12), transformers (>0.3 && <0.4), wl-pprint-text (>=1.0 && <1.1), xml (>=1.3 && <1.4) [details]
Tested with ghc ==7.4.1
License BSD-3-Clause
Author Marc Fontaine
Maintainer Marc Fontaine <Marc.Fontaine@gmx.de>
Category Parsing
Uploaded by MarcFontaine at 2012-06-13T13:27:26Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Executables sable2hs
Downloads 2890 total (12 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]