Wrapper class for each step of analysis.
More...
|
| | Analyser (LanguageInfo< T > langinfo, Func< T, TResult > resultSelector, IInterpreterContextFactory contextFactory=null) |
| | Initializes a new instance of the Analyser{T,TResult} class from the provided language information. More...
|
| |
| | Analyser (ITokenizer tokenizer, IScanner scanner, IParser parser, IInterpreter< T > interpreter, Func< T, TResult > resultSelector) |
| | Initializes a new instance of analyzer from the class. Scanner and Interpreter can be null (if so, they won't be used). resultSelector can be null only if the interpreter is null. More...
|
| |
| AnalyserResult< T, TResult > | Analyze (string input) |
| | Analyzes the specified input and returns the Mercury.AnalyserResult{T,TResult}. More...
|
| |
Wrapper class for each step of analysis.
- Template Parameters
-
| T | Interpreter return type. |
| TResult | Result type of post-processing. May equal T . |
Definition at line 18 of file Analyser.cs.
| Mercury.Analyser< T, TResult >.Analyser |
( |
LanguageInfo< T > |
langinfo, |
|
|
Func< T, TResult > |
resultSelector, |
|
|
IInterpreterContextFactory |
contextFactory = null |
|
) |
| |
Initializes a new instance of the Analyser{T,TResult} class from the provided language information.
- Parameters
-
| langinfo | The language information. |
| resultSelector | The post-processing function. |
| contextFactory | The context factory. |
Definition at line 33 of file Analyser.cs.
| Mercury.Analyser< T, TResult >.Analyser |
( |
ITokenizer |
tokenizer, |
|
|
IScanner |
scanner, |
|
|
IParser |
parser, |
|
|
IInterpreter< T > |
interpreter, |
|
|
Func< T, TResult > |
resultSelector |
|
) |
| |
Initializes a new instance of analyzer from the class. Scanner and Interpreter can be null (if so, they won't be used). resultSelector can be null only if the interpreter is null.
- Parameters
-
| tokenizer | The tokenizer. |
| scanner | The scanner. |
| parser | The parser. |
| interpreter | The interpreter. |
| resultSelector | The result selector. |
- Exceptions
-
| System.ArgumentNullException | tokenizer, parser or resultSelector is null |
Definition at line 52 of file Analyser.cs.
| AnalyserResult<T, TResult> Mercury.Analyser< T, TResult >.Analyze |
( |
string |
input | ) |
|
Analyzes the specified input and returns the Mercury.AnalyserResult{T,TResult}.
- Parameters
-
- Returns
- The result of analysis.
Definition at line 90 of file Analyser.cs.
| IInterpreter<T> Mercury.Analyser< T, TResult >.Interpreter |
|
getset |
| IParser Mercury.Analyser< T, TResult >.Parser |
|
getset |
| IScanner Mercury.Analyser< T, TResult >.Scanner |
|
getset |
The documentation for this class was generated from the following file: