Commit c667c9e5 authored by bguillaum's avatar bguillaum

remove the lex_rule keyword (use rule instead)

"lex_rule" is lexed as "rule" for backward compatibility

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/semagramme/libcaml-grew/trunk@8955 7838e531-6607-4d57-9587-6c381814729c
parent 10c1d994
......@@ -183,7 +183,7 @@ and standard target = parse
| "module" { MODULE }
| "confluent" { CONFLUENT }
| "rule" { RULE }
| "lex_rule" { LEX_RULE }
| "lex_rule" { Log.fwarning "[file %s, line %d]\"lex_rule\" is deprecated, please use \"rule\" instead" ! Global.current_file !Global.current_line; RULE }
| "filter" { FILTER }
| "sequences" { SEQUENCES }
......
......@@ -76,7 +76,6 @@ let localize t = (t,get_loc ())
%token MODULE /* module */
%token CONFLUENT /* confluent */
%token RULE /* rule */
%token LEX_RULE /* lex_rule */
%token FILTER /* filter */
%token SEQUENCES /* sequences */
%token GRAPH /* graph */
......@@ -334,7 +333,7 @@ rule:
rule_loc = snd id_loc;
}
}
| doc=option(COMMENT) LEX_RULE id_loc=simple_id_with_loc param=param LACC p=pos_item n=list(neg_item) cmds=commands RACC lex_par=option(lex_par)
| doc=option(COMMENT) RULE id_loc=simple_id_with_loc param=param LACC p=pos_item n=list(neg_item) cmds=commands RACC lex_par=option(lex_par)
{
{ Ast.rule_id = fst id_loc;
pattern = Ast.complete_pattern { Ast.pat_pos = p; Ast.pat_negs = n };
......
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