Enhanced C#
Language of your choice: library documentation

Documentation moved to ecsharp.net

GitHub doesn't support HTTP redirects, so you'll be redirected in 3 seconds.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public static fields | Properties | Public Member Functions | List of all members
Loyc.LLParserGenerator.PGNodeSet Class Reference

An immutable set that implements IPGTerminalSet so that it can be used by LLParserGenerator. More...


Source file:
Inheritance diagram for Loyc.LLParserGenerator.PGNodeSet:
Loyc.LLParserGenerator.IPGTerminalSet

Remarks

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 ()
 

Member Function Documentation

IPGTerminalSet Loyc.LLParserGenerator.PGNodeSet.UnionCore ( IPGTerminalSet  other)
inline

Merges two sets.

Returns
The combination of the two sets, or null if other's type is not supported.

Implements Loyc.LLParserGenerator.IPGTerminalSet.

IPGTerminalSet Loyc.LLParserGenerator.PGNodeSet.WithEOF ( bool  wantEOF = true)
inline

Adds or removes EOF from the set. If the set doesn't change, this method may return this.

Implements Loyc.LLParserGenerator.IPGTerminalSet.