This commit is contained in:
dsac
2022-12-07 22:08:38 +01:00
parent 839f7b77af
commit 232624abac
2 changed files with 1 additions and 1 deletions

12
src/main.ml Normal file
View File

@@ -0,0 +1,12 @@
open Ast
let _ =
try
let oi = open_in "test.node" in
let lexbuf = Lexing.from_channel oi in
let result = Parser.main Lexer.token lexbuf in
Format.printf "%a" Pp.pp_prog result;
close_in oi
with Lexer.Lexing_error s ->
Format.printf "Code d'erreur:\n\t%s\n\n" s