parent
32bd99d78b
commit
4341d02572
@ -0,0 +1,21 @@ |
||||
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 final Command C; |
||||
} |
Binary file not shown.
Reference in new issue