You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @alfred42
I add SingleOPExpression in AST to represent expressions have only one CaoZuoShu and in this case I delete NotExpression because it is contained in SingleOPExpression.
Hi, @alfred42 ,
In IfStatement, it should not be for(expression, expression, expression). The first part in bracket should be a statement. For Example "for (i = 0; i < 5; i++)". In this case, the third part is a SingleOPExpression. But in 'for(i = 0; i < 5; i = i + 2)' the third part is a statement. How could we do about it?
program
Statement*
Statement
{Statement*}
ifStatement
WhileStatement
DoWhileStatement
ForStatement
FieldDefineStatement
ArrayDefineStatement
AssignStatement
RestStatement
IfStatement
if(Expression) statement else statment
WhileStatment
while(Expression)statement
DoWhile
do Statment while(Expression)
ForStatement
for(Expression;Expression;Expression)Statement
FieldDefineStatement
Type Identify;
ArrayDefineStatement
Type Identify[];
AssignStatement
Identify=Expression;
Expression
(Expression)
Expression[Expression]
OPExpression
SingleOPExpression
ArrayGet
TrueExpression
FalseExpression
IdentifyExpression
ArrayExpression
IntValue
CharValue
LongValue
ParenthesesExpression
OPExpression
Expression op Expression
SingleOPExpression
op Expression
The text was updated successfully, but these errors were encountered: