Ejemplo n.º 1
0
 internal Print(Expr expression)
 {
     this.Expression = expression;
 }
Ejemplo n.º 2
0
 internal Return(Token keyword, Expr value)
 {
     this.Keyword = keyword;
     this.Value   = value;
 }
Ejemplo n.º 3
0
 internal Conditional(Expr ifThen, Expr ifElse)
 {
     this.IfThen = ifThen;
     this.IfElse = ifElse;
 }
Ejemplo n.º 4
0
 internal Call(Expr callee, Token paren, List <Expr> arguments)
 {
     this.Callee    = callee;
     this.Paren     = paren;
     this.Arguments = arguments;
 }
Ejemplo n.º 5
0
 public Grouping(Expr expression)
 {
     this.Expression = expression;
 }
Ejemplo n.º 6
0
 internal Binary(Expr left, Token @operator, Expr right)
 {
     this.Left      = left;
     this.@operator = @operator;
     this.Right     = right;
 }
Ejemplo n.º 7
0
 internal Set(Expr @object, Token name, Expr value)
 {
     this.@object = @object;
     this.Name    = name;
     this.Value   = value;
 }
Ejemplo n.º 8
0
 internal ExpressionStmt(Expr expression)
 {
     this.Expression = expression;
 }
Ejemplo n.º 9
0
 internal Grouping(Expr expression)
 {
     this.Expression = expression;
 }
Ejemplo n.º 10
0
 internal Logical(Expr left, Token @operator, Expr right)
 {
     this.Left      = left;
     this.@operator = @operator;
     this.Right     = right;
 }
Ejemplo n.º 11
0
 internal Get(Expr @object, Token name)
 {
     this.@object = @object;
     this.Name    = name;
 }
Ejemplo n.º 12
0
 public Binary(Expr left, Token @operator, Expr right)
 {
     this.Left     = left;
     this.Operator = @operator;
     this.Right    = right;
 }
Ejemplo n.º 13
0
 public Unary(Token @operator, Expr right)
 {
     this.Operator = @operator;
     this.Right    = right;
 }
Ejemplo n.º 14
0
 internal While(Expr condition, Stmt body)
 {
     this.Condition = condition;
     this.Body      = body;
 }
Ejemplo n.º 15
0
 internal Assign(Token name, Expr value)
 {
     this.Name  = name;
     this.Value = value;
 }
Ejemplo n.º 16
0
 internal Var(Token name, Expr initializer)
 {
     this.Name        = name;
     this.Initializer = initializer;
 }
Ejemplo n.º 17
0
 internal Unary(Token @operator, Expr right)
 {
     this.@operator = @operator;
     this.Right     = right;
 }
Ejemplo n.º 18
0
 internal If(Expr condition, Stmt thenBranch, Stmt elseBranch)
 {
     this.Condition  = condition;
     this.ThenBranch = thenBranch;
     this.ElseBranch = elseBranch;
 }
Ejemplo n.º 19
0
 internal Get(Expr obj, Token name)
 {
     this.Object = obj;
     this.Name   = name;
 }