X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=components%2Fgrafite_parser%2FdependenciesParser.ml;h=b7b4151fa3b5c47f874cd476f60012e9bcfe7f85;hb=c704c720763e174eb05f62f1bf70359744b8a0e9;hp=e07d4ec031e972e33a409f30fa73659638c03c1a;hpb=ff074375003b7b0e3d38e2742ff1d6098a0dab57;p=helm.git diff --git a/components/grafite_parser/dependenciesParser.ml b/components/grafite_parser/dependenciesParser.ml index e07d4ec03..b7b4151fa 100644 --- a/components/grafite_parser/dependenciesParser.ml +++ b/components/grafite_parser/dependenciesParser.ml @@ -25,6 +25,17 @@ (* $Id$ *) +(* FG + * From Cambridge dictionary + * Dependency: + * a country which is supported and governed by another country + * Dependence: + * when you need something or someone all the time, especially in order to + * continue existing or operating + * + * Fate vobis ... + *) + exception UnableToInclude of string (* statements meaningful for matitadep *) @@ -45,6 +56,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) >] ->