C# Класс Peg.Base.PegBaseParser

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
bMute_ bool
errOut_ System.IO.TextWriter
nodeCreator_ Creator
pos_ int
srcLen_ int

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
DefaultNodeCreator ( ECreatorPhase phase, PegNode parentOrCreated, int id ) : PegNode

Описание методов

AddTreeNode() публичный Метод

public AddTreeNode ( int nId, PegTree newAddPolicy, Creator createNode, ECreatorPhase ePhase ) : void
nId int
newAddPolicy PegTree
createNode Creator
ePhase ECreatorPhase
Результат void

And() публичный Метод

public And ( Matcher pegSequence ) : bool
pegSequence Matcher
Результат bool

Any() публичный Метод

public Any ( ) : bool
Результат bool

Construct() публичный Метод

public Construct ( TextWriter Fout ) : void
Fout System.IO.TextWriter
Результат void

DefaultNodeCreator() защищенный Метод

protected DefaultNodeCreator ( ECreatorPhase phase, PegNode parentOrCreated, int id ) : PegNode
phase ECreatorPhase
parentOrCreated PegNode
id int
Результат PegNode

ForRepeat() публичный Метод

public ForRepeat ( int count, Matcher toRepeat ) : bool
count int
toRepeat Matcher
Результат bool

ForRepeat() публичный Метод

public ForRepeat ( int lower, int upper, Matcher toRepeat ) : bool
lower int
upper int
toRepeat Matcher
Результат bool

GetProperties() публичный Метод

public GetProperties ( EncodingClass &encoding, UnicodeDetection &detection ) : void
encoding EncodingClass
detection UnicodeDetection
Результат void

GetRoot() публичный Метод

public GetRoot ( ) : PegNode
Результат PegNode

GetRuleNameFromId() публичный Метод

public GetRuleNameFromId ( int id ) : string
id int
Результат string

Not() публичный Метод

public Not ( Matcher toMatch ) : bool
toMatch Matcher
Результат bool

OptRepeat() публичный Метод

public OptRepeat ( Matcher toRepeat ) : bool
toRepeat Matcher
Результат bool

Option() публичный Метод

public Option ( Matcher toMatch ) : bool
toMatch Matcher
Результат bool

Peek() публичный Метод

public Peek ( Matcher toMatch ) : bool
toMatch Matcher
Результат bool

PegBaseParser() публичный Метод

public PegBaseParser ( TextWriter errOut ) : System
errOut System.IO.TextWriter
Результат System

PlusRepeat() публичный Метод

public PlusRepeat ( Matcher toRepeat ) : bool
toRepeat Matcher
Результат bool

ResetTree() публичный Метод

public ResetTree ( ) : void
Результат void

RestoreTree() публичный Метод

public RestoreTree ( PegNode prevCur, PegTree prevPolicy ) : void
prevCur PegNode
prevPolicy PegTree
Результат void

Rewind() публичный Метод

public Rewind ( ) : void
Результат void

SetErrorDestination() публичный Метод

public SetErrorDestination ( TextWriter errOut ) : void
errOut System.IO.TextWriter
Результат void

SetNodeCreator() публичный Метод

public SetNodeCreator ( Creator nodeCreator ) : void
nodeCreator Creator
Результат void

TreeAST() публичный Метод

public TreeAST ( Creator nodeCreator, Matcher toMatch ) : bool
nodeCreator Creator
toMatch Matcher
Результат bool

TreeAST() публичный Метод

public TreeAST ( Creator nodeCreator, int nRuleId, Matcher toMatch ) : bool
nodeCreator Creator
nRuleId int
toMatch Matcher
Результат bool

TreeAST() публичный Метод

public TreeAST ( Matcher toMatch ) : bool
toMatch Matcher
Результат bool

TreeAST() публичный Метод

public TreeAST ( int nRuleId, Matcher toMatch ) : bool
nRuleId int
toMatch Matcher
Результат bool

TreeChars() публичный Метод

public TreeChars ( Creator nodeCreator, Matcher toMatch ) : bool
nodeCreator Creator
toMatch Matcher
Результат bool

TreeChars() публичный Метод

public TreeChars ( Matcher toMatch ) : bool
toMatch Matcher
Результат bool

TreeCharsWithId() публичный Метод

public TreeCharsWithId ( Creator nodeCreator, int nId, Matcher toMatch ) : bool
nodeCreator Creator
nId int
toMatch Matcher
Результат bool

TreeCharsWithId() публичный Метод

public TreeCharsWithId ( int nId, Matcher toMatch ) : bool
nId int
toMatch Matcher
Результат bool

TreeNT() публичный Метод

public TreeNT ( Creator nodeCreator, Matcher toMatch ) : bool
nodeCreator Creator
toMatch Matcher
Результат bool

TreeNT() публичный Метод

public TreeNT ( Creator nodeCreator, int nRuleId, Matcher toMatch ) : bool
nodeCreator Creator
nRuleId int
toMatch Matcher
Результат bool

TreeNT() публичный Метод

public TreeNT ( Matcher toMatch ) : bool
toMatch Matcher
Результат bool

TreeNT() публичный Метод

public TreeNT ( int nRuleId, Matcher toMatch ) : bool
nRuleId int
toMatch Matcher
Результат bool

TreeNodeToString() публичный Метод

public TreeNodeToString ( PegNode node ) : string
node PegNode
Результат string

Описание свойств

bMute_ защищенное свойство

protected bool bMute_
Результат bool

errOut_ защищенное свойство

protected TextWriter,System.IO errOut_
Результат System.IO.TextWriter

nodeCreator_ защищенное свойство

protected Creator nodeCreator_
Результат Creator

pos_ защищенное свойство

protected int pos_
Результат int

srcLen_ защищенное свойство

protected int srcLen_
Результат int