Add command line parser

This commit is contained in:
2024-09-05 23:18:48 +02:00
parent be73032b93
commit 042e4e8714
5 changed files with 446 additions and 98 deletions

View File

@@ -19,6 +19,7 @@ common warnings
base >=4.7 && <5,
bytestring ^>= 0.12.1,
megaparsec ^>= 9.6,
optparse-applicative ^>= 0.18.1,
vector ^>= 0.13.1,
text ^>= 2.0
ghc-options: -Wall
@@ -34,7 +35,9 @@ common warnings
library elna-internal
import: warnings
exposed-modules:
Language.Elna.Architecture.RiscV
Language.Elna.AST
Language.Elna.CommandLine
Language.Elna.CodeGenerator
Language.Elna.Intermediate
Language.Elna.Location
@@ -56,7 +59,8 @@ executable elna
import: warnings
main-is: Main.hs
build-depends:
elna:elna-internal
elna:elna-internal,
filepath ^>= 1.5.3
hs-source-dirs: src
test-suite elna-test