|
Mercury library
1.0
Translation of CFG grammars into an object model (Bachelor's thesis).
|
Global class containing cool static / convenience stuff. More...
Static Public Member Functions | |
| static ArgumentType | ParamToArgType (ParameterType ptype) |
Translates formal Mercury.Interpreting.ParameterType into Mercury.Interpreting.ArgumentType. If the input is Mercury.Interpreting.ParameterType.ActionCall, this function will yield Mercury.Interpreting.ArgumentType.None as it cannot resolve return types of the Mercury.Interpreting.ActionCall. In that case use ReturnType field of the Mercury.Interpreting.InterpreterAction{T} class wrapped in the Mercury.Interpreting.ActionCall. More... | |
| static ArgumentType | TypeToArgType< T, U > () |
Translates a .NET type into Mercury.Interpreting.ArgumentType. If T equals U , T:System.Object or dynamic this function will return Mercury.Interpreting.ArgumentType.Any. If T is one of int, double, bool, string, Symbol or Tree<Symbol>, this function will yield ArgumentType.TValue | (equivalent of T). Otherwise it will yield equivalent Mercury.Interpreting.ArgumentType with no other types set. More... | |
Properties | |
| static string | Epsilon [get] |
| Default epsilon symbol name More... | |
| static string | Root [get] |
| Default root symbol name More... | |
Global class containing cool static / convenience stuff.
Definition at line 15 of file Defaults.cs.
|
static |
Translates formal Mercury.Interpreting.ParameterType into Mercury.Interpreting.ArgumentType. If the input is Mercury.Interpreting.ParameterType.ActionCall, this function will yield Mercury.Interpreting.ArgumentType.None as it cannot resolve return types of the Mercury.Interpreting.ActionCall. In that case use ReturnType field of the Mercury.Interpreting.InterpreterAction{T} class wrapped in the Mercury.Interpreting.ActionCall.
| ptype | Type of the formal parameter |
Definition at line 66 of file Defaults.cs.
|
static |
Translates a .NET type into Mercury.Interpreting.ArgumentType. If T equals U , T:System.Object or dynamic this function will return Mercury.Interpreting.ArgumentType.Any. If T is one of int, double, bool, string, Symbol or Tree<Symbol>, this function will yield ArgumentType.TValue | (equivalent of T). Otherwise it will yield equivalent Mercury.Interpreting.ArgumentType with no other types set.
| T | Interpreter return type |
| U |
Definition at line 83 of file Defaults.cs.
|
staticget |
Default epsilon symbol name
Definition at line 50 of file Defaults.cs.
|
staticget |
Default root symbol name
Definition at line 53 of file Defaults.cs.
1.8.7