Mercury library  1.0
Translation of CFG grammars into an object model (Bachelor's thesis).
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
InterpreterResult.cs
Go to the documentation of this file.
1 using Mercury.Nucleus.Trees;
2 using Mercury.Syntax;
3 using System;
4 using System.Collections.Generic;
5 using System.Linq;
6 using System.Text;
7 using System.Threading.Tasks;
8 
9 namespace Mercury.Interpreting
10 {
11 //=============================================================================
12 // InterpreterResult
13 //=============================================================================
14 
17  public class InterpreterResult<T>
18  where T : class
19  {
25  public bool Success { get { return Result != null; } }
26 
28  public Tree<Symbol> Input { get; internal set; }
29 
31  public T Result { get; internal set; }
32 
37  public Exception Exception { get; internal set; }
38 
44  public InterpreterContext<T> Context { get; internal set; }
45  }
46 }
An exception has been thrown
Interpreter Context class. Some languages may use it to override it and remember data when parse tree...
The analysis was successful and there is at least one result