예제 #1
0
 public AssignElement(VariableLexeme left, string op, List <TreeElement> right) : base(left.File, left.Position,
                                                                                       left.Line, left.CharIndex)
 {
     Left     = left;
     Operator = op;
     Right    = right;
 }
예제 #2
0
 public TryElement(TreeElement parent, VariableLexeme variable, List <TreeElement> tryBlock, List <TreeElement> catchBlock, List <TreeElement> finallyBlock) : base(parent.File, parent.Position, parent.Line, parent.CharIndex)
 {
     TryBlock     = tryBlock;
     CatchBlock   = catchBlock;
     Variable     = variable;
     FinallyBlock = finallyBlock;
 }
예제 #3
0
 public DeclareFieldElement(VariableLexeme lexeme, List <TreeElement> body, FuncType type) : base(lexeme.File, lexeme.Position, lexeme.Line,
                                                                                                  lexeme.CharIndex)
 {
     FieldName = lexeme.Value;
     Body      = body;
     Type      = type;
 }
예제 #4
0
 public AttributeElement(VariableLexeme var) : base(var.File, var.Position, var.Line, var.CharIndex)
 {
     AttributeName = var.Value;
 }
예제 #5
0
 public InvokeElement(string var, VariableLexeme parent, List <TreeElement> block) : base(parent.File, parent.Position, parent.Line, parent.CharIndex)
 {
     Block   = block;
     Array   = parent;
     VarName = var;
 }
예제 #6
0
 public CallFunctionElement(VariableLexeme variableLexeme, List <List <TreeElement> > args) : base(variableLexeme.File,
                                                                                                   variableLexeme.Position, variableLexeme.Line, variableLexeme.CharIndex)
 {
     Value = variableLexeme;
     Args  = args;
 }