X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_notation%2FcicNotationPt.ml;h=5ad1f0b5b1896d4006aed511b0f00761d235e337;hb=915c3e1993cad4dcadefe7e6886e6cb8feefae8b;hp=c702f5115703f46e8f31f35afec1ff6c0416e85b;hpb=3d63cb9ed38f05c679fc3284a5b3bb4d92e52296;p=helm.git diff --git a/helm/ocaml/cic_notation/cicNotationPt.ml b/helm/ocaml/cic_notation/cicNotationPt.ml index c702f5115..5ad1f0b5b 100644 --- a/helm/ocaml/cic_notation/cicNotationPt.ml +++ b/helm/ocaml/cic_notation/cicNotationPt.ml @@ -39,7 +39,10 @@ let loc_of_floc = function type term_attribute = [ `Loc of location (* source file location *) | `IdRef of string (* ACic pointer *) + | `Href of UriManager.uri list (* hyperlinks for literals *) | `Level of int * Gramext.g_assoc (* precedence, associativity *) + | `XmlAttrs of (string option * string * string) list + (* list of XML attributes: namespace, name, value *) ] type literal = @@ -78,6 +81,7 @@ type term = | Literal of literal | Layout of layout_pattern + | Magic of magic_term | Variable of pattern_variable @@ -103,19 +107,21 @@ and layout_pattern = |+ column separator, row separator +| *) | Sqrt of term | Root of term * term (* argument, index *) -(* | Break *) + | Break | Box of box_spec * term list and magic_term = (* level 1 magics *) - | List0 of term * literal option - | List1 of term * literal option + | List0 of term * literal option (* pattern, separator *) + | List1 of term * literal option (* pattern, separator *) | Opt of term (* level 2 magics *) | Fold of fold_kind * term * string list * term (* base case pattern, recursive case bound names, recursive case pattern *) | Default of term * term (* "some" case pattern, "none" case pattern *) + | Fail + | If of term * term * term (* test, pattern if true, pattern if false *) and pattern_variable = (* level 1 and 2 variables *) @@ -133,7 +139,7 @@ type argument_pattern = | IdentArg of int * string (* eta-depth, name *) type cic_appl_pattern = - | UriPattern of string + | UriPattern of UriManager.uri | VarPattern of string | ApplPattern of cic_appl_pattern list @@ -143,4 +149,5 @@ type phrase = (* TODO hackish: replace with TacticAst.statement or similar *) (* level 1 pattern, associativity, precedence, level 2 pattern *) | Interpretation of (string * argument_pattern list) * cic_appl_pattern | Render of UriManager.uri + | Dump (* dump grammar *)