In my (bigger than others) ignorance, a token can have his own list of
sub-tokens?

Vasi(funlw65)

On Apr 15, 11:19 am, Joep Suijs <[email protected]> wrote:
> Hi Vasi et al
>
> 2010/4/15 funlw65 <[email protected]>:
>
> > Hi  guys,
> > Forgive me for I jumped here. If data is used in pragma definitions,
> > then why is not considered as compiler keyword. There is not a list
> > with "forbiden" keywords? If something is used in pragma, then should
> > not be used in other places. This is not an antlr parser issue - more
> > like a jal problem.
>
> I thought of that too. 'Data' is a keyword in the context of pragma
> only, just like many others are (like nop after 'asm'). I can't
> imagine that all possible keywords within a specific context are
> excluded for general use when you use antlr.
>
> Or to explain it in example:
> In the statement 'var byte data ', data is an IDENTIFIER token and
> this should be the case, even if there is a rule to process the
> statement 'pragma data'
> With my ignorance, I suspect this means 'data' is not a token on
> itself and wonder how to setup antlr grammar for this.
>
> Joep

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to