You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
601 B
22 lines
601 B
package triangle.abstractSyntaxTrees.commands;
|
|
|
|
import triangle.abstractSyntaxTrees.expressions.Expression;
|
|
import triangle.abstractSyntaxTrees.visitors.CommandVisitor;
|
|
import triangle.syntacticAnalyzer.SourcePosition;
|
|
|
|
public class RepeatCommand extends Command {
|
|
|
|
public RepeatCommand(Expression eAST, Command cAST, SourcePosition position) {
|
|
super(position);
|
|
E = eAST;
|
|
C = cAST;
|
|
}
|
|
|
|
public <TArg, TResult> TResult visit(CommandVisitor<TArg, TResult> v, TArg arg) {
|
|
return v.visitRepeatCommand(this, arg);
|
|
}
|
|
|
|
//public final Expression E;
|
|
public Expression E;
|
|
public final Command C;
|
|
}
|
|
|