From a27cc602422cc9076ddc1d0e7db3f3cbf2bf193f Mon Sep 17 00:00:00 2001 From: pacien Date: Mon, 30 Apr 2018 20:50:28 +0200 Subject: Adjust parser --- src/parser.mli | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/parser.mli') diff --git a/src/parser.mli b/src/parser.mli index 21fc940..2cad383 100644 --- a/src/parser.mli +++ b/src/parser.mli @@ -8,14 +8,17 @@ 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 URM instructions. *) +val urm_program_of_lex : string list -> urmcmd list + +(* Converts lexemes into EURM instructions. *) +val eurm_program_of_lex : string list -> eurmcmd 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 +val program_of_string : (string list -> 'a list) -> string -> 'a list (* Parses the string representation of serialized registers. *) val regs_of_string : string -> reg list -- cgit v1.2.3