final Token token;
}
{
- token = <DOLLAR> variable = Var(token)
+ token = <DOLLAR> variable = Var()
{
- return new Variable(variable,token.sourceEnd,variable.sourceEnd);
+ return variable;
}
}
-Variable Var(final Token dollar) :
+Variable Var() :
{
Variable variable = null;
final Token token,token2;
Expression expression;
}
{
- token = <DOLLAR> variable = Var(token)
- {return new Variable(variable,dollar.sourceEnd,variable.sourceEnd);}
+ token = <DOLLAR> variable = Var()
+ {return new Variable(variable,variable.sourceStart,variable.sourceEnd);}
|
token = <LBRACE> expression = Expression() token2 = <RBRACE>
{
return new Variable(expression,
- dollar.sourceStart,
+ token.sourceStart,
token2.sourceEnd);
}
|
token = <IDENTIFIER>
- {return new Variable(token.image,dollar.sourceStart,token.sourceEnd);}
+ {return new Variable(token.image,token.sourceStart,token.sourceEnd);}
}
Expression VariableInitializer() :