Parser and type checker almost completely working

Added testing env
This commit is contained in:
macocianradu
2021-11-11 17:25:30 +01:00
parent 464ef29caa
commit 3890ed5f03
32 changed files with 287 additions and 356 deletions

View File

@@ -6,12 +6,12 @@ cabal-version: 1.12
name: RosettaParser
version: 0.1.0.0
description: Please see the README on GitHub at <https://github.com/githubuser/RosettaParser#readme>
homepage: https://github.com/githubuser/RosettaParser#readme
bug-reports: https://github.com/githubuser/RosettaParser/issues
author: Author name here
maintainer: example@example.com
copyright: 2021 Author name here
description: Please see the README on GitHub at <https://github.com/macocianradu/RosettaParser#readme>
homepage: https://github.com/macocianradu/RosettaParser#readme
bug-reports: https://github.com/macocianradu/RosettaParser/issues
author: Adrian Radu Macocian
maintainer: rmacocian@gmail.com
copyright: 2021 Adrian Radu Macocian
license: BSD3
license-file: LICENSE
build-type: Simple
@@ -21,7 +21,7 @@ extra-source-files:
source-repository head
type: git
location: https://github.com/githubuser/RosettaParser
location: https://github.com/macocianradu/RosettaParser
library
exposed-modules:
@@ -37,6 +37,7 @@ library
PrettyPrinter.Function
PrettyPrinter.General
PrettyPrinter.Type
Semantic.ExpressionChecker
Semantic.TypeChecker
other-modules:
Paths_RosettaParser
@@ -54,8 +55,6 @@ library
executable RosettaParser-exe
main-is: Main.hs
other-modules:
Paths_RosettaParser
hs-source-dirs:
app
ghc-options: -threaded -rtsopts -with-rtsopts=-N
@@ -74,6 +73,9 @@ test-suite RosettaParser-test
type: exitcode-stdio-1.0
main-is: Spec.hs
other-modules:
Parser.EnumSpec
Parser.ExpressionSpec
Parser.TypeSpec
Paths_RosettaParser
hs-source-dirs:
test
@@ -81,6 +83,8 @@ test-suite RosettaParser-test
build-depends:
RosettaParser
, base >=4.7 && <5
, hspec
, hspec-megaparsec
, megaparsec
, mtl
, parser-combinators