X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Ftex_cic_textual_parser%2FtexCicTextualParser.mly;h=500565823d20a328166fd06dda7e2222d4860777;hb=3f88b5fffc17ecc8b3cb1645f9be846e740c8a3a;hp=f5aa714172cfe3328e530ab387c8d6a2ffb3f626;hpb=71284ef6c56c909e7205543f3fe8b916517f79b0;p=helm.git diff --git a/helm/ocaml/tex_cic_textual_parser/texCicTextualParser.mly b/helm/ocaml/tex_cic_textual_parser/texCicTextualParser.mly index f5aa71417..500565823 100644 --- a/helm/ocaml/tex_cic_textual_parser/texCicTextualParser.mly +++ b/helm/ocaml/tex_cic_textual_parser/texCicTextualParser.mly @@ -160,11 +160,11 @@ %token LETIN FIX COFIX SEMICOLON LCURLY RCURLY CASE ARROW LBRACKET RBRACKET EOF %token DOLLAR %token RPLUS RMINUS RTIMES RDIV -%token PLUS MINUS TIMES EQT EQ +%token PLUS MINUS TIMES EQT EQ NEQT %right ARROW -%right EQ EQT -%right PLUS MINUS RPLUS RMINUS -%right TIMES RTIMES RDIV +%nonassoc EQ EQT NEQT +%left PLUS MINUS RPLUS RMINUS +%left TIMES RTIMES RDIV %start main %type Cic.term)> main %% @@ -323,6 +323,22 @@ expr2: (mk_expr2 interp) ] } + | expr2 NEQT expr2 + { let dom1,mk_expr1 = $1 in + let dom2,mk_expr2 = $3 in + let dom3,mk_expr3 = mk_implicit () in + let dom = union dom1 (union dom2 dom3) in + dom, function interp -> + Cic.Appl [ + Cic.Const (UriManager.uri_of_string "cic:/Coq/Init/Logic/not.con",[]); + Cic.Appl + [Cic.MutInd + (UriManager.uri_of_string "cic:/Coq/Init/Logic_Type/eqT.ind",0,[]) ; + (mk_expr3 interp) ; + (mk_expr1 interp) ; + (mk_expr2 interp) + ]] + } | expr2 EQ expr2 { let dom1,mk_expr1 = $1 in let dom2,mk_expr2 = $3 in