Mercury library  1.0
Translation of CFG grammars into an object model (Bachelor's thesis).
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
Public Member Functions | Properties | List of all members
Mercury.Interpreting.Structure Class Reference

Represents a tree of Mercury.Interpreting.IElement instances. Must match precisely to the parse tree. More...

Inheritance diagram for Mercury.Interpreting.Structure:
Mercury.Interpreting.IElement

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...
 

Detailed Description

Represents a tree of Mercury.Interpreting.IElement instances. Must match precisely to the parse tree.

Definition at line 439 of file Element.cs.

Constructor & Destructor Documentation

Mercury.Interpreting.Structure.Structure ( IElement  head)

Creates a new Structure structure with root only.

Parameters
headStructure root. Must inherit from Mercury.Interpreting.Alternative.

Definition at line 452 of file Element.cs.

Mercury.Interpreting.Structure.Structure ( IElement  head,
IEnumerable< IElement subelements 
)

Creates a new Structure.

Parameters
headStructure root. Must inherit from Mercury.Interpreting.Alternative.
subelementsChild elements.
Exceptions
System.ArgumentNullExceptionWhen value is null
System.ArgumentExceptionstructure root must be an Alternative

Definition at line 463 of file Element.cs.

Member Function Documentation

bool Mercury.Interpreting.Structure.Equals ( IElement  other)

Definition at line 496 of file Element.cs.

Property Documentation

bool Mercury.Interpreting.Structure.HasWildcard
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.

ElementType Mercury.Interpreting.Structure.Type
getset

Definition at line 490 of file Element.cs.


The documentation for this class was generated from the following file: