I try to get around Wisent/Semantic and I'm playing with toy languages at this point. Issue I'm stuck with is how to mark multiple variable declarations.
My toy language has only WORD terminal and all terminals should get VARIABLE-TAG. I tried this:
%token WORD %start words words : word | words word (append $1 (list $2)) ; word : WORD (VARIABLE-TAG $1 nil nil) ;
The above seems to mark only first word as variable. How to properly use VARIABLE-TAG so that all words are marked as variables?