pip_services3_expressions library

Classes

AbstractTokenizer
Implements an abstract tokenizer class.
AbstractVariantOperations
CalculationStack
Implements a stack of Variant values.
CCommentState
This state will either delegate to a comment-handling state, or return a token with just a slash in it.
CharReferenceInterval<T>
Represents a character interval that keeps a reference. This class is internal and used by CharReferenceMap.
CharReferenceMap<T>
This class keeps references associated with specific characters
CharValidator
CppCommentState
This state will either delegate to a comment-handling state, or return a token with just a slash in it.
CsvConstant
The CsvConstant class defines a set of constants, such as control return, line feed and null.
CsvQuoteState
Implements a quote string state object for CSV streams.
CsvSymbolState
Implements a symbol state to tokenize delimiters in CSV streams.
CsvTokenizer
Implements a tokenizer class for CSV files.
CsvWordState
Implements a word state to tokenize CSV stream.
DefaultFunctionCollection
Implements a list filled with standard functions.
DelegatedFunction
Defines an interface for expression function.
ExpressionCalculator
Implements an expression calculator class.
ExpressionNumberState
Implements an Expression-specific number state object.
ExpressionParser
Implements an expression parser class.
ExpressionQuoteState
Implements an Expression-specific quote string state object.
ExpressionSymbolState
Implements a symbol state object.
ExpressionToken
ExpressionTokenizer
ExpressionWordState
Implements a word state object.
FunctionCollection
Implements a functions list.
GenericCommentState
A CommentState object returns a comment from a scanner.
GenericNumberState
A NumberState object returns a number from a scanner. This state's idea of a number allows an optional, initial minus sign, followed by one or more digits. A decimal point and another string of digits may follow these digits.
GenericQuoteState
A quoteState returns a quoted string token from a scanner.
GenericSymbolState
The idea of a symbol is a character that stands on its own, such as an ampersand or a parenthesis.
GenericTokenizer
Implements a default tokenizer class.
GenericWhitespaceState
A whitespace state ignores whitespace (such as blanks and tabs), and returns the tokenizer's next token. By default, all characters from 0 to 32 are whitespace.
GenericWordState
A wordState returns a word from a scanner. Like other states, a tokenizer transfers the job of reading to this state, depending on an initial character. Thus, the tokenizer decides which characters may begin a word, and this state determines which characters may appear as a second or later character in a word. These are typically different sets of characters; in particular, it is typical for digits to appear as parts of a word, but not as the initial character of a word.
ICommentState
Defines an interface for tokenizer state that processes comments.
IFunction
Defines an interface for expression function.
IFunctionCollection
Defines a functions list.
INumberState
Defines interface for tokenizer state that processes numbers - Integers, Floats, HexDec..
IQuoteState
Defines an interface for tokenizer state that processes quoted strings.
IScanner
Defines scanner that can read and unread characters and count lines. This scanner is used by tokenizers to process input streams.
ISymbolState
Defines an interface for tokenizer state that processes delimiters.
ITokenizer
A tokenizer divides a string into tokens.
ITokenizerState
A tokenizerState returns a token, given a scanner, an initial character read from the scanner, and a tokenizer that is conducting an overall tokenization of the scanner. The tokenizer will typically have a character state table that decides which state to use, depending on an initial character. If a single character is insufficient, a state such as SlashState will read a second character, and may delegate to another state, such as SlashStarState. This prospect of delegation is the reason that the nextToken() method has a tokenizer argument.
IVariable
Defines a variable interface.
IVariableCollection
Defines a variables list.
IVariantOperations
Defines an interface for variant operations manager.
IWhitespaceState
Defines an interface for tokenizer state that processes whitespaces (' ', '\t')
IWordState
Defines an interface for tokenizer state that processes words, identificators or keywords
MustacheErrorCode
General syntax errors.
MustacheParser
Implements an mustache parser class.
MustacheSpecialState
Implements a quote string state object for Mustache templates.
MustacheTemplate
Implements an mustache template class.
MustacheToken
MustacheTokenizer
StringScanner
SymbolNode
A SymbolNode object is a member of a tree that contains all possible prefixes of allowable symbols. Multi-character symbols appear in a SymbolNode tree with one node for each character.
SymbolRootNode
This class is a special case of a SymbolNode. A SymbolRootNode object has no symbol of its own, but has children that represent all possible symbols.
SyntaxErrorCode
General syntax errors.
Token
A token represents a logical chunk of a string. For example, a typical tokenizer would break the string "1.23 <= 12.3" into three tokens: the number 1.23, a less-than-or-equal symbol, and the number 12.3. A token is a receptacle, and relies on a tokenizer to decide precisely how to divide a string into tokens.
TypeSafeVariantOperations
Implements a strongly typed (type safe) variant operations manager object.
TypeUnsafeVariantOperations
Implements a type unsafe variant operations manager object.
Variable
Implements a variable holder object.
VariableCollection
Implements a variables list.
Variant
Defines container for variant values.

Enums

ExpressionTokenType
Define types of expression tokens.
MustacheLexicalState
Define states in mustache lexical analysis.
MustacheTokenType
Define types of mustache tokens.
TokenType
Types (categories) of tokens such as "number", "symbol" or "word".
VariantType
Defines supported types of variant values.

Typedefs

FunctionCalculator = Future<Variant> Function(List<Variant> params, IVariantOperations variantOperations)
Defines a delegate to implement a function

Exceptions / Errors

ExpressionException
Exception that can be thrown by Expression Calculator.
MustacheException
Exception that can be thrown by Mustache Template.
SyntaxException
Exception that can be thrown by Expression Parser.