Mercury library  1.0
Translation of CFG grammars into an object model (Bachelor's thesis).
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
Properties | List of all members
Mercury.AnalyserResult< T, TResult > Class Template Reference

Holds the result of analysis.

The fields hold information according to the following table:

More...

Properties

AnalyserStatus Status [get, set]
 Status of the analysis More...
 
FailReason FailReason [get, set]
 Reason of the failure. If the value is Exception, Exception field must contain the exception that has been thrown. More...
 
ParserResult ParserResult [get, set]
 Parser result More...
 
IReadOnlyList
< InterpreterResult< T > > 
InterpreterResults [get, set]
 The list of interpreter results for each tree in ParserResult.Trees. More...
 
IReadOnlyList< TResult > Interpretations [get, set]
 Final interpretations More...
 
Exception Exception [get, set]
 If the FailReason is Exception, this field contains the exception that has been thrown More...
 
TimeSpan ParserTime [get, set]
 The time it took to parse input More...
 
TimeSpan InterpreterTime [get, set]
 The time it took to parse all trees More...
 
TimeSpan TotalTime [get, set]
 Total time of analysis. Includes ParserTime, InterpreterTime and additional duration of analyser overhead More...
 

Detailed Description

Holds the result of analysis.

The fields hold information according to the following table:

    ============================================================
       --  Conditions --     ||      --  Field values  --       
    Status   |  FailReason   || ParserR. | Interp's | Exception 
    ------------------------------------------------------------
    Success  | None          ||  [yes]   |  [yes*]  | undef.    
    *Fail    | NoValidResult ||  undef.  |  undef.  | undef.    
    *Fail    | Exception     ||  undef.  |  undef.  | [yes]     
    ============================================================
    


[yes*] - provided that Interpreter is not null

Template Parameters
TResult type
Type Constraints
T :class 
TResult :class 

Definition at line 67 of file AnalyserResult.cs.

Property Documentation

Exception Mercury.AnalyserResult< T, TResult >.Exception
getset

If the FailReason is Exception, this field contains the exception that has been thrown

Definition at line 118 of file AnalyserResult.cs.

FailReason Mercury.AnalyserResult< T, TResult >.FailReason
getset

Reason of the failure. If the value is Exception, Exception field must contain the exception that has been thrown.

Definition at line 106 of file AnalyserResult.cs.

IReadOnlyList<TResult> Mercury.AnalyserResult< T, TResult >.Interpretations
getset

Final interpretations

Definition at line 115 of file AnalyserResult.cs.

IReadOnlyList<InterpreterResult<T> > Mercury.AnalyserResult< T, TResult >.InterpreterResults
getset

The list of interpreter results for each tree in ParserResult.Trees.

Definition at line 112 of file AnalyserResult.cs.

TimeSpan Mercury.AnalyserResult< T, TResult >.InterpreterTime
getset

The time it took to parse all trees

Definition at line 124 of file AnalyserResult.cs.

ParserResult Mercury.AnalyserResult< T, TResult >.ParserResult
getset

Parser result

Definition at line 109 of file AnalyserResult.cs.

TimeSpan Mercury.AnalyserResult< T, TResult >.ParserTime
getset

The time it took to parse input

Definition at line 121 of file AnalyserResult.cs.

AnalyserStatus Mercury.AnalyserResult< T, TResult >.Status
getset

Status of the analysis

Definition at line 100 of file AnalyserResult.cs.

TimeSpan Mercury.AnalyserResult< T, TResult >.TotalTime
getset

Total time of analysis. Includes ParserTime, InterpreterTime and additional duration of analyser overhead

Definition at line 130 of file AnalyserResult.cs.


The documentation for this class was generated from the following file: