-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Hazel Menhir Parser | ||
> This directory contains a Menhir parser for textual Hazel `Exp` syntax and a utility to convert the Menhir AST to post-elaboration `Exp`. This is used for Hazel elaborator unit tests | ||
* The Menhir parser is located in the `Parser.mly` file | ||
* The ocamllex lexer can be found in `Lexer.mll` | ||
* `Interface.re` contains functions to interface with the parser and parse text into an `AST` structure | ||
* The parser's AST is defined in `AST.re` | ||
* `Conversion.re` contains utility functions to convert the `AST` structure into the Hazel post-elaboration `Exp` structure | ||
* Examples of the textual syntax can be found in the `Exp` module of the `TermBase.re` file |