]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/grafite_parser/grafiteParser.ml
- cicInspect: relevant nodes count updated: letin nodes are not relevant
[helm.git] / helm / software / components / grafite_parser / grafiteParser.ml
index b8afc2b8d3b3c50babb8dd6d39f6fc1e045748b7..d0a97072c0d1c1c2b7a1ee366863e5992d80d93c 100644 (file)
@@ -726,9 +726,11 @@ EXTEND
     
     include_command: [ [
         IDENT "include" ; path = QSTRING -> 
-          loc,path,L.WithPreferences
+          loc,path,false,L.WithPreferences
+      | IDENT "include" ; IDENT "source" ; path = QSTRING -> 
+          loc,path,true,L.WithPreferences        
       | IDENT "include'" ; path = QSTRING -> 
-          loc,path,L.WithoutPreferences
+          loc,path,false,L.WithoutPreferences
      ]];
 
   grafite_command: [ [
@@ -885,17 +887,17 @@ EXTEND
           let stm = G.Comment (loc, com) in
           !grafite_callback status stm;
          status, LSome stm
-    | (iloc,fname,mode) = include_command ; SYMBOL "."  ->
+    | (iloc,fname,source,mode) = include_command ; SYMBOL "."  ->
        fun ?(never_include=false) ~include_paths status ->
          let stm =
-            G.Executable (loc, G.Command (loc, G.Include (iloc, fname)))
+            G.Executable (loc, G.Command (loc, G.Include (iloc, source, fname)))
          in
           !grafite_callback status stm;
          let _root, buri, fullpath, _rrelpath = 
             Librarian.baseuri_of_script ~include_paths fname 
           in
           let stm =
-            G.Executable (loc, G.Command (loc, G.Include (iloc, buri)))
+            G.Executable (loc, G.Command (loc, G.Include (iloc, source, buri)))
          in
          let status =
             if never_include then raise (NoInclusionPerformed fullpath)