Skip to content
Snippets Groups Projects
Commit 82f6253a authored by Ludovic Apvrille's avatar Ludovic Apvrille
Browse files

Revert "New grammer for TML: removing min and max functions"

This reverts commit f91b0eda.
parent c2822af6
No related branches found
No related tags found
No related merge requests found
......@@ -270,6 +270,8 @@ void NatExtendedExpression() :
{Token t;}
{
LParen() NatExtendedExpression() RParen() [NatOperatorExtendedExpression()]
|
NatFunction2() [NatOperatorExtendedExpression()]
|
NaturalLiteral() [NatOperatorExtendedExpression()]
|
......@@ -297,6 +299,22 @@ void BoolId() #BOOL_ID:
}
void NatFunction2() :
{}
{
NatFunc2() LParen() NatExtendedExpression() "," NatExtendedExpression() RParen()
|
QueueNatFunc()
}
void NatFunc2() #NAT_FUNC:
{Token t;}
{
(t = <MIN>
|
t = <MAX>) {jjtThis.setInfo(""+t.kind,t.image);}
}
void QueueNatFunc() #NAT_QUEUE_NAT_FUNC :
{Token t;}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment