aboutsummaryrefslogtreecommitdiff
path: root/parser.mli
blob: d21039636bb60c33bf1ad9841fe955dedec4cd80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(*
 * 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

(* Parses the string representation of a program. *)
val program_of_string : string -> urmcmd list