|
Mercury library
1.0
Translation of CFG grammars into an object model (Bachelor's thesis).
|
Represents a tree of Mercury.Interpreting.IElement instances. Must match precisely to the parse tree. More...
Public Member Functions | |
| Structure (IElement head) | |
| Creates a new Structure structure with root only. More... | |
| Structure (IElement head, IEnumerable< IElement > subelements) | |
| Creates a new Structure. More... | |
| bool | Equals (IElement other) |
Properties | |
| bool | HasWildcard [get, set] |
| Indicates whether this structure contains wildcard amongst its direct child nodes. More... | |
| ElementType | Type [get, set] |
Properties inherited from Mercury.Interpreting.IElement | |
| ElementType | Type [get] |
| Element type More... | |
Represents a tree of Mercury.Interpreting.IElement instances. Must match precisely to the parse tree.
Definition at line 439 of file Element.cs.
| Mercury.Interpreting.Structure.Structure | ( | IElement | head | ) |
Creates a new Structure structure with root only.
| head | Structure root. Must inherit from Mercury.Interpreting.Alternative. |
Definition at line 452 of file Element.cs.
Creates a new Structure.
| head | Structure root. Must inherit from Mercury.Interpreting.Alternative. |
| subelements | Child elements. |
| System.ArgumentNullException | When value is null |
| System.ArgumentException | structure root must be an Alternative |
Definition at line 463 of file Element.cs.
| bool Mercury.Interpreting.Structure.Equals | ( | IElement | other | ) |
Definition at line 496 of file Element.cs.
|
getset |
Indicates whether this structure contains wildcard amongst its direct child nodes.
true if the wildcard is present, false otherwise.
Definition at line 484 of file Element.cs.
|
getset |
Definition at line 490 of file Element.cs.
1.8.7