From 0647f37eebbefb8446fc8abfc533a23952fbb8be Mon Sep 17 00:00:00 2001 From: pacien Date: Sun, 29 Apr 2018 20:24:38 +0200 Subject: Move sources to dedicated directory --- src/parser.mli | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/parser.mli (limited to 'src/parser.mli') 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 @@ +(* + * UPEM / L3 / Functional programming / Project: URM + * Pacien TRAN-GIRARD, Adam NAILI + *) + +open Common + +(* Reads a file into a string. *) +val string_of_file : in_channel -> string + +(* Converts lexemes into instructions. *) +val program_of_lex : string list -> urmcmd list + +(* Converts lexemes into registers. *) +val regs_of_lex : string list -> reg list + +(* Parses the string representation of a program. *) +val program_of_string : string -> urmcmd list + +(* Parses the string representation of serialized registers. *) +val regs_of_string : string -> reg list + -- cgit v1.2.3