[This is preliminary documentation and is subject to change.]
Represents an element on the RHS of a production rule.
Declaration Syntax
C# |
public class Element : IEquatable<Element>
Members
All Members | Methods | Properties | Fields | ||
Icon | Member | Description |
---|---|---|
DateTimeTerminal | An Element which represents a date and/or time literal in a
grammar. | |
Empty | An Element which represents epsilon - the empty transition - in a
grammar | |
EndOfInput | An Element which represents the end point of the source text in a
grammar. | |
Equality(Element, Element) | Defines the equality operation between two Elements. | |
Equals(Object) | Determines if this element is the same as another object.
(Overrides Object.Equals(Object).) | |
Equals(Element) | Determines if this element is the same as another Element.
| |
Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
FloatingTerminal | An Element which represents a floating point literal in a
grammar. | |
GetHashCode()()()() | Gets a hash code for this Element. (Overrides Object.GetHashCode()()()().) | |
GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
Inequality(Element, Element) | Defines the inequality operation between two Elements. | |
IntegerTerminal | An Element which represents an integer literal in a grammar.
| |
IsEmpty | Determines whether this Element is the Empty element. | |
IsFixedTerminal | Determines whether this Element is a terminal but not one of the
special terminals | |
IsNonTerminal | Determines whether this Element is a non terminal. | |
IsTerminal | Determines whether this Element is a terminal. | |
IsTerminalOrEmpty | Determines whether this Element is either a terminal or the Empty
element. | |
IsTokenTerminal | Determines whether this Element is one of the special terminals.
| |
MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
StringTerminal | An Element which represents a string literal in a grammar.
| |
SymbolTerminal | An Element which represents any terminal symbol in a grammar.
| |
ToString()()()() | Obtains a string representation of this Element. (Overrides Object.ToString()()()().) |
Remarks
An Element can be either empty, a terminal or a non terminal. These three cases are tested for by the properties IsEmpty, IsTerminal and IsNonTerminal. There are special terminal values, corresponding to various lexical value, such as SymbolTerminal, IntegerTerminal, etc., as well as the special terminal EndOfInput. The IsTokenTerminal property tests if the element is one of these.
Inheritance Hierarchy
Object | |
Element |