|
|
|
Re: [Grammar] Declaration and definition of variables for a DSL [message #555560 is a reply to message #555551] |
Fri, 27 August 2010 07:35 |
|
Hi,
i cannot reproduce this since you didn't post your rules for DataType (and number).
Variables: variables+=Variable*;
Variable:
VariableDeclaration | VariableDefinition;
VariableDeclaration:
type=ID name=ID';';
VariableDefinition:
AlreadyDeclaredVariable | NewVariableDefinition;
AlreadyDeclaredVariable:
ref=[VariableDeclaration] '=' value=INT ';';
NewVariableDefinition:
type=ID name=ID '=' value=INT ';';
works fine so i think this has to do something with your datatype rule
Regards
Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
[Updated on: Fri, 27 August 2010 07:36] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03524 seconds