first release
This commit is contained in:
commit
3393f1ecfe
16 changed files with 615 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))
|
16
bin/main.ml
Normal file
16
bin/main.ml
Normal file
|
@ -0,0 +1,16 @@
|
|||
open Meat
|
||||
|
||||
let () =
|
||||
print_int (Array.length Sys.argv);
|
||||
if Array.length Sys.argv >= 2 then (
|
||||
print_endline " args. contents:";
|
||||
Array.iter print_endline Sys.argv;
|
||||
match String.lowercase_ascii (Array.get Sys.argv 1) with
|
||||
| "yum" -> yum ()
|
||||
| "cook" -> cook ()
|
||||
| "poke" -> poke ()
|
||||
| "gut" -> gut ()
|
||||
| "look" -> look ()
|
||||
| "fresh" -> fresh ()
|
||||
| _ -> help ()
|
||||
) else help ();
|
Loading…
Add table
Add a link
Reference in a new issue