C# 클래스 Loyc.LLParserGenerator.Rule

Represents an LLLPG rule, which is a Predicate plus a Name and optional attributes (e.g. token, private, etc.).
파일 보기 프로젝트 열기: qwertie/ecsharp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Basis LNode
EndOfRule EndOfRule
FullLLk bool?
IsExternal bool
IsPrivate bool?
IsRecognizer bool
IsToken bool
K int
Name Symbol
Pred Pred
ReturnType LNode
TryWrapperName LNode
_recognizer Rule

공개 메소드들

메소드 설명
CreateMethod ( VList methodBody ) : LNode

Creates the default method definition to wrap around the body of the rule, which has already been generated. Returns Basis with the specified new method body. If Basis is null, a simple default method signature is used, e.g. public void R() {...} where R is the rule name.

GetMethodSignature ( ) : LNode

Returns Basis if it's a method signature; otherwise constructs a default signature.

MakeRecognizerVersion ( ) : Rule
MakeRecognizerVersion ( LNode prototype ) : Rule
MakeRecognizerVersion ( Symbol newName ) : Rule
Rule ( LNode basis, Symbol name, Pred pred, bool isStartingRule = true ) : System
ToString ( ) : string
TryWrapperNeeded ( ) : void
operator ( ) : Alts
operator ( ) : Pred

비공개 메소드들

메소드 설명
MakeRecognizerVersion ( LNode prototype, Symbol newName ) : Rule

메소드 상세

CreateMethod() 공개 메소드

Creates the default method definition to wrap around the body of the rule, which has already been generated. Returns Basis with the specified new method body. If Basis is null, a simple default method signature is used, e.g. public void R() {...} where R is the rule name.
public CreateMethod ( VList methodBody ) : LNode
methodBody VList The parsing code that was generated for this rule.
리턴 LNode

GetMethodSignature() 공개 메소드

Returns Basis if it's a method signature; otherwise constructs a default signature.
public GetMethodSignature ( ) : LNode
리턴 LNode

MakeRecognizerVersion() 공개 메소드

public MakeRecognizerVersion ( ) : Rule
리턴 Rule

MakeRecognizerVersion() 공개 메소드

public MakeRecognizerVersion ( LNode prototype ) : Rule
prototype LNode
리턴 Rule

MakeRecognizerVersion() 공개 메소드

public MakeRecognizerVersion ( Symbol newName ) : Rule
newName Symbol
리턴 Rule

Rule() 공개 메소드

public Rule ( LNode basis, Symbol name, Pred pred, bool isStartingRule = true ) : System
basis LNode
name Symbol
pred Pred
isStartingRule bool
리턴 System

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

TryWrapperNeeded() 공개 메소드

public TryWrapperNeeded ( ) : void
리턴 void

operator() 공개 정적인 메소드

public static operator ( ) : Alts
리턴 Alts

operator() 공개 정적인 메소드

public static operator ( ) : Pred
리턴 Pred

프로퍼티 상세

Basis 공개적으로 프로퍼티

A node that contains the original code of the rule, or, if the rule was created programmatically, the method prototype (e.g. #fn(int, Rule, #(#var(int, arg))), which means int Rule(int arg)). This can be null, in which case the default prototype is void Rule();, or if the rule is a starting rule or token, public void Rule();.
The Basis is also used to provide an error location.
public LNode Basis
리턴 LNode

EndOfRule 공개적으로 프로퍼티

public EndOfRule EndOfRule
리턴 EndOfRule

FullLLk 공개적으로 프로퍼티

public bool? FullLLk
리턴 bool?

IsExternal 공개적으로 프로퍼티

public bool IsExternal
리턴 bool

IsPrivate 공개적으로 프로퍼티

public bool? IsPrivate
리턴 bool?

IsRecognizer 공개적으로 프로퍼티

public bool IsRecognizer
리턴 bool

IsToken 공개적으로 프로퍼티

public bool IsToken
리턴 bool

K 공개적으로 프로퍼티

public int K
리턴 int

Name 공개적으로 프로퍼티

public Symbol Name
리턴 Symbol

Pred 공개적으로 프로퍼티

public Pred Pred
리턴 Pred

ReturnType 공개적으로 프로퍼티

public LNode ReturnType
리턴 LNode

TryWrapperName 공개적으로 프로퍼티

public LNode TryWrapperName
리턴 LNode

_recognizer 공개적으로 프로퍼티

public Rule,Loyc.LLParserGenerator _recognizer
리턴 Rule