Enhanced C#
Language of your choice: library documentation
|
This interface represents a set of terminals (and only a set of terminals, unlike TerminalPred which includes actions and a Basis Node). Typical lexers and parsers use PGIntSet and PGNodeSet, respectively. More...
This interface represents a set of terminals (and only a set of terminals, unlike TerminalPred which includes actions and a Basis Node). Typical lexers and parsers use PGIntSet and PGNodeSet, respectively.
Properties | |
bool | IsInverted [get] |
bool | ContainsEOF [get] |
bool | IsEmptySet [get] |
bool | ContainsEverything [get] |
IPGTerminalSet | Empty [get] |
Returns the empty set. More... | |
Public Member Functions | |
IPGTerminalSet | UnionCore (IPGTerminalSet other) |
Merges two sets. More... | |
IPGTerminalSet | IntersectionCore (IPGTerminalSet other, bool subtract=false, bool subtractThis=false) |
Computes the intersection of two sets. More... | |
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 | Inverted () |
Creates a version of the set with IsInverted toggled. More... | |
IPGTerminalSet Loyc.LLParserGenerator.IPGTerminalSet.IntersectionCore | ( | IPGTerminalSet | other, |
bool | subtract = false , |
||
bool | subtractThis = false |
||
) |
Computes the intersection of two sets.
IPGTerminalSet Loyc.LLParserGenerator.IPGTerminalSet.Inverted | ( | ) |
Creates a version of the set with IsInverted toggled.
IPGTerminalSet Loyc.LLParserGenerator.IPGTerminalSet.UnionCore | ( | IPGTerminalSet | other | ) |
Merges two sets.
Implemented in Loyc.LLParserGenerator.PGNodeSet.
IPGTerminalSet Loyc.LLParserGenerator.IPGTerminalSet.WithEOF | ( | bool | wantEOF = true | ) |
Adds or removes EOF from the set. If the set doesn't change, this method may return this.
Implemented in Loyc.LLParserGenerator.PGNodeSet, and Loyc.LLParserGenerator.PGIntSet.
|
get |
Returns the empty set.