diff options
author | pacien | 2018-04-29 20:24:38 +0200 |
---|---|---|
committer | pacien | 2018-04-29 20:24:38 +0200 |
commit | 0647f37eebbefb8446fc8abfc533a23952fbb8be (patch) | |
tree | fc9d69f32bd6c04de27c3795f6d54ed150bd4958 /src/parser.mli | |
parent | 80d7f0f204aacefa768d34f6db30108cb430cede (diff) | |
download | urm-0647f37eebbefb8446fc8abfc533a23952fbb8be.tar.gz |
Move sources to dedicated directory
Diffstat (limited to 'src/parser.mli')
-rw-r--r-- | src/parser.mli | 22 |
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 | |||
6 | open Common | ||
7 | |||
8 | (* Reads a file into a string. *) | ||
9 | val string_of_file : in_channel -> string | ||
10 | |||
11 | (* Converts lexemes into instructions. *) | ||
12 | val program_of_lex : string list -> urmcmd list | ||
13 | |||
14 | (* Converts lexemes into registers. *) | ||
15 | val regs_of_lex : string list -> reg list | ||
16 | |||
17 | (* Parses the string representation of a program. *) | ||
18 | val program_of_string : string -> urmcmd list | ||
19 | |||
20 | (* Parses the string representation of serialized registers. *) | ||
21 | val regs_of_string : string -> reg list | ||
22 | |||