예제 #1
0
 public ArrayToken(Token token, ScanToken array, List <ScanToken> indexes)
     : base(token)
 {
     Array        = array;
     Indexes      = indexes;
     Array.Parent = this;
 }
예제 #2
0
 public FunctionToken(Token token, ScanToken function, List <ScanToken> arguments)
     : base(token)
 {
     Function        = function;
     Arguments       = arguments;
     Function.Parent = this;
 }
예제 #3
0
        protected BinaryOperationToken(Token token, ScanToken leftOperand, ScanToken rightOperand)
            : base(token)
        {
            LeftOperand  = leftOperand;
            RightOperand = rightOperand;

            LeftOperand.Parent  = this;
            RightOperand.Parent = this;
        }
예제 #4
0
 protected UnaryOperationToken(Token token, ScanToken operand)
     : base(token)
 {
     Operand        = operand;
     Operand.Parent = this;
 }
예제 #5
0
 public DotToken(Token token, ScanToken leftOperand, ScanToken rightOperand)
     : base(token, leftOperand, rightOperand)
 {
 }