|
Mercury library
1.0
Translation of CFG grammars into an object model (Bachelor's thesis).
|
Interface for interpreters that create objects from derivation trees according to RewriteRules. More...
Public Member Functions | |
| InterpreterResult< T > | Interpret (Tree< Symbol > tree) |
| Uses rewrite rules to create a result value from the tree More... | |
| IReadOnlyList < InterpreterResult< T > > | Interpret (IReadOnlyList< Tree< Symbol >> trees) |
| Interprets the list of trees. This is to support memoization and/or parallelisation. More... | |
Properties | |
| RewriteRuleCollection< T > | RewriteRules [get] |
| The collection of rewrite rules used by the interpreter More... | |
Interface for interpreters that create objects from derivation trees according to RewriteRules.
| T | Interpreter output type. |
| T | : | class |
Definition at line 20 of file Interpreter.cs.
Uses rewrite rules to create a result value from the tree
| tree | The derivation tree. |
null if interpretation failed.Implemented in Mercury.Interpreting.SemanticInterpreter< T >, and Mercury.Interpreting.Interpreter< T >.
| IReadOnlyList<InterpreterResult<T> > Mercury.Interpreting.IInterpreter< T >.Interpret | ( | IReadOnlyList< Tree< Symbol >> | trees | ) |
Interprets the list of trees. This is to support memoization and/or parallelisation.
| trees | The trees. |
Implemented in Mercury.Interpreting.SemanticInterpreter< T >, and Mercury.Interpreting.Interpreter< T >.
|
get |
The collection of rewrite rules used by the interpreter
Definition at line 23 of file Interpreter.cs.
1.8.7