Commit Graph

52 Commits (main)

Author SHA1 Message Date
Ethan Reece 6953e77467 Merge pull request 'feature/comparisons' (#29) from feature/comparisons into main
Reviewed-on: https://git.sudoer.ch/me/really-bad-compiler-in-haskell/pulls/29
2023-10-23 17:31:28 +00:00
Ethan Reece 1fbacda21b
Fix boolean parenthesis bug 2023-10-23 12:28:38 -05:00
Ethan Reece b1d2f65992
Add boolean logic operators 2023-10-23 12:20:37 -05:00
Ethan Reece 20c20b58b7
Fix EQ and NE not parsing 2023-10-14 21:23:37 -05:00
Ethan Reece f436c6bc71
Fix GTE and LTE not parsing 2023-10-14 20:54:59 -05:00
Ethan Reece a75b0df9bc
Add greater than and less than for integers 2023-10-14 20:45:48 -05:00
Ethan Reece 6e2031f715
Parse int comparisons as boolean expression 2023-10-14 18:01:01 -05:00
Ethan Reece d64ad9aeda
Parse printInt instead of print 2023-10-08 00:23:13 -05:00
Ethan Reece a7547dd670
Parse expressions into different types 2023-10-07 22:46:37 -05:00
Ethan Reece 2f790d6e55 Merge pull request 'feature/print-statement' (#25) from feature/print-statement into main
Reviewed-on: https://git.sudoer.ch/me/really-bad-compiler-in-haskell/pulls/25
2023-10-07 05:51:48 +00:00
Ethan Reece e145e91074
Allow multiple print statements 2023-10-07 00:50:33 -05:00
Ethan Reece bdbe823bc3
Add command line argument parsing 2023-10-06 23:55:57 -05:00
Ethan Reece b52fe34667
Move Expr to Type.hs 2023-10-06 23:32:00 -05:00
Ethan Reece f7e64faed5
Add print functionality 2023-10-06 23:21:55 -05:00
Ethan Reece 5325a845f2
Fix haskell language server broken 2023-10-06 00:29:36 -05:00
Ethan Reece 7e9d8b434a
Update README 2023-10-02 11:41:21 -05:00
Ethan Reece 7f9e3c3509
Add parenthesis 2023-09-30 05:12:32 -05:00
Ethan Reece e162d55439
Parse "print" statement 2023-09-30 05:04:39 -05:00
Ethan Reece d40467bc00
Parse negative numbers 2023-09-30 04:35:59 -05:00
Ethan Reece d14c5ace00
Reorganize Parser method 2023-09-30 04:07:45 -05:00
Ethan Reece 01ff098530
Update Readme 2023-09-30 03:57:03 -05:00
Ethan Reece e7083c1c40
Change Parser from string to text 2023-09-29 22:59:25 -05:00
Ethan Reece 7f588ec561
Reorganize program 2023-09-29 18:31:30 -05:00
Ethan Reece 5f1b5ce65c Merge pull request 'Compile program to LLVM' (#21) from feature-llvm into main
Reviewed-on: https://git.sudoer.ch/me/really-bad-compiler-in-haskell/pulls/21
2023-09-29 10:41:05 +00:00
Ethan Reece b89be8de8c
Add division 2023-09-29 05:31:33 -05:00
Ethan Reece 08e684206e
Update README.md 2023-09-29 05:21:50 -05:00
Ethan Reece 0b915f5788
Remove llvm-hs-pretty since it was generating broken code 2023-09-29 05:19:11 -05:00
Ethan Reece a9549210a7
Compile to binary executable file 2023-09-29 05:17:12 -05:00
Ethan Reece c296d15f85
Write llvm to file 2023-09-29 02:29:05 -05:00
Ethan Reece 5fc26a7acd
Reorganize program, removing unnecessary code 2023-09-29 02:02:34 -05:00
Ethan Reece 30df05afa9
Generate LLVM code and print to console 2023-09-28 23:42:59 -05:00
Ethan Reece 9f9642347b
Start new LLVM generator using IRBuilder 2023-09-23 23:15:11 -05:00
Ethan Reece d42de52f78
Generate LLVM program that returns 0 when run 2023-09-22 23:59:31 -05:00
Ethan Reece c0e77d22cf
Print generated llvm 2023-09-22 16:38:17 -05:00
Ethan Reece 37dcd45432
Copy and paste llvm-hs-examples/basic on GitHub to LLVMGen/Expression.hs and configure stack to compile it correctly 2023-09-17 23:18:55 -05:00
Ethan Reece 187f0577f5
Revert to LLVM 15 and remove llvm-hs-pretty for lack of support 2023-09-15 02:37:47 -05:00
Ethan Reece 51d2a951e6
Attempt to install llvm using nix 2023-09-15 01:57:17 -05:00
Ethan Reece dbf8b9b522
Downgrade llvm from 15 to 12 and ghc from 9.2 to 8.10 for better support 2023-09-15 01:03:45 -05:00
Ethan Reece 0a376070cb
Add LLVM library 2023-09-15 00:51:44 -05:00
Ethan Reece 71f726fce6
Switch package data from cabal to stack 2023-09-14 23:06:40 -05:00
Ethan Reece ae191c71dd
Update README.md 2023-09-11 12:05:44 -05:00
Ethan Reece 17a683e27d
Add example programs 2023-09-11 12:04:36 -05:00
Ethan Reece 3388e3f97e
Read expressions from file 2023-09-08 01:31:07 -05:00
Ethan Reece af50529dc1
Add solving expressions 2023-09-08 00:53:11 -05:00
Ethan Reece 7f28dc939f
Move parser to separate file 2023-09-07 23:13:47 -05:00
Ethan Reece a58bb2bab0
Make minor improvements to parser 2023-09-07 23:04:01 -05:00
Ethan Reece ff7fe0a1d3
Create very basic equation parser 2023-09-07 22:57:12 -05:00
Ethan Reece 5655c91ea7
Add megaparsec 2023-09-07 17:59:56 -05:00
Ethan Reece 0062f14109
Cabal init 2023-09-07 17:24:45 -05:00
Ethan Reece cda1c0664c
Remove RTX 2023-09-07 17:15:02 -05:00