On Apr 15, 10:19 am, Joep Suijs <[email protected]> wrote: > > 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. >
Joep, I suspect you're right-- we'll eventually figure out how to have one grammar that handles all of the issues you've raised. I hesitate to offer advice -- you're obviously making tremendous progress on your own... But, worst case, we could handle 'pragma' with an entirely separate grammar, likewise 'asm' could have its own grammar. Personally, I prefer a breadth-first approach -- for now, why not make 'pragma' as a fancy comment: equivalent to JAL's "--". What I mean is, just skip all lines that start with pragma. We can come back to it later. I'd love to see us get all the way thru the syntax parsing of the rest of the language. Thanks, William -- 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.
