]> matita.cs.unibo.it Git - helm.git/commitdiff
dependeciesParsed fixed to parse URIs also in QSTRINGs
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 18 Jul 2006 13:45:08 +0000 (13:45 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 18 Jul 2006 13:45:08 +0000 (13:45 +0000)
(because of alias id qstring = qstring)

helm/software/components/grafite_parser/dependenciesParser.ml

index e07d4ec031e972e33a409f30fa73659638c03c1a..5e80d8b4c8279d118cd8c92dd03172bd78b304eb 100644 (file)
@@ -45,6 +45,12 @@ let parse_dependencies lexbuf =
   let rec parse acc = 
    try
     (parser
+    | [< '("QSTRING", s) >] ->
+        (* because of alias id qstring = qstring :-( *)
+        (try
+          parse (UriDep (UriManager.uri_of_string s) :: acc)
+         with
+          UriManager.IllFormedUri _ -> parse acc)
     | [< '("URI", u) >] ->
         parse (UriDep (UriManager.uri_of_string u) :: acc)
     | [< '("IDENT", "include"); '("QSTRING", fname) >] ->