[cedet-semantic] Is there a wisent analog to Bison %empty non-empty rule?
Brought to you by:
zappo
|
From: Christian J. <chr...@cv...> - 2020-06-06 06:22:22
|
Hi!
I'm translating the PHP bison grammar to wisent and currently I'm stuck
at a rule that looks like this:
backup_fn_flags:
%prec PREC_ARROW_FUNCTION %empty { $$ = CG(extra_fn_flags);
CG(extra_fn_flags) = 0; }
;
The %prec symbol seems to work with Wisent but for the %empty I get the
message "wisent-parse-nonterminals: Symbol ‘%empty’ is used, but is not
defined as a token and has no rules"
Is it possible to solve this?
For empty %empty rules I just replace %empty with ;; empty\n but I don't
know what to do when there are other nonterminals in the rule
--
Hälsningar / Best Regards
Christian
|