Posted By:
Andrea_Vives
Posted On:
Friday, January 25, 2002 01:37 AM
Please, I need help.I must do that: CONST MIN = 10; ... IF AUX = 15 THEN ... and I have a problem with token "=" because if I define like a relational operator: TOKEN: { : ( |" <="|">="|" <>") | } the compiler do not understant like a literal when read CONST MIN = 10 (constant definition) But if I defined like a "literal" token: TOKEN: { } then, during executing-time the compiler do not understant like a relational operator in the sentence: IF AUX = 15 THEN ... How can I do for depend the context the token "=" can be a literal or a relational operato
More>>
Please, I need help.I must do that:
CONST MIN = 10;
...
IF AUX = 15 THEN ...
and I have a problem with token "=" because if I define like a relational operator:
TOKEN:
{
: (
|"
<="|">="|"
<>")
|
}
the compiler do not understant like a literal when read CONST MIN = 10 (constant definition)
But if I defined like a "literal" token:
TOKEN: {
}
then, during executing-time the compiler do not understant like a relational operator in the sentence:
IF AUX = 15 THEN ...
How can I do for depend the context the token "=" can be a literal or a relational operator?
Expecting an early reply,
Thanx in advance,
Regards,
Andrea
<<Less