How to properly use VARIABLE-TAG

Gracjan Polak <[email protected]> Fri, 12 Feb 2016 21:33:13 +0100
Newsgroups gmane.emacs.semantic
Message-ID <CAChsM3Q=0THeuF+QHfsdhyBpsi2b_WMyXQCCZaJ24QzT_Ag7tw@mail.gmail.com>
Hi all,

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 word as marked as variables?

-- 
Gracjan

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140

_______________________________________________
cedet-semantic mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cedet-semantic