ocaml
This commit is contained in:
commit
e598b04cae
31 changed files with 946 additions and 0 deletions
0
bin/.ocamlformat
Normal file
0
bin/.ocamlformat
Normal file
4
bin/dune
Normal file
4
bin/dune
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
(executable
|
||||
(public_name meat)
|
||||
(name main)
|
||||
(libraries meat))
|
||||
21
bin/main.ml
Normal file
21
bin/main.ml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
open Meat
|
||||
|
||||
let () =
|
||||
match Sys.getenv_opt "MEATS" with
|
||||
| Some _ ->
|
||||
if Array.length Sys.argv >= 2 then
|
||||
match String.lowercase_ascii (Array.get Sys.argv 1) with
|
||||
| "yum" -> yum ()
|
||||
| "cook" -> cook ()
|
||||
| "poke" -> poke ()
|
||||
| "gut" -> gut ()
|
||||
| "trade" -> trade ()
|
||||
| "look" -> look ()
|
||||
| "fresh" -> fresh ()
|
||||
| "hunt" -> hunt ()
|
||||
| "ritual" -> ritual ()
|
||||
| _ -> help ()
|
||||
else help ()
|
||||
| None ->
|
||||
meat_print "NO PATH TO RUNESTONE FOUND!";
|
||||
help ()
|
||||
Loading…
Add table
Add a link
Reference in a new issue