Project

General

Profile

Download (422 Bytes) Statistics
| Branch: | Tag: | Revision:
1
open Basetypes
2
open Datatype
3
open Parser_json
4
open Sys
5

    
6
module ParseExt =
7
struct
8
  let parse_condition _ = Condition.tru
9
  let parse_action    _ = Action.nil
10
  let parse_event json  = Some Yojson.Basic.(json |> to_string)
11
end
12

    
13
module Parse = Parser (ParseExt)
14

    
15
let main ()  =
16
  begin
17
    let json = Yojson.Basic.from_file Sys.argv.(1) in
18
    SF.pp_prog Format.std_formatter (Parse.parse_prog json);
19
  end
20

    
21
let _ = main ()
(3-3/4)