Submission for BirmingHack 1.0 (won Best Overall Hack & "Surprise Us")
- GLSL 76.3%
- Haskell 23.5%
- Nix 0.2%
| buildings | ||
| Docs | ||
| .gitignore | ||
| Ast.hs | ||
| empty-floor.fp | ||
| fourmolu.yaml | ||
| Interpreter.hs | ||
| logo.fp | ||
| Main.hs | ||
| Parse.hs | ||
| README.md | ||
| shell.nix | ||
| useful-characters.txt | ||
FLOORPLAN
Read the paper! (link)
What's everyone's biggest problem with floor plans? Once you build the room, they're basically useless. Here we present an interpreter to give these building foundations a much needed second lease of life --- as programs.
Check out our examples. You can run factorial n:
Warning
Requires GHC version 9.4.8 to compile!
Build:
ghc --make Main
Check HELLO WORLD:
./Main hello-floorplan
Factorial 5:
./Main factorial-building 5
120
Add two numbers:
./Main adder-building 5 3
8