X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_notation%2Ftest_parser.ml;h=58880b9d5b781279600bda07825dbb2cb652742d;hb=ec54d490477ece51c19d79750dda9805ffda663c;hp=98716ad8663c75269cbca5ac5b7290a4c2d0a2a9;hpb=345d5606c989f46d9de3d3b4c6c53902fabac5bd;p=helm.git diff --git a/helm/ocaml/cic_notation/test_parser.ml b/helm/ocaml/cic_notation/test_parser.ml index 98716ad86..58880b9d5 100644 --- a/helm/ocaml/cic_notation/test_parser.ml +++ b/helm/ocaml/cic_notation/test_parser.ml @@ -35,40 +35,6 @@ let _ = let arg_spec = [ "-level", Arg.Set_int level, "set the notation level" ] in let usage = "test_parser -level { 1 | 2 | 3 }" in Arg.parse arg_spec (fun _ -> raise (Arg.Bad usage)) usage; - if !level = 2 then begin - let id = - CicNotationParser.extend ~precedence:50 ~associativity:Gramext.LeftA - (P.Layout (P.Box (P.H, - [ - P.Magic - (P.List1 - (P.Layout (P.Box (P.H, - [ P.Literal (`Symbol "|"); - P.Variable (P.TermVar "ugo"); - P.Magic (P.Opt (P.Layout (P.Box (P.H, - [ P.Literal (`Symbol ","); - P.Variable (P.TermVar "pino")])))); - P.Literal (`Symbol "|"); - ])), - Some (`Symbol ";"))); -(* P.Literal (`Symbol "+"); - P.Magic (P.Opt (P.Layout (P.Box (P.H, - [ - P.Variable (P.TermVar "ugo"); - P.Literal (`Symbol "+"); - P.Variable (P.TermVar "pino") - ])))); *) -(* P.Variable (P.TermVar "a"); - P.Literal (`Symbol "+"); - P.Variable (P.TermVar "b"); *) - ]))) - (fun env _ -> - prerr_endline "reducing rule" ; - prerr_endline (sprintf "env = [ %s ]" (CicNotationPp.pp_env env)); - P.Sort `Prop) - in - CicNotationParser.print_l2_pattern () - end; let ic = stdin in try printf "Parsing notation level %d\n" !level; flush stdout;