2using System.Collections.Generic;
53 bool Lazy = s ==
"LAZY";
65 List<Assignment> SetOperations =
new List<Assignment>();
71 foreach (
ScriptNode Operation
in List.Elements)
88 s = Parser.PeekNextToken().ToUpper();
92 Where = Parser.ParseOrs();
95 Result =
new Update(Source, SetOperations.ToArray(), Where, Lazy, Parser.
Start, Parser.Length, Parser.Expression);
ScriptNode RightOperand
Right operand.
ScriptNode LeftOperand
Left operand.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
Expression Expression
Expression of which the node is a part.
int Start
Start position in script expression.
Script parser, for custom parsers.
string PeekNextToken()
Returns the next token to be parsed, without moving the position forward. If at the end of the expres...
string NextToken()
Returns the next token to be parsed, and moves the position forward correspondingly....
ScriptNode ParseList()
Parses an element list.
Represents a variable reference.
Represents a list of elements.
Parses a SELECT statement
Parses an UPDATE statement
string[] InternalKeywords
Any keywords used internally by the custom parser.
string KeyWord
Keyword associated with custom parser.
string[] Aliases
Keyword aliases, if available, null if none.
bool TryParse(ScriptParser Parser, out ScriptNode Result)
Tries to parse a script node.
UpdateParser()
Parses an UPDATE statement
Abstract base class for source definitions
Executes an UPDATE statement against the object database.
Interface for keywords with custom parsing.