diff --git a/README.md b/README.md index c415701..0aa8800 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,8 @@ Main repo: https://git.sudoer.ch/me/really-bad-compiler-in-haskell - learnyouahaskell.com (for learning Haskell basics) - https://akashagrawal.me/2017/01/19/beginners-guide-to-megaparsec.html - https://markkarpov.com/tutorial/megaparsec.html (for help writing a Haskell equation parser) +- https://www.forth.com/starting-forth/1-forth-stacks-dictionary/ (for learning Forth) +- https://blog.josephmorag.com/posts/mcc0/ (Haskell LLVM tutorial) ### Tools diff --git a/package.yaml b/package.yaml new file mode 100644 index 0000000..32ff1aa --- /dev/null +++ b/package.yaml @@ -0,0 +1,17 @@ +name: really-bad-compiler-in-haskell +version: 0 +author: sudoer777 +maintainer: git@sudoer.ch +dependencies: + - base + - megaparsec + - parser-combinators + - text +tested-with: GHC == 9.2.8 + +ghc-options: -threaded -Wall -j +RTS -A32M -RTS + +executables: + compiler: + source-dirs: app + main: Main.hs diff --git a/really-bad-compiler-in-haskell.cabal b/really-bad-compiler-in-haskell.cabal index 5433bd0..c00d58f 100644 --- a/really-bad-compiler-in-haskell.cabal +++ b/really-bad-compiler-in-haskell.cabal @@ -1,39 +1,30 @@ -cabal-version: 2.4 -name: really-bad-compiler-in-haskell -version: 0.1.0.0 +cabal-version: 1.12 --- A short (one-line) description of the package. --- synopsis: +-- This file has been generated from package.yaml by hpack version 0.35.1. +-- +-- see: https://github.com/sol/hpack --- A longer description of the package. --- description: +name: really-bad-compiler-in-haskell +version: 0 +author: sudoer777 +maintainer: git@sudoer.ch +build-type: Simple +tested-with: + GHC == 9.2.8 --- A URL where users can report bugs. --- bug-reports: - --- The license under which the package is released. --- license: -author: sudoer777 -maintainer: git@sudoer.ch - --- A copyright notice. --- copyright: --- category: -extra-source-files: - CHANGELOG.md - README.md - -executable really-bad-compiler-in-haskell - main-is: Main.hs - - -- Modules included in this executable, other than Main. - -- other-modules: - - -- LANGUAGE extensions used by modules in this package. - -- other-extensions: - build-depends: base ^>=4.16.4.0 - , megaparsec >= 9.2.2 - , parser-combinators - , text - hs-source-dirs: app - default-language: Haskell2010 +executable compiler + main-is: Main.hs + other-modules: + Eval.Expression + Objects.Expression + Parser.Expression + Paths_really_bad_compiler_in_haskell + hs-source-dirs: + app + ghc-options: -threaded -Wall -j +RTS -A32M -RTS + build-depends: + base + , megaparsec + , parser-combinators + , text + default-language: Haskell2010 diff --git a/stack.yaml b/stack.yaml index de4df28..4be007a 100644 --- a/stack.yaml +++ b/stack.yaml @@ -30,7 +30,7 @@ resolver: # - auto-update # - wai packages: -- . + - . # Dependency packages to be pulled from upstream that are not in the resolver. # These entries can reference officially published versions as well as # forks / in-progress versions pinned to a git hash. For example: