]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/mathql/grammar.txt
...
[helm.git] / helm / mathql / grammar.txt
index 25e4b8e1eb3cb62c3730f2592c675ec6e0448e91..7bdd67c3aeec2efab71c1cde13d1859ad6fab4e5 100644 (file)
@@ -14,6 +14,7 @@ MATHEMATICAL QUERY LANGUAGE (MathQL)
        |  CONTRUCTORS <list>                   (* unione costruttori della 
                                                  lista oggetti*)
        |  PATTERN <pattern>                    (* espansione del pattern *)
+       |  REFERENCE <reference>                (* oggetto referenziato *)
        |  INTHEORY <list> ITEMTYPE <svar>      (* unione oggetti lista teorie *)
        |  THEORYREFTO <list>                   (* unione teorie che fanno 
                                                  riferimento a lista oggetti *)
@@ -23,6 +24,7 @@ MATHEMATICAL QUERY LANGUAGE (MathQL)
                                                   classi e loro superclassi *)
        |  <list> OFSUBTYPE <svar>             (* unione oggetti in base a 
                                                   classi e loro sottoclassi *)
+       |  <rvar>                              (* valore della var*)
 
 <bool> := ( <bool> )                           (* parentesizzazione *)
        |  <bool> AND <bool>                    (* congiunzione *)
@@ -31,8 +33,11 @@ MATHEMATICAL QUERY LANGUAGE (MathQL)
        |  TRUE                                 (* vero *)
        |  FALSE                                (* falso *)
        |  <string> IS <string>                 (* case sensitive matching *)
+       |  <list> SETEQUAL <list>               (* uguaglianza tra liste *)
+       |  <list> SUBSET <list>                (* operazione di sottoinsieme *)  
        
 <pattern> := <"-quoted-constant-string>        (* pattern costante *)
+<reference> := <'-quoted-constant-string>      (* riferimento costante *)
           
 <string> := <'-quoted-constant-string>         (* costante letterale *)
          |  CONCLUSION | HYPOTHESIS | BODY     (* costanti simboliche *)
@@ -74,11 +79,12 @@ MATHEMATICAL QUERY LANGUAGE (MathQL)
 <rvar> := <not-reserved-identifier>            (* variabile per risorse *)
 <svar> := $ <not-reserved-identifier>          (* variabile per stringhe *)
 
+- () = lista vuota (?)
 - le stringhe sono "case sensitive" 
 - la funzione non definita sull'argomento restituisce la stringa nulla
 - le <rvar> si presuppongono essere istanziate come URI references costituite
-  da un URI e da un fragment identifier opzionalecomplete; esse identificano 
-  risorse 
+  da un URI e da un fragment identifier opzionale complete; i riferimenti 
+  identificano risorse 
 - ogni binding lega una variabile libera (nuova) 
 - Precedenza operatori:
   NOT (+)  DIFF