Macro's [message #645307] |
Thu, 16 December 2010 14:56 |
No real name Messages: 25 Registered: April 2010 |
Junior Member |
|
|
Hey,
I got quite far with my grammar, but now I am wondering if its possible to implement in Xtext something which resembles a macro. What I have in mind is:
DefineMacro:
'#define' name=ID value=XXX
XXX should be some magic which states that it is everything until the end of line. Is something like this possible or would the lexer come into the way? I thought about doing it as a terminal, but that doesnt make much sense to me as it wont allow for any flexibility in whitespaces
[Updated on: Thu, 16 December 2010 15:06] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04115 seconds