mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-30 18:48:18 +00:00
Standard infix capturing
This commit is contained in:
parent
25ec856fba
commit
a12f9337e9
7 changed files with 184 additions and 16 deletions
|
|
@ -110,7 +110,7 @@ class options args =
|
|||
end
|
||||
|
||||
let main =
|
||||
try
|
||||
(* try *)
|
||||
let cmd = new options Sys.argv in
|
||||
match (try parse cmd with Language.Semantic_error msg -> `Fail msg) with
|
||||
| `Ok prog ->
|
||||
|
|
@ -137,5 +137,5 @@ let main =
|
|||
List.iter (fun i -> Printf.printf "%d\n" i) output
|
||||
)
|
||||
| `Fail er -> Printf.eprintf "Error: %s\n" er
|
||||
with Language.Semantic_error msg -> Printf.printf "Error: %s\n" msg
|
||||
(*with Language.Semantic_error msg -> Printf.printf "Error: %s\n" msg *)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue