Enhanced C#
Language of your choice: library documentation
|
An immutable set that implements IPGTerminalSet so that it can be used by LLParserGenerator. More...
An immutable set that implements IPGTerminalSet so that it can be used by LLParserGenerator.
This class effectively represents any type of set. It is used by GeneralCodeGenHelper.
Public static fields | |
static readonly LNode | EOF_node = GeneralCodeGenHelper.EOF |
static new readonly PGNodeSet | Empty = new PGNodeSet(Set<LNode>.Empty) |
static new readonly PGNodeSet | All = new PGNodeSet(InvertibleSet<LNode>.All) |
static readonly PGNodeSet | AllExceptEOF = new PGNodeSet(InvertibleSet<LNode>.All.Without(EOF_node)) |
Properties | |
bool | ContainsEOF [get] |
char | ExampleChar [get] |
Properties inherited from Loyc.LLParserGenerator.IPGTerminalSet | |
bool | IsInverted [get] |
bool | ContainsEOF [get] |
bool | IsEmptySet [get] |
bool | ContainsEverything [get] |
IPGTerminalSet | Empty [get] |
Returns the empty set. More... | |
Public Member Functions | |
PGNodeSet (Set< LNode > set, bool inverted=false) | |
PGNodeSet (InvertibleSet< LNode > set) | |
PGNodeSet (IEnumerable< LNode > list, bool inverted=false) | |
PGNodeSet (params LNode[] list) | |
IPGTerminalSet | UnionCore (IPGTerminalSet other) |
Merges two sets. More... | |
PGNodeSet | Intersect (PGNodeSet other, bool subtract=false, bool subtractThis=false) |
IPGTerminalSet | WithEOF (bool wantEOF=true) |
Adds or removes EOF from the set. If the set doesn't change, this method may return this. More... | |
IPGTerminalSet | Optimize (IPGTerminalSet dontcare) |
bool | Equals (IPGTerminalSet other) |
override string | ToString () |
|
inline |
Merges two sets.
Implements Loyc.LLParserGenerator.IPGTerminalSet.
|
inline |
Adds or removes EOF from the set. If the set doesn't change, this method may return this.
Implements Loyc.LLParserGenerator.IPGTerminalSet.