|
Mercury library
1.0
Translation of CFG grammars into an object model (Bachelor's thesis).
|
Interpreter Context class. Some languages may use it to override it and remember data when parse trees are being interpreted. More...
Inherited by Mercury.Interpreting.InternalContext< T >.
Public Member Functions | |
| InterpreterContext () | |
| Initializes a new instance of the InterpreterContext{T} class. More... | |
| abstract InterpreterContext< T > | DeepClone () |
| Creates a deep copy of the object More... | |
| abstract void | CopyFrom (InterpreterContext< T > other) |
| Copies data from another context More... | |
| void | LogEntry (string text, params object[] args) |
| Logs an event into the history. More... | |
Properties | |
| TreeEntry< T > | RootEntry [get] |
| Records history (trees, rules, events etc.) that occured while interpreting a tree. Mercury.Interpreting.EntryWriter{T} can be used to format the data into a text writer. More... | |
Interpreter Context class. Some languages may use it to override it and remember data when parse trees are being interpreted.
| T | : | class |
Definition at line 18 of file InterpreterContext.cs.
| Mercury.Interpreting.InterpreterContext< T >.InterpreterContext | ( | ) |
Initializes a new instance of the InterpreterContext{T} class.
Definition at line 55 of file InterpreterContext.cs.
|
pure virtual |
Copies data from another context
|
pure virtual |
Creates a deep copy of the object
| void Mercury.Interpreting.InterpreterContext< T >.LogEntry | ( | string | text, |
| params object[] | args | ||
| ) |
Logs an event into the history.
| text | Event message. |
| args | Format arguments. |
Definition at line 80 of file InterpreterContext.cs.
|
get |
Records history (trees, rules, events etc.) that occured while interpreting a tree. Mercury.Interpreting.EntryWriter{T} can be used to format the data into a text writer.
Definition at line 66 of file InterpreterContext.cs.
1.8.7