Commit 8c1ade1c authored by bguillaum's avatar bguillaum

accept a string as label declaration (TIGER use "--" instead of "root")

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/semagramme/libcaml-grew/trunk@8531 7838e531-6607-4d57-9587-6c381814729c
parent c3b79a9f
......@@ -127,7 +127,7 @@ let load_conll file =
let of_conll file_name line_list =
handle ~name:"of_conll"
(fun () ->
let graph = G_graph.of_conll (Conll.parse file_name line_list) in
let graph = G_graph.of_conll ~loc:(Loc.file file_name) (Conll.parse file_name line_list) in
Instance.from_graph graph
) ()
......
......@@ -127,6 +127,7 @@ string_or_int:
label_ident:
| x=separated_nonempty_list(DDOT,COMPLEX_ID) { String.concat ":" (List.map Ast.label_id_of_ci x) }
| x=STRING { x }
simple_id:
| id=COMPLEX_ID { Ast.simple_id_of_ci id }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment