C# Class Loyc.LLParserGenerator.LlpgHelpers

Helper methods for making LLLPG grammar nodes. Used by LlpgCoreTests.
Mostrar archivo Open project: qwertie/ecsharp

Protected Properties

Property Type Description
F Loyc.Syntax.LNodeFactory
Private Symbol
Start Symbol
Token Symbol

Protected Methods

Method Description
AddSet ( string varName, Pred pred ) : Pred
And ( LNode test ) : AndPred
And ( Pred test ) : AndPred
And ( string ident ) : AndPred
AndNot ( LNode test ) : AndPred
AndNot ( Pred test ) : AndPred
AndNot ( string ident ) : AndPred
C ( char ch ) : TerminalPred
Call ( Rule rule ) : RuleRef
Cs ( ) : TerminalPred
Expr ( string code ) : LNode
Gate ( Pred predictor, Pred match ) : Gate
Id ( ) : TerminalPred
Id ( string s ) : TerminalPred
Lit ( ) : TerminalPred
Lit ( object s ) : TerminalPred
NotId ( ) : TerminalPred
NotSym ( ) : TerminalPred
Opt ( Pred contents, bool greedy = null ) : Alts
Plus ( Pred contents, bool greedy = null ) : Seq
R ( char lo, char hi ) : TerminalPred
Rule ( string name, Pred contents, Symbol mode = null, int k ) : Rule
Seq ( ) : Seq
Seq ( string s ) : Seq
Set ( string varName, Pred pred ) : Pred
Set ( string set ) : TerminalPred
SetVar ( string varName, Pred pred ) : Pred
Star ( Pred contents, bool greedy = null ) : Alts
Stmt ( string code ) : LNode
Sym ( ) : TerminalPred
Sym ( string s ) : TerminalPred
_ ( string symbol ) : Symbol

Method Details

AddSet() protected static method

protected static AddSet ( string varName, Pred pred ) : Pred
varName string
pred Pred
return Pred

And() protected static method

protected static And ( LNode test ) : AndPred
test LNode
return AndPred

And() protected static method

protected static And ( Pred test ) : AndPred
test Pred
return AndPred

And() protected static method

protected static And ( string ident ) : AndPred
ident string
return AndPred

AndNot() protected static method

protected static AndNot ( LNode test ) : AndPred
test LNode
return AndPred

AndNot() protected static method

protected static AndNot ( Pred test ) : AndPred
test Pred
return AndPred

AndNot() protected static method

protected static AndNot ( string ident ) : AndPred
ident string
return AndPred

C() protected static method

protected static C ( char ch ) : TerminalPred
ch char
return TerminalPred

Call() protected static method

protected static Call ( Rule rule ) : RuleRef
rule Rule
return RuleRef

Cs() protected static method

protected static Cs ( ) : TerminalPred
return TerminalPred

Expr() protected static method

protected static Expr ( string code ) : LNode
code string
return LNode

Gate() protected static method

protected static Gate ( Pred predictor, Pred match ) : Gate
predictor Pred
match Pred
return Gate

Id() protected static method

protected static Id ( ) : TerminalPred
return TerminalPred

Id() protected static method

protected static Id ( string s ) : TerminalPred
s string
return TerminalPred

Lit() protected static method

protected static Lit ( ) : TerminalPred
return TerminalPred

Lit() protected static method

protected static Lit ( object s ) : TerminalPred
s object
return TerminalPred

NotId() protected static method

protected static NotId ( ) : TerminalPred
return TerminalPred

NotSym() protected static method

protected static NotSym ( ) : TerminalPred
return TerminalPred

Opt() protected static method

protected static Opt ( Pred contents, bool greedy = null ) : Alts
contents Pred
greedy bool
return Alts

Plus() protected static method

protected static Plus ( Pred contents, bool greedy = null ) : Seq
contents Pred
greedy bool
return Seq

R() protected static method

protected static R ( char lo, char hi ) : TerminalPred
lo char
hi char
return TerminalPred

Rule() protected static method

protected static Rule ( string name, Pred contents, Symbol mode = null, int k ) : Rule
name string
contents Pred
mode Symbol
k int
return Rule

Seq() protected method

protected Seq ( ) : Seq
return Seq

Seq() protected static method

protected static Seq ( string s ) : Seq
s string
return Seq

Set() protected static method

protected static Set ( string varName, Pred pred ) : Pred
varName string
pred Pred
return Pred

Set() protected static method

protected static Set ( string set ) : TerminalPred
set string
return TerminalPred

SetVar() protected static method

protected static SetVar ( string varName, Pred pred ) : Pred
varName string
pred Pred
return Pred

Star() protected static method

protected static Star ( Pred contents, bool greedy = null ) : Alts
contents Pred
greedy bool
return Alts

Stmt() protected static method

protected static Stmt ( string code ) : LNode
code string
return LNode

Sym() protected static method

protected static Sym ( ) : TerminalPred
return TerminalPred

Sym() protected static method

protected static Sym ( string s ) : TerminalPred
s string
return TerminalPred

_() protected static method

protected static _ ( string symbol ) : Symbol
symbol string
return Symbol

Property Details

F protected_oe static_oe property

protected static LNodeFactory,Loyc.Syntax F
return Loyc.Syntax.LNodeFactory

Private protected_oe static_oe property

protected static Symbol Private
return Symbol

Start protected_oe static_oe property

protected static Symbol Start
return Symbol

Token protected_oe static_oe property

protected static Symbol Token
return Symbol