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