aboutsummaryrefslogtreecommitdiff
path: root/parser.mli
diff options
context:
space:
mode:
authorpacien2018-04-20 23:32:38 +0200
committerpacien2018-04-20 23:32:38 +0200
commit3f25710a891dfcd17f597c16dfedf5499bc1bbd6 (patch)
tree71bec80335de3820994d26c68bb4cc8ca961789a /parser.mli
parent2e6e365262b7dc072d7ac35ff867f309e3ff784c (diff)
downloadurm-3f25710a891dfcd17f597c16dfedf5499bc1bbd6.tar.gz
Modularize everything
Diffstat (limited to 'parser.mli')
-rw-r--r--parser.mli15
1 files changed, 15 insertions, 0 deletions
diff --git a/parser.mli b/parser.mli
new file mode 100644
index 0000000..d210396
--- /dev/null
+++ b/parser.mli
@@ -0,0 +1,15 @@
1(*
2 * UPEM / L3 / Functional programming / Project: URM
3 * Pacien TRAN-GIRARD, Adam NAILI
4 *)
5
6open Common
7
8(* Reads a file into a string. *)
9val string_of_file : in_channel -> string
10
11(* Converts lexemes into instructions. *)
12val program_of_lex : string list -> urmcmd list
13
14(* Parses the string representation of a program. *)
15val program_of_string : string -> urmcmd list