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