[parser] ajout de fby (proposition alternative) + type checker (sera factorisé)

This commit is contained in:
Arnaud DABY-SEESARAM
2022-12-09 23:18:13 +01:00
parent a29666f673
commit 347cb3a11d
5 changed files with 189 additions and 35 deletions

View File

@@ -1,2 +1,4 @@
let rec list_repeat n elt =
if n = 0 then [] else elt :: (list_repeat (n-1) elt)
exception MyParsingError of (string * Ast.location)