aboutsummaryrefslogtreecommitdiff
path: root/src/parser.mli
diff options
context:
space:
mode:
authorpacien2018-04-29 20:24:38 +0200
committerpacien2018-04-29 20:24:38 +0200
commit0647f37eebbefb8446fc8abfc533a23952fbb8be (patch)
treefc9d69f32bd6c04de27c3795f6d54ed150bd4958 /src/parser.mli
parent80d7f0f204aacefa768d34f6db30108cb430cede (diff)
downloadurm-0647f37eebbefb8446fc8abfc533a23952fbb8be.tar.gz
Move sources to dedicated directory
Diffstat (limited to 'src/parser.mli')
-rw-r--r--src/parser.mli22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/parser.mli b/src/parser.mli
new file mode 100644
index 0000000..f7609f9
--- /dev/null
+++ b/src/parser.mli
@@ -0,0 +1,22 @@
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(* Converts lexemes into registers. *)
15val regs_of_lex : string list -> reg list
16
17(* Parses the string representation of a program. *)
18val program_of_string : string -> urmcmd list
19
20(* Parses the string representation of serialized registers. *)
21val regs_of_string : string -> reg list
22