-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initialize the project #1
Merged
Merged
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This initializes the Haskell part of the project. In particular, the following is added:
eo-phi-normalizer
Haskell packagegrammar/EO/Phi/Syntax.cf
contains the EBNF for 𝜑-calculus, based on Phi.g4 grammar. Currently it contains some shift/reduce and reduce/reduce conflicts that need to be resolved (or we could use GLR mode for Happy, but I think we can have a more efficient grammar instead).Language.EO.Phi.Syntax.*
modules are generated by BNFC (but for now included in the repository) and contain abstract syntax definitions, lexer, parser, and pretty-printer.Language.EO.Phi
provides the default entry point (defaultMain
), and a dummy implementation of the normalizer (normalize
), as well as some other utilitiestest/Language/EO/PhiSpec.hs
contains a small test for the normalizer (which currently fails because normalizer is not yet implemented).app/Main.hs
is the entry point for the executable (just usesdefaultMain
)package.yaml
is a Haskell package file, describing package contents, dependencies, et.eo-phi-normalizer.cabal
— is Cabal package file, and it is generated by Stack (which useshpack
for this) frompackage.yaml
Setup.hs
contains customization for the build process. Specifically, we use it to automatically call BNFC to generateLanguage.EO.Phi.Syntax.*
modules from the grammar file.stack.yaml
specifies a snapshot of all Haskell packages that may be used in dependencies of Haskell packages in this project (we have only one package now)hie.yaml
specifies settings for the Haskell Language ServerPR-Codex overview
This PR focuses on adding a normalizer for 𝜑-calculus expressions.
Detailed summary
eo-phi-normalizer
projectnormalize-phi
executable