C# Class Peg.Base.PegBaseParser

Show file Open project: Andos/BinaryFileSchema Class Usage Examples

Protected Properties

Property Type Description
bMute_ bool
errOut_ System.IO.TextWriter
nodeCreator_ Creator
pos_ int
srcLen_ int

Public Methods

Method Description
AddTreeNode ( int nId, PegTree newAddPolicy, Creator createNode, ECreatorPhase ePhase ) : void
And ( Matcher pegSequence ) : bool
Any ( ) : bool
Construct ( TextWriter Fout ) : void
ForRepeat ( int count, Matcher toRepeat ) : bool
ForRepeat ( int lower, int upper, Matcher toRepeat ) : bool
GetProperties ( EncodingClass &encoding, UnicodeDetection &detection ) : void
GetRoot ( ) : PegNode
GetRuleNameFromId ( int id ) : string
Not ( Matcher toMatch ) : bool
OptRepeat ( Matcher toRepeat ) : bool
Option ( Matcher toMatch ) : bool
Peek ( Matcher toMatch ) : bool
PegBaseParser ( TextWriter errOut ) : System
PlusRepeat ( Matcher toRepeat ) : bool
ResetTree ( ) : void
RestoreTree ( PegNode prevCur, PegTree prevPolicy ) : void
Rewind ( ) : void
SetErrorDestination ( TextWriter errOut ) : void
SetNodeCreator ( Creator nodeCreator ) : void
TreeAST ( Creator nodeCreator, Matcher toMatch ) : bool
TreeAST ( Creator nodeCreator, int nRuleId, Matcher toMatch ) : bool
TreeAST ( Matcher toMatch ) : bool
TreeAST ( int nRuleId, Matcher toMatch ) : bool
TreeChars ( Creator nodeCreator, Matcher toMatch ) : bool
TreeChars ( Matcher toMatch ) : bool
TreeCharsWithId ( Creator nodeCreator, int nId, Matcher toMatch ) : bool
TreeCharsWithId ( int nId, Matcher toMatch ) : bool
TreeNT ( Creator nodeCreator, Matcher toMatch ) : bool
TreeNT ( Creator nodeCreator, int nRuleId, Matcher toMatch ) : bool
TreeNT ( Matcher toMatch ) : bool
TreeNT ( int nRuleId, Matcher toMatch ) : bool
TreeNodeToString ( PegNode node ) : string

Protected Methods

Method Description
DefaultNodeCreator ( ECreatorPhase phase, PegNode parentOrCreated, int id ) : PegNode

Method Details

AddTreeNode() public method

public AddTreeNode ( int nId, PegTree newAddPolicy, Creator createNode, ECreatorPhase ePhase ) : void
nId int
newAddPolicy PegTree
createNode Creator
ePhase ECreatorPhase
return void

And() public method

public And ( Matcher pegSequence ) : bool
pegSequence Matcher
return bool

Any() public method

public Any ( ) : bool
return bool

Construct() public method

public Construct ( TextWriter Fout ) : void
Fout System.IO.TextWriter
return void

DefaultNodeCreator() protected method

protected DefaultNodeCreator ( ECreatorPhase phase, PegNode parentOrCreated, int id ) : PegNode
phase ECreatorPhase
parentOrCreated PegNode
id int
return PegNode

ForRepeat() public method

public ForRepeat ( int count, Matcher toRepeat ) : bool
count int
toRepeat Matcher
return bool

ForRepeat() public method

public ForRepeat ( int lower, int upper, Matcher toRepeat ) : bool
lower int
upper int
toRepeat Matcher
return bool

GetProperties() public method

public GetProperties ( EncodingClass &encoding, UnicodeDetection &detection ) : void
encoding EncodingClass
detection UnicodeDetection
return void

GetRoot() public method

public GetRoot ( ) : PegNode
return PegNode

GetRuleNameFromId() public method

public GetRuleNameFromId ( int id ) : string
id int
return string

Not() public method

public Not ( Matcher toMatch ) : bool
toMatch Matcher
return bool

OptRepeat() public method

public OptRepeat ( Matcher toRepeat ) : bool
toRepeat Matcher
return bool

Option() public method

public Option ( Matcher toMatch ) : bool
toMatch Matcher
return bool

Peek() public method

public Peek ( Matcher toMatch ) : bool
toMatch Matcher
return bool

PegBaseParser() public method

public PegBaseParser ( TextWriter errOut ) : System
errOut System.IO.TextWriter
return System

PlusRepeat() public method

public PlusRepeat ( Matcher toRepeat ) : bool
toRepeat Matcher
return bool

ResetTree() public method

public ResetTree ( ) : void
return void

RestoreTree() public method

public RestoreTree ( PegNode prevCur, PegTree prevPolicy ) : void
prevCur PegNode
prevPolicy PegTree
return void

Rewind() public method

public Rewind ( ) : void
return void

SetErrorDestination() public method

public SetErrorDestination ( TextWriter errOut ) : void
errOut System.IO.TextWriter
return void

SetNodeCreator() public method

public SetNodeCreator ( Creator nodeCreator ) : void
nodeCreator Creator
return void

TreeAST() public method

public TreeAST ( Creator nodeCreator, Matcher toMatch ) : bool
nodeCreator Creator
toMatch Matcher
return bool

TreeAST() public method

public TreeAST ( Creator nodeCreator, int nRuleId, Matcher toMatch ) : bool
nodeCreator Creator
nRuleId int
toMatch Matcher
return bool

TreeAST() public method

public TreeAST ( Matcher toMatch ) : bool
toMatch Matcher
return bool

TreeAST() public method

public TreeAST ( int nRuleId, Matcher toMatch ) : bool
nRuleId int
toMatch Matcher
return bool

TreeChars() public method

public TreeChars ( Creator nodeCreator, Matcher toMatch ) : bool
nodeCreator Creator
toMatch Matcher
return bool

TreeChars() public method

public TreeChars ( Matcher toMatch ) : bool
toMatch Matcher
return bool

TreeCharsWithId() public method

public TreeCharsWithId ( Creator nodeCreator, int nId, Matcher toMatch ) : bool
nodeCreator Creator
nId int
toMatch Matcher
return bool

TreeCharsWithId() public method

public TreeCharsWithId ( int nId, Matcher toMatch ) : bool
nId int
toMatch Matcher
return bool

TreeNT() public method

public TreeNT ( Creator nodeCreator, Matcher toMatch ) : bool
nodeCreator Creator
toMatch Matcher
return bool

TreeNT() public method

public TreeNT ( Creator nodeCreator, int nRuleId, Matcher toMatch ) : bool
nodeCreator Creator
nRuleId int
toMatch Matcher
return bool

TreeNT() public method

public TreeNT ( Matcher toMatch ) : bool
toMatch Matcher
return bool

TreeNT() public method

public TreeNT ( int nRuleId, Matcher toMatch ) : bool
nRuleId int
toMatch Matcher
return bool

TreeNodeToString() public method

public TreeNodeToString ( PegNode node ) : string
node PegNode
return string

Property Details

bMute_ protected property

protected bool bMute_
return bool

errOut_ protected property

protected TextWriter,System.IO errOut_
return System.IO.TextWriter

nodeCreator_ protected property

protected Creator nodeCreator_
return Creator

pos_ protected property

protected int pos_
return int

srcLen_ protected property

protected int srcLen_
return int