C# 클래스 Antlr3.Tool.Grammar

파일 보기 프로젝트 열기: antlr/antlrcs 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
AntlrLiteralCharValueEscape string[]
AntlrLiteralEscapedCharValue int[]
DFACreationWallClockTimeInMS System.TimeSpan
LabelTypeToString string[]
atLeastOneBacktrackOption bool
atLeastOneRuleMemoizes bool
blocksWithSemPreds HashSet
blocksWithSynPreds HashSet
composite Antlr3.Tool.CompositeGrammar
compositeTreeNode Antlr3.Tool.CompositeGrammarTree
decisionsWhoseDFAsUsesSemPreds HashSet
decisionsWhoseDFAsUsesSynPreds HashSet
defaultBlockOptions object>.IDictionary
defaultLexerBlockOptions object>.IDictionary
defaultOptions object>.IDictionary
doNotCopyOptionsToLexer HashSet
grammarTypeToFileNameSuffix string[]
grammarTypeToString string[]
implicitLexer bool
label string
legalBlockOptions HashSet
legalLexerOptions HashSet
legalParserOptions HashSet
legalTokenOptions HashSet
legalTreeParserOptions HashSet
lexerRuleNamesInCombined IList
ll1Analyzer Antlr3.Analysis.LL1Analyzer
name string
nameSpaceChecker Antlr3.Tool.NameSpaceChecker
nfa Antlr3.Analysis.NFA
numNonLLStar int
numberOfManualLookaheadOptions int
numberOfSemanticPredicates int
overriddenRules HashSet
precRuleInitCodeBlocks List
setOfNondeterministicDecisionNumbers HashSet
setOfNondeterministicDecisionNumbersResolvedWithPredicates HashSet
synPredNamesUsedInDFA HashSet
type GrammarType
validDelegations GrammarType>.MultiMap

보호된 프로퍼티들

프로퍼티 타입 설명
allDecisionDFACreated bool
builtFromString bool
charVocabulary Interval?
decisionCount int
delegatedRuleReferences HashSet
externalAnalysisAbort bool
factory Antlr3.Tool.NFAFactory
fileName string
generator Antlr3.Codegen.CodeGenerator
global_k int
grammarTree Antlr3.Tool.GrammarAST
indexToDecision List
leftRecursiveRules HashSet
nameToRuleMap Rule>.SortedList
nameToSynpredASTMap GrammarAST>>.List
options object>.IDictionary
ruleRefs HashSet
scopedRuleRefs HashSet
scopes AttributeScope>.IDictionary
tokenIDRefs HashSet

Private Properties

프로퍼티 타입 설명
GetArtificialRulesForSyntacticPredicates IList
GetSetFromRule IIntSet
Grammar System.Collections.Generic
IsValidSet bool
UpdateLineColumnToLookaheadDFAMap void

공개 메소드들

메소드 설명
AddArtificialMatchTokensRule ( Antlr3.Tool.GrammarAST grammarAST, IList ruleNames, IList delegateNames, bool filterMode ) : Antlr3.Tool.GrammarAST
AddRule ( Antlr3.Tool.GrammarAST grammarTree, Antlr3.Tool.GrammarAST t ) : void
AddRulesForSyntacticPredicates ( ) : void
AltReferencesRule ( string enclosingRuleName, Antlr3.Tool.GrammarAST refScopeAST, Antlr3.Tool.GrammarAST refAST, int outerAltNum ) : void
AltReferencesTokenID ( string ruleName, Antlr3.Tool.GrammarAST refAST, int outerAltNum ) : void
AssignDecisionNumber ( Antlr3.Analysis.NFAState state ) : int
BuildNFA ( ) : void
CheckAllRulesForLeftRecursion ( ) : IList>
CheckAllRulesForUselessLabels ( ) : void
CheckNameSpaceAndActions ( ) : void
CheckRuleReference ( Antlr3.Tool.GrammarAST scopeAST, Antlr3.Tool.GrammarAST refAST, Antlr3.Tool.GrammarAST argsAST, string currentRuleName ) : void
Complement ( IIntSet set ) : IIntSet
Complement ( int atom ) : IIntSet
ComputeRuleFOLLOWSets ( ) : void
ComputeTokenNameFromLiteral ( int tokenType, string literal ) : string
CreateLL_1_LookaheadDFA ( int decision ) : Antlr3.Analysis.DFA
CreateLookaheadDFA ( int decision, bool wackTempStructures ) : Antlr3.Analysis.DFA
CreateLookaheadDFAs ( ) : void
CreateLookaheadDFAs ( bool wackTempStructures ) : void
CreateParameterScope ( string ruleName, Antlr.Runtime.IToken argAction ) : Antlr3.Tool.AttributeScope
CreateReturnScope ( string ruleName, Antlr.Runtime.IToken retAction ) : Antlr3.Tool.AttributeScope
CreateRuleScope ( string ruleName, Antlr.Runtime.IToken scopeAction ) : Antlr3.Tool.AttributeScope
CreateRuleStartAndStopNFAStates ( ) : void
DefineGlobalScope ( string name, Antlr.Runtime.IToken scopeAction ) : Antlr3.Tool.AttributeScope
DefineGrammarSymbols ( ) : void
DefineLexerRuleForAliasedStringLiteral ( string tokenID, string literal, int tokenType ) : void
DefineLexerRuleForStringLiteral ( string literal, int tokenType ) : void
DefineLexerRuleFoundInParser ( Antlr.Runtime.IToken ruleToken, Antlr3.Tool.GrammarAST ruleAST ) : void
DefineNamedAction ( Antlr3.Tool.GrammarAST ampersandAST, string scope, Antlr3.Tool.GrammarAST nameAST, Antlr3.Tool.GrammarAST actionAST ) : void
DefineRule ( Antlr.Runtime.IToken ruleToken, string modifier, object>.IDictionary options, Antlr3.Tool.GrammarAST tree, Antlr3.Tool.GrammarAST argActionAST, int numAlts ) : void
DefineRuleListLabel ( string ruleName, Antlr.Runtime.IToken label, Antlr3.Tool.GrammarAST element ) : void
DefineRuleRefLabel ( string ruleName, Antlr.Runtime.IToken label, Antlr3.Tool.GrammarAST ruleRef ) : void
DefineSyntacticPredicate ( Antlr3.Tool.GrammarAST blockAST, string currentRuleName ) : string
DefineToken ( string text, int tokenType ) : void
DefineTokenListLabel ( string ruleName, Antlr.Runtime.IToken label, Antlr3.Tool.GrammarAST element ) : void
DefineTokenRefLabel ( string ruleName, Antlr.Runtime.IToken label, Antlr3.Tool.GrammarAST tokenRef ) : void
DefineWildcardTreeLabel ( string ruleName, Antlr.Runtime.IToken label, Antlr3.Tool.GrammarAST tokenRef ) : void
DefineWildcardTreeListLabel ( string ruleName, Antlr.Runtime.IToken label, Antlr3.Tool.GrammarAST tokenRef ) : void
ExternallyAbortNFAToDFAConversion ( ) : void
First ( Antlr3.Analysis.NFAState s ) : Antlr3.Analysis.LookaheadSet
GenerateMethodForRule ( string ruleName ) : bool
GetANTLRCharLiteralForChar ( int c ) : string
GetAllImportedRules ( ) : HashSet
GetAutoBacktrackMode ( int decision ) : bool
GetBlockOption ( Antlr3.Tool.GrammarAST blockAST, string key ) : object
GetCharValueFromGrammarCharLiteral ( string literal ) : int
GetDecisionBlockAST ( int decision ) : Antlr3.Tool.GrammarAST
GetDecisionNFAStartState ( int decision ) : Antlr3.Analysis.NFAState
GetDecisionNFAStartStateList ( ) : IList
GetDecisionOptions ( int decision ) : IDictionary
GetDefaultActionScope ( GrammarType grammarType ) : string
GetDelegateNames ( ) : IList
GetDelegatedRuleReferences ( ) : HashSet
GetDelegatedRules ( ) : HashSet
GetDelegates ( ) : IList
GetDelegators ( ) : IList
GetDirectDelegates ( ) : IList
GetGlobalScope ( string name ) : Antlr3.Tool.AttributeScope
GetGrammarMaxLookahead ( ) : int
GetIndirectDelegates ( ) : IList
GetLabels ( HashSet rewriteElements, LabelType labelType ) : HashSet
GetLeftRecursiveRules ( ) : HashSet
GetLexerGrammar ( ) : string
GetLocallyDefinedOption ( string key ) : object
GetLocallyDefinedRule ( string ruleName ) : Antlr3.Tool.Rule
GetLookaheadDFA ( int decision ) : Antlr3.Analysis.DFA
GetLookaheadDFAColumnsForLineInFile ( int line ) : IList
GetLookaheadDFAFromPositionInFile ( int line, int col ) : Antlr3.Analysis.DFA
GetNFAStateForAltOfDecision ( Antlr3.Analysis.NFAState decisionState, int alt ) : Antlr3.Analysis.NFAState
GetNewTokenType ( ) : int
GetNumberOfAltsForDecisionNFA ( Antlr3.Analysis.NFAState decisionState ) : int
GetNumberOfCyclicDecisions ( ) : int
GetOption ( string key ) : object
GetRecognizerName ( ) : string
GetRule ( string ruleName ) : Antlr3.Tool.Rule
GetRule ( string scopeName, string ruleName ) : Antlr3.Tool.Rule
GetRuleIndex ( string ruleName ) : int
GetRuleIndex ( string scopeName, string ruleName ) : int
GetRuleModifier ( string ruleName ) : string
GetRuleName ( int ruleIndex ) : string
GetRuleStartState ( string ruleName ) : Antlr3.Analysis.NFAState
GetRuleStartState ( string scopeName, string ruleName ) : Antlr3.Analysis.NFAState
GetRuleStopState ( string ruleName ) : Antlr3.Analysis.NFAState
GetSyntacticPredicate ( string name ) : Antlr3.Tool.GrammarAST
GetTokenDisplayName ( int ttype ) : string
GetTokenDisplayNames ( ) : HashSet
GetTokenType ( string tokenName ) : int
GetTokenTypesWithoutID ( ) : ICollection
GetUnescapedStringFromGrammarStringLiteral ( string literal ) : System.Text.StringBuilder
GetUserMaxLookahead ( int decision ) : int
Grammar ( Antlr3.AntlrTool tool ) : System.Collections.Generic
Grammar ( Antlr3.AntlrTool tool, string grammarString ) : System.Collections.Generic
Grammar ( Antlr3.AntlrTool tool, string fileName, Antlr3.Tool.CompositeGrammar composite ) : System.Collections.Generic
Grammar ( string grammarString ) : System.Collections.Generic
GrammarTreeToString ( Antlr3.Tool.GrammarAST t ) : string
GrammarTreeToString ( Antlr3.Tool.GrammarAST t, bool showActions ) : string
ImportGrammar ( Antlr.Runtime.IToken grammarNameToken, string label ) : void
ImportTokenVocabulary ( Grammar importFromGr ) : int
ImportTokenVocabulary ( Antlr3.Tool.GrammarAST tokenVocabOptionAST, string vocabName ) : int
IsAtomTokenType ( int ttype ) : bool
IsEmptyRule ( Antlr3.Tool.GrammarAST block ) : bool
LegalOption ( string key ) : bool
Look ( Antlr3.Analysis.NFAState s ) : Antlr3.Analysis.LookaheadSet
NFAToDFAConversionExternallyAborted ( ) : bool
OptionIsValid ( string key, object value ) : bool
ParseAndBuildAST ( ) : void
ParseAndBuildAST ( System.IO.TextReader r ) : void
ParseArtificialRule ( string ruleText ) : Antlr3.Tool.GrammarAST
PrintGrammar ( System.IO.TextWriter output ) : void
ReferenceRuleLabelPredefinedAttribute ( string ruleName ) : void
SetDecisionBlockAST ( int decision, Antlr3.Tool.GrammarAST blockAST ) : void
SetDecisionNFA ( int decision, Antlr3.Analysis.NFAState state ) : void
SetDecisionOption ( int decision, string name, object value ) : void
SetDecisionOptions ( int decision, IDictionary options ) : void
SetGrammarContent ( string grammarString ) : void
SetLookaheadDFA ( int decision, Antlr3.Analysis.DFA lookaheadDFA ) : void
SetName ( string name ) : void
SetOption ( string key, object value, Antlr.Runtime.IToken optionsStartToken ) : string
SetOptions ( object>.IDictionary options, Antlr.Runtime.IToken optionsStartToken ) : void
SetRuleAST ( string ruleName, Antlr3.Tool.GrammarAST t ) : void
SetSynPredGateIfNotAlready ( Antlr4.StringTemplate.Template gateST ) : void
SynPredUsedInDFA ( Antlr3.Analysis.DFA dfa, Antlr3.Analysis.SemanticContext semCtx ) : void
ToString ( ) : string
TranslateLeftRecursiveRule ( Antlr3.Tool.GrammarAST ruleAST ) : void
ValidImport ( Grammar @delegate ) : bool

보호된 메소드들

메소드 설명
AddDelegateGrammar ( Grammar delegateGrammar ) : void
CreateDecision ( int decision ) : Decision
DealWithTreeFilterMode ( ) : void
DefineLabel ( Antlr3.Tool.Rule r, Antlr.Runtime.IToken label, Antlr3.Tool.GrammarAST element, LabelType type ) : void
ExamineAllExecutableActions ( ) : void
FindFirstTypeOutsideRewrite ( Antlr3.Tool.GrammarAST block, BitSet types ) : Antlr3.Tool.GrammarAST
GetDecision ( int decision ) : Decision
MakeEdgeSetsDisjoint ( IList edges ) : IList
ProcessOptions ( ) : void
RemoveUselessLabels ( LabelElementPair>.IDictionary ruleToElementLabelPairMap ) : void

비공개 메소드들

메소드 설명
GetArtificialRulesForSyntacticPredicates ( GrammarAST>.IEnumerable nameToSynpredASTMap ) : IList
GetSetFromRule ( Antlr3.Grammars.TreeToNFAConverter nfabuilder, string ruleName ) : IIntSet
Grammar ( ) : System.Collections.Generic
IsValidSet ( Antlr3.Grammars.TreeToNFAConverter nfabuilder, Antlr3.Tool.GrammarAST t ) : bool
UpdateLineColumnToLookaheadDFAMap ( Antlr3.Analysis.DFA lookaheadDFA ) : void

메소드 상세

AddArtificialMatchTokensRule() 공개 메소드

public AddArtificialMatchTokensRule ( Antlr3.Tool.GrammarAST grammarAST, IList ruleNames, IList delegateNames, bool filterMode ) : Antlr3.Tool.GrammarAST
grammarAST Antlr3.Tool.GrammarAST
ruleNames IList
delegateNames IList
filterMode bool
리턴 Antlr3.Tool.GrammarAST

AddDelegateGrammar() 보호된 메소드

protected AddDelegateGrammar ( Grammar delegateGrammar ) : void
delegateGrammar Grammar
리턴 void

AddRule() 공개 메소드

public AddRule ( Antlr3.Tool.GrammarAST grammarTree, Antlr3.Tool.GrammarAST t ) : void
grammarTree Antlr3.Tool.GrammarAST
t Antlr3.Tool.GrammarAST
리턴 void

AddRulesForSyntacticPredicates() 공개 메소드

public AddRulesForSyntacticPredicates ( ) : void
리턴 void

AltReferencesRule() 공개 메소드

public AltReferencesRule ( string enclosingRuleName, Antlr3.Tool.GrammarAST refScopeAST, Antlr3.Tool.GrammarAST refAST, int outerAltNum ) : void
enclosingRuleName string
refScopeAST Antlr3.Tool.GrammarAST
refAST Antlr3.Tool.GrammarAST
outerAltNum int
리턴 void

AltReferencesTokenID() 공개 메소드

public AltReferencesTokenID ( string ruleName, Antlr3.Tool.GrammarAST refAST, int outerAltNum ) : void
ruleName string
refAST Antlr3.Tool.GrammarAST
outerAltNum int
리턴 void

AssignDecisionNumber() 공개 메소드

public AssignDecisionNumber ( Antlr3.Analysis.NFAState state ) : int
state Antlr3.Analysis.NFAState
리턴 int

BuildNFA() 공개 메소드

public BuildNFA ( ) : void
리턴 void

CheckAllRulesForLeftRecursion() 공개 메소드

public CheckAllRulesForLeftRecursion ( ) : IList>
리턴 IList>

CheckAllRulesForUselessLabels() 공개 메소드

public CheckAllRulesForUselessLabels ( ) : void
리턴 void

CheckNameSpaceAndActions() 공개 메소드

public CheckNameSpaceAndActions ( ) : void
리턴 void

CheckRuleReference() 공개 메소드

public CheckRuleReference ( Antlr3.Tool.GrammarAST scopeAST, Antlr3.Tool.GrammarAST refAST, Antlr3.Tool.GrammarAST argsAST, string currentRuleName ) : void
scopeAST Antlr3.Tool.GrammarAST
refAST Antlr3.Tool.GrammarAST
argsAST Antlr3.Tool.GrammarAST
currentRuleName string
리턴 void

Complement() 공개 메소드

public Complement ( IIntSet set ) : IIntSet
set IIntSet
리턴 IIntSet

Complement() 공개 메소드

public Complement ( int atom ) : IIntSet
atom int
리턴 IIntSet

ComputeRuleFOLLOWSets() 공개 메소드

public ComputeRuleFOLLOWSets ( ) : void
리턴 void

ComputeTokenNameFromLiteral() 공개 메소드

public ComputeTokenNameFromLiteral ( int tokenType, string literal ) : string
tokenType int
literal string
리턴 string

CreateDecision() 보호된 메소드

protected CreateDecision ( int decision ) : Decision
decision int
리턴 Decision

CreateLL_1_LookaheadDFA() 공개 메소드

public CreateLL_1_LookaheadDFA ( int decision ) : Antlr3.Analysis.DFA
decision int
리턴 Antlr3.Analysis.DFA

CreateLookaheadDFA() 공개 메소드

public CreateLookaheadDFA ( int decision, bool wackTempStructures ) : Antlr3.Analysis.DFA
decision int
wackTempStructures bool
리턴 Antlr3.Analysis.DFA

CreateLookaheadDFAs() 공개 메소드

public CreateLookaheadDFAs ( ) : void
리턴 void

CreateLookaheadDFAs() 공개 메소드

public CreateLookaheadDFAs ( bool wackTempStructures ) : void
wackTempStructures bool
리턴 void

CreateParameterScope() 공개 메소드

public CreateParameterScope ( string ruleName, Antlr.Runtime.IToken argAction ) : Antlr3.Tool.AttributeScope
ruleName string
argAction Antlr.Runtime.IToken
리턴 Antlr3.Tool.AttributeScope

CreateReturnScope() 공개 메소드

public CreateReturnScope ( string ruleName, Antlr.Runtime.IToken retAction ) : Antlr3.Tool.AttributeScope
ruleName string
retAction Antlr.Runtime.IToken
리턴 Antlr3.Tool.AttributeScope

CreateRuleScope() 공개 메소드

public CreateRuleScope ( string ruleName, Antlr.Runtime.IToken scopeAction ) : Antlr3.Tool.AttributeScope
ruleName string
scopeAction Antlr.Runtime.IToken
리턴 Antlr3.Tool.AttributeScope

CreateRuleStartAndStopNFAStates() 공개 메소드

public CreateRuleStartAndStopNFAStates ( ) : void
리턴 void

DealWithTreeFilterMode() 보호된 메소드

protected DealWithTreeFilterMode ( ) : void
리턴 void

DefineGlobalScope() 공개 메소드

public DefineGlobalScope ( string name, Antlr.Runtime.IToken scopeAction ) : Antlr3.Tool.AttributeScope
name string
scopeAction Antlr.Runtime.IToken
리턴 Antlr3.Tool.AttributeScope

DefineGrammarSymbols() 공개 메소드

public DefineGrammarSymbols ( ) : void
리턴 void

DefineLabel() 보호된 메소드

protected DefineLabel ( Antlr3.Tool.Rule r, Antlr.Runtime.IToken label, Antlr3.Tool.GrammarAST element, LabelType type ) : void
r Antlr3.Tool.Rule
label Antlr.Runtime.IToken
element Antlr3.Tool.GrammarAST
type LabelType
리턴 void

DefineLexerRuleForAliasedStringLiteral() 공개 메소드

public DefineLexerRuleForAliasedStringLiteral ( string tokenID, string literal, int tokenType ) : void
tokenID string
literal string
tokenType int
리턴 void

DefineLexerRuleForStringLiteral() 공개 메소드

public DefineLexerRuleForStringLiteral ( string literal, int tokenType ) : void
literal string
tokenType int
리턴 void

DefineLexerRuleFoundInParser() 공개 메소드

public DefineLexerRuleFoundInParser ( Antlr.Runtime.IToken ruleToken, Antlr3.Tool.GrammarAST ruleAST ) : void
ruleToken Antlr.Runtime.IToken
ruleAST Antlr3.Tool.GrammarAST
리턴 void

DefineNamedAction() 공개 메소드

public DefineNamedAction ( Antlr3.Tool.GrammarAST ampersandAST, string scope, Antlr3.Tool.GrammarAST nameAST, Antlr3.Tool.GrammarAST actionAST ) : void
ampersandAST Antlr3.Tool.GrammarAST
scope string
nameAST Antlr3.Tool.GrammarAST
actionAST Antlr3.Tool.GrammarAST
리턴 void

DefineRule() 공개 메소드

public DefineRule ( Antlr.Runtime.IToken ruleToken, string modifier, object>.IDictionary options, Antlr3.Tool.GrammarAST tree, Antlr3.Tool.GrammarAST argActionAST, int numAlts ) : void
ruleToken Antlr.Runtime.IToken
modifier string
options object>.IDictionary
tree Antlr3.Tool.GrammarAST
argActionAST Antlr3.Tool.GrammarAST
numAlts int
리턴 void

DefineRuleListLabel() 공개 메소드

public DefineRuleListLabel ( string ruleName, Antlr.Runtime.IToken label, Antlr3.Tool.GrammarAST element ) : void
ruleName string
label Antlr.Runtime.IToken
element Antlr3.Tool.GrammarAST
리턴 void

DefineRuleRefLabel() 공개 메소드

public DefineRuleRefLabel ( string ruleName, Antlr.Runtime.IToken label, Antlr3.Tool.GrammarAST ruleRef ) : void
ruleName string
label Antlr.Runtime.IToken
ruleRef Antlr3.Tool.GrammarAST
리턴 void

DefineSyntacticPredicate() 공개 메소드

public DefineSyntacticPredicate ( Antlr3.Tool.GrammarAST blockAST, string currentRuleName ) : string
blockAST Antlr3.Tool.GrammarAST
currentRuleName string
리턴 string

DefineToken() 공개 메소드

public DefineToken ( string text, int tokenType ) : void
text string
tokenType int
리턴 void

DefineTokenListLabel() 공개 메소드

public DefineTokenListLabel ( string ruleName, Antlr.Runtime.IToken label, Antlr3.Tool.GrammarAST element ) : void
ruleName string
label Antlr.Runtime.IToken
element Antlr3.Tool.GrammarAST
리턴 void

DefineTokenRefLabel() 공개 메소드

public DefineTokenRefLabel ( string ruleName, Antlr.Runtime.IToken label, Antlr3.Tool.GrammarAST tokenRef ) : void
ruleName string
label Antlr.Runtime.IToken
tokenRef Antlr3.Tool.GrammarAST
리턴 void

DefineWildcardTreeLabel() 공개 메소드

public DefineWildcardTreeLabel ( string ruleName, Antlr.Runtime.IToken label, Antlr3.Tool.GrammarAST tokenRef ) : void
ruleName string
label Antlr.Runtime.IToken
tokenRef Antlr3.Tool.GrammarAST
리턴 void

DefineWildcardTreeListLabel() 공개 메소드

public DefineWildcardTreeListLabel ( string ruleName, Antlr.Runtime.IToken label, Antlr3.Tool.GrammarAST tokenRef ) : void
ruleName string
label Antlr.Runtime.IToken
tokenRef Antlr3.Tool.GrammarAST
리턴 void

ExamineAllExecutableActions() 보호된 메소드

protected ExamineAllExecutableActions ( ) : void
리턴 void

ExternallyAbortNFAToDFAConversion() 공개 메소드

public ExternallyAbortNFAToDFAConversion ( ) : void
리턴 void

FindFirstTypeOutsideRewrite() 보호된 메소드

protected FindFirstTypeOutsideRewrite ( Antlr3.Tool.GrammarAST block, BitSet types ) : Antlr3.Tool.GrammarAST
block Antlr3.Tool.GrammarAST
types BitSet
리턴 Antlr3.Tool.GrammarAST

First() 공개 메소드

public First ( Antlr3.Analysis.NFAState s ) : Antlr3.Analysis.LookaheadSet
s Antlr3.Analysis.NFAState
리턴 Antlr3.Analysis.LookaheadSet

GenerateMethodForRule() 공개 메소드

public GenerateMethodForRule ( string ruleName ) : bool
ruleName string
리턴 bool

GetANTLRCharLiteralForChar() 공개 정적인 메소드

public static GetANTLRCharLiteralForChar ( int c ) : string
c int
리턴 string

GetAllImportedRules() 공개 메소드

public GetAllImportedRules ( ) : HashSet
리턴 HashSet

GetAutoBacktrackMode() 공개 메소드

public GetAutoBacktrackMode ( int decision ) : bool
decision int
리턴 bool

GetBlockOption() 공개 메소드

public GetBlockOption ( Antlr3.Tool.GrammarAST blockAST, string key ) : object
blockAST Antlr3.Tool.GrammarAST
key string
리턴 object

GetCharValueFromGrammarCharLiteral() 공개 정적인 메소드

public static GetCharValueFromGrammarCharLiteral ( string literal ) : int
literal string
리턴 int

GetDecision() 보호된 메소드

protected GetDecision ( int decision ) : Decision
decision int
리턴 Decision

GetDecisionBlockAST() 공개 메소드

public GetDecisionBlockAST ( int decision ) : Antlr3.Tool.GrammarAST
decision int
리턴 Antlr3.Tool.GrammarAST

GetDecisionNFAStartState() 공개 메소드

public GetDecisionNFAStartState ( int decision ) : Antlr3.Analysis.NFAState
decision int
리턴 Antlr3.Analysis.NFAState

GetDecisionNFAStartStateList() 공개 메소드

public GetDecisionNFAStartStateList ( ) : IList
리턴 IList

GetDecisionOptions() 공개 메소드

public GetDecisionOptions ( int decision ) : IDictionary
decision int
리턴 IDictionary

GetDefaultActionScope() 공개 메소드

public GetDefaultActionScope ( GrammarType grammarType ) : string
grammarType GrammarType
리턴 string

GetDelegateNames() 공개 메소드

public GetDelegateNames ( ) : IList
리턴 IList

GetDelegatedRuleReferences() 공개 메소드

public GetDelegatedRuleReferences ( ) : HashSet
리턴 HashSet

GetDelegatedRules() 공개 메소드

public GetDelegatedRules ( ) : HashSet
리턴 HashSet

GetDelegates() 공개 메소드

public GetDelegates ( ) : IList
리턴 IList

GetDelegators() 공개 메소드

public GetDelegators ( ) : IList
리턴 IList

GetDirectDelegates() 공개 메소드

public GetDirectDelegates ( ) : IList
리턴 IList

GetGlobalScope() 공개 메소드

public GetGlobalScope ( string name ) : Antlr3.Tool.AttributeScope
name string
리턴 Antlr3.Tool.AttributeScope

GetGrammarMaxLookahead() 공개 메소드

public GetGrammarMaxLookahead ( ) : int
리턴 int

GetIndirectDelegates() 공개 메소드

public GetIndirectDelegates ( ) : IList
리턴 IList

GetLabels() 공개 메소드

public GetLabels ( HashSet rewriteElements, LabelType labelType ) : HashSet
rewriteElements HashSet
labelType LabelType
리턴 HashSet

GetLeftRecursiveRules() 공개 메소드

public GetLeftRecursiveRules ( ) : HashSet
리턴 HashSet

GetLexerGrammar() 공개 메소드

public GetLexerGrammar ( ) : string
리턴 string

GetLocallyDefinedOption() 공개 메소드

public GetLocallyDefinedOption ( string key ) : object
key string
리턴 object

GetLocallyDefinedRule() 공개 메소드

public GetLocallyDefinedRule ( string ruleName ) : Antlr3.Tool.Rule
ruleName string
리턴 Antlr3.Tool.Rule

GetLookaheadDFA() 공개 메소드

public GetLookaheadDFA ( int decision ) : Antlr3.Analysis.DFA
decision int
리턴 Antlr3.Analysis.DFA

GetLookaheadDFAColumnsForLineInFile() 공개 메소드

public GetLookaheadDFAColumnsForLineInFile ( int line ) : IList
line int
리턴 IList

GetLookaheadDFAFromPositionInFile() 공개 메소드

public GetLookaheadDFAFromPositionInFile ( int line, int col ) : Antlr3.Analysis.DFA
line int
col int
리턴 Antlr3.Analysis.DFA

GetNFAStateForAltOfDecision() 공개 메소드

public GetNFAStateForAltOfDecision ( Antlr3.Analysis.NFAState decisionState, int alt ) : Antlr3.Analysis.NFAState
decisionState Antlr3.Analysis.NFAState
alt int
리턴 Antlr3.Analysis.NFAState

GetNewTokenType() 공개 메소드

public GetNewTokenType ( ) : int
리턴 int

GetNumberOfAltsForDecisionNFA() 공개 메소드

public GetNumberOfAltsForDecisionNFA ( Antlr3.Analysis.NFAState decisionState ) : int
decisionState Antlr3.Analysis.NFAState
리턴 int

GetNumberOfCyclicDecisions() 공개 메소드

public GetNumberOfCyclicDecisions ( ) : int
리턴 int

GetOption() 공개 메소드

public GetOption ( string key ) : object
key string
리턴 object

GetRecognizerName() 공개 메소드

public GetRecognizerName ( ) : string
리턴 string

GetRule() 공개 메소드

public GetRule ( string ruleName ) : Antlr3.Tool.Rule
ruleName string
리턴 Antlr3.Tool.Rule

GetRule() 공개 메소드

public GetRule ( string scopeName, string ruleName ) : Antlr3.Tool.Rule
scopeName string
ruleName string
리턴 Antlr3.Tool.Rule

GetRuleIndex() 공개 메소드

public GetRuleIndex ( string ruleName ) : int
ruleName string
리턴 int

GetRuleIndex() 공개 메소드

public GetRuleIndex ( string scopeName, string ruleName ) : int
scopeName string
ruleName string
리턴 int

GetRuleModifier() 공개 메소드

public GetRuleModifier ( string ruleName ) : string
ruleName string
리턴 string

GetRuleName() 공개 메소드

public GetRuleName ( int ruleIndex ) : string
ruleIndex int
리턴 string

GetRuleStartState() 공개 메소드

public GetRuleStartState ( string ruleName ) : Antlr3.Analysis.NFAState
ruleName string
리턴 Antlr3.Analysis.NFAState

GetRuleStartState() 공개 메소드

public GetRuleStartState ( string scopeName, string ruleName ) : Antlr3.Analysis.NFAState
scopeName string
ruleName string
리턴 Antlr3.Analysis.NFAState

GetRuleStopState() 공개 메소드

public GetRuleStopState ( string ruleName ) : Antlr3.Analysis.NFAState
ruleName string
리턴 Antlr3.Analysis.NFAState

GetSyntacticPredicate() 공개 메소드

public GetSyntacticPredicate ( string name ) : Antlr3.Tool.GrammarAST
name string
리턴 Antlr3.Tool.GrammarAST

GetTokenDisplayName() 공개 메소드

public GetTokenDisplayName ( int ttype ) : string
ttype int
리턴 string

GetTokenDisplayNames() 공개 메소드

public GetTokenDisplayNames ( ) : HashSet
리턴 HashSet

GetTokenType() 공개 메소드

public GetTokenType ( string tokenName ) : int
tokenName string
리턴 int

GetTokenTypesWithoutID() 공개 메소드

public GetTokenTypesWithoutID ( ) : ICollection
리턴 ICollection

GetUnescapedStringFromGrammarStringLiteral() 공개 정적인 메소드

public static GetUnescapedStringFromGrammarStringLiteral ( string literal ) : System.Text.StringBuilder
literal string
리턴 System.Text.StringBuilder

GetUserMaxLookahead() 공개 메소드

public GetUserMaxLookahead ( int decision ) : int
decision int
리턴 int

Grammar() 공개 메소드

public Grammar ( Antlr3.AntlrTool tool ) : System.Collections.Generic
tool Antlr3.AntlrTool
리턴 System.Collections.Generic

Grammar() 공개 메소드

public Grammar ( Antlr3.AntlrTool tool, string grammarString ) : System.Collections.Generic
tool Antlr3.AntlrTool
grammarString string
리턴 System.Collections.Generic

Grammar() 공개 메소드

public Grammar ( Antlr3.AntlrTool tool, string fileName, Antlr3.Tool.CompositeGrammar composite ) : System.Collections.Generic
tool Antlr3.AntlrTool
fileName string
composite Antlr3.Tool.CompositeGrammar
리턴 System.Collections.Generic

Grammar() 공개 메소드

public Grammar ( string grammarString ) : System.Collections.Generic
grammarString string
리턴 System.Collections.Generic

GrammarTreeToString() 공개 메소드

public GrammarTreeToString ( Antlr3.Tool.GrammarAST t ) : string
t Antlr3.Tool.GrammarAST
리턴 string

GrammarTreeToString() 공개 메소드

public GrammarTreeToString ( Antlr3.Tool.GrammarAST t, bool showActions ) : string
t Antlr3.Tool.GrammarAST
showActions bool
리턴 string

ImportGrammar() 공개 메소드

public ImportGrammar ( Antlr.Runtime.IToken grammarNameToken, string label ) : void
grammarNameToken Antlr.Runtime.IToken
label string
리턴 void

ImportTokenVocabulary() 공개 메소드

public ImportTokenVocabulary ( Grammar importFromGr ) : int
importFromGr Grammar
리턴 int

ImportTokenVocabulary() 공개 메소드

public ImportTokenVocabulary ( Antlr3.Tool.GrammarAST tokenVocabOptionAST, string vocabName ) : int
tokenVocabOptionAST Antlr3.Tool.GrammarAST
vocabName string
리턴 int

IsAtomTokenType() 공개 메소드

public IsAtomTokenType ( int ttype ) : bool
ttype int
리턴 bool

IsEmptyRule() 공개 메소드

public IsEmptyRule ( Antlr3.Tool.GrammarAST block ) : bool
block Antlr3.Tool.GrammarAST
리턴 bool

LegalOption() 공개 메소드

public LegalOption ( string key ) : bool
key string
리턴 bool

Look() 공개 메소드

public Look ( Antlr3.Analysis.NFAState s ) : Antlr3.Analysis.LookaheadSet
s Antlr3.Analysis.NFAState
리턴 Antlr3.Analysis.LookaheadSet

MakeEdgeSetsDisjoint() 보호된 메소드

protected MakeEdgeSetsDisjoint ( IList edges ) : IList
edges IList
리턴 IList

NFAToDFAConversionExternallyAborted() 공개 메소드

public NFAToDFAConversionExternallyAborted ( ) : bool
리턴 bool

OptionIsValid() 공개 메소드

public OptionIsValid ( string key, object value ) : bool
key string
value object
리턴 bool

ParseAndBuildAST() 공개 메소드

public ParseAndBuildAST ( ) : void
리턴 void

ParseAndBuildAST() 공개 메소드

public ParseAndBuildAST ( System.IO.TextReader r ) : void
r System.IO.TextReader
리턴 void

ParseArtificialRule() 공개 메소드

public ParseArtificialRule ( string ruleText ) : Antlr3.Tool.GrammarAST
ruleText string
리턴 Antlr3.Tool.GrammarAST

PrintGrammar() 공개 메소드

public PrintGrammar ( System.IO.TextWriter output ) : void
output System.IO.TextWriter
리턴 void

ProcessOptions() 보호된 메소드

protected ProcessOptions ( ) : void
리턴 void

ReferenceRuleLabelPredefinedAttribute() 공개 메소드

public ReferenceRuleLabelPredefinedAttribute ( string ruleName ) : void
ruleName string
리턴 void

RemoveUselessLabels() 보호된 메소드

protected RemoveUselessLabels ( LabelElementPair>.IDictionary ruleToElementLabelPairMap ) : void
ruleToElementLabelPairMap LabelElementPair>.IDictionary
리턴 void

SetDecisionBlockAST() 공개 메소드

public SetDecisionBlockAST ( int decision, Antlr3.Tool.GrammarAST blockAST ) : void
decision int
blockAST Antlr3.Tool.GrammarAST
리턴 void

SetDecisionNFA() 공개 메소드

public SetDecisionNFA ( int decision, Antlr3.Analysis.NFAState state ) : void
decision int
state Antlr3.Analysis.NFAState
리턴 void

SetDecisionOption() 공개 메소드

public SetDecisionOption ( int decision, string name, object value ) : void
decision int
name string
value object
리턴 void

SetDecisionOptions() 공개 메소드

public SetDecisionOptions ( int decision, IDictionary options ) : void
decision int
options IDictionary
리턴 void

SetGrammarContent() 공개 메소드

public SetGrammarContent ( string grammarString ) : void
grammarString string
리턴 void

SetLookaheadDFA() 공개 메소드

public SetLookaheadDFA ( int decision, Antlr3.Analysis.DFA lookaheadDFA ) : void
decision int
lookaheadDFA Antlr3.Analysis.DFA
리턴 void

SetName() 공개 메소드

public SetName ( string name ) : void
name string
리턴 void

SetOption() 공개 메소드

public SetOption ( string key, object value, Antlr.Runtime.IToken optionsStartToken ) : string
key string
value object
optionsStartToken Antlr.Runtime.IToken
리턴 string

SetOptions() 공개 메소드

public SetOptions ( object>.IDictionary options, Antlr.Runtime.IToken optionsStartToken ) : void
options object>.IDictionary
optionsStartToken Antlr.Runtime.IToken
리턴 void

SetRuleAST() 공개 메소드

public SetRuleAST ( string ruleName, Antlr3.Tool.GrammarAST t ) : void
ruleName string
t Antlr3.Tool.GrammarAST
리턴 void

SetSynPredGateIfNotAlready() 공개 메소드

public SetSynPredGateIfNotAlready ( Antlr4.StringTemplate.Template gateST ) : void
gateST Antlr4.StringTemplate.Template
리턴 void

SynPredUsedInDFA() 공개 메소드

public SynPredUsedInDFA ( Antlr3.Analysis.DFA dfa, Antlr3.Analysis.SemanticContext semCtx ) : void
dfa Antlr3.Analysis.DFA
semCtx Antlr3.Analysis.SemanticContext
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

TranslateLeftRecursiveRule() 공개 메소드

public TranslateLeftRecursiveRule ( Antlr3.Tool.GrammarAST ruleAST ) : void
ruleAST Antlr3.Tool.GrammarAST
리턴 void

ValidImport() 공개 메소드

public ValidImport ( Grammar @delegate ) : bool
@delegate Grammar
리턴 bool

프로퍼티 상세

AntlrLiteralCharValueEscape 공개적으로 정적으로 프로퍼티

public static string[] AntlrLiteralCharValueEscape
리턴 string[]

AntlrLiteralEscapedCharValue 공개적으로 정적으로 프로퍼티

public static int[] AntlrLiteralEscapedCharValue
리턴 int[]

DFACreationWallClockTimeInMS 공개적으로 프로퍼티

public System.TimeSpan DFACreationWallClockTimeInMS
리턴 System.TimeSpan

LabelTypeToString 공개적으로 정적으로 프로퍼티

public static string[] LabelTypeToString
리턴 string[]

allDecisionDFACreated 보호되어 있는 프로퍼티

protected bool allDecisionDFACreated
리턴 bool

atLeastOneBacktrackOption 공개적으로 프로퍼티

public bool atLeastOneBacktrackOption
리턴 bool

atLeastOneRuleMemoizes 공개적으로 프로퍼티

public bool atLeastOneRuleMemoizes
리턴 bool

blocksWithSemPreds 공개적으로 프로퍼티

public HashSet blocksWithSemPreds
리턴 HashSet

blocksWithSynPreds 공개적으로 프로퍼티

public HashSet blocksWithSynPreds
리턴 HashSet

builtFromString 보호되어 있는 프로퍼티

protected bool builtFromString
리턴 bool

charVocabulary 보호되어 있는 프로퍼티

protected Interval? charVocabulary
리턴 Interval?

composite 공개적으로 프로퍼티

public CompositeGrammar,Antlr3.Tool composite
리턴 Antlr3.Tool.CompositeGrammar

compositeTreeNode 공개적으로 프로퍼티

public CompositeGrammarTree,Antlr3.Tool compositeTreeNode
리턴 Antlr3.Tool.CompositeGrammarTree

decisionCount 보호되어 있는 프로퍼티

protected int decisionCount
리턴 int

decisionsWhoseDFAsUsesSemPreds 공개적으로 프로퍼티

public HashSet decisionsWhoseDFAsUsesSemPreds
리턴 HashSet

decisionsWhoseDFAsUsesSynPreds 공개적으로 프로퍼티

public HashSet decisionsWhoseDFAsUsesSynPreds
리턴 HashSet

defaultBlockOptions 공개적으로 정적으로 프로퍼티

public static IDictionary defaultBlockOptions
리턴 object>.IDictionary

defaultLexerBlockOptions 공개적으로 정적으로 프로퍼티

public static IDictionary defaultLexerBlockOptions
리턴 object>.IDictionary

defaultOptions 공개적으로 정적으로 프로퍼티

public static IDictionary defaultOptions
리턴 object>.IDictionary

delegatedRuleReferences 보호되어 있는 프로퍼티

protected HashSet delegatedRuleReferences
리턴 HashSet

doNotCopyOptionsToLexer 공개적으로 정적으로 프로퍼티

public static HashSet doNotCopyOptionsToLexer
리턴 HashSet

externalAnalysisAbort 보호되어 있는 프로퍼티

protected bool externalAnalysisAbort
리턴 bool

factory 보호되어 있는 프로퍼티

protected NFAFactory,Antlr3.Tool factory
리턴 Antlr3.Tool.NFAFactory

fileName 보호되어 있는 프로퍼티

protected string fileName
리턴 string

generator 보호되어 있는 프로퍼티

protected Antlr3.Codegen.CodeGenerator generator
리턴 Antlr3.Codegen.CodeGenerator

global_k 보호되어 있는 프로퍼티

protected int global_k
리턴 int

grammarTree 보호되어 있는 프로퍼티

protected GrammarAST,Antlr3.Tool grammarTree
리턴 Antlr3.Tool.GrammarAST

grammarTypeToFileNameSuffix 공개적으로 정적으로 프로퍼티

public static string[] grammarTypeToFileNameSuffix
리턴 string[]

grammarTypeToString 공개적으로 정적으로 프로퍼티

public static string[] grammarTypeToString
리턴 string[]

implicitLexer 공개적으로 프로퍼티

public bool implicitLexer
리턴 bool

indexToDecision 보호되어 있는 프로퍼티

protected List indexToDecision
리턴 List

label 공개적으로 프로퍼티

public string label
리턴 string

leftRecursiveRules 보호되어 있는 프로퍼티

protected HashSet leftRecursiveRules
리턴 HashSet

legalBlockOptions 공개적으로 정적으로 프로퍼티

public static HashSet legalBlockOptions
리턴 HashSet

legalLexerOptions 공개적으로 정적으로 프로퍼티

public static HashSet legalLexerOptions
리턴 HashSet

legalParserOptions 공개적으로 정적으로 프로퍼티

public static HashSet legalParserOptions
리턴 HashSet

legalTokenOptions 공개적으로 정적으로 프로퍼티

public static HashSet legalTokenOptions
리턴 HashSet

legalTreeParserOptions 공개적으로 정적으로 프로퍼티

public static HashSet legalTreeParserOptions
리턴 HashSet

lexerRuleNamesInCombined 공개적으로 프로퍼티

public IList lexerRuleNamesInCombined
리턴 IList

ll1Analyzer 공개적으로 프로퍼티

public LL1Analyzer,Antlr3.Analysis ll1Analyzer
리턴 Antlr3.Analysis.LL1Analyzer

name 공개적으로 프로퍼티

public string name
리턴 string

nameSpaceChecker 공개적으로 프로퍼티

public NameSpaceChecker,Antlr3.Tool nameSpaceChecker
리턴 Antlr3.Tool.NameSpaceChecker

nameToRuleMap 보호되어 있는 프로퍼티

protected SortedList nameToRuleMap
리턴 Rule>.SortedList

nameToSynpredASTMap 보호되어 있는 프로퍼티

protected List> nameToSynpredASTMap
리턴 GrammarAST>>.List

nfa 공개적으로 프로퍼티

public NFA,Antlr3.Analysis nfa
리턴 Antlr3.Analysis.NFA

numNonLLStar 공개적으로 프로퍼티

public int numNonLLStar
리턴 int

numberOfManualLookaheadOptions 공개적으로 프로퍼티

public int numberOfManualLookaheadOptions
리턴 int

numberOfSemanticPredicates 공개적으로 프로퍼티

public int numberOfSemanticPredicates
리턴 int

options 보호되어 있는 프로퍼티

protected IDictionary options
리턴 object>.IDictionary

overriddenRules 공개적으로 프로퍼티

public HashSet overriddenRules
리턴 HashSet

precRuleInitCodeBlocks 공개적으로 프로퍼티

public List precRuleInitCodeBlocks
리턴 List

ruleRefs 보호되어 있는 프로퍼티

protected HashSet ruleRefs
리턴 HashSet

scopedRuleRefs 보호되어 있는 프로퍼티

protected HashSet scopedRuleRefs
리턴 HashSet

scopes 보호되어 있는 프로퍼티

protected IDictionary scopes
리턴 AttributeScope>.IDictionary

setOfNondeterministicDecisionNumbers 공개적으로 프로퍼티

public HashSet setOfNondeterministicDecisionNumbers
리턴 HashSet

setOfNondeterministicDecisionNumbersResolvedWithPredicates 공개적으로 프로퍼티

public HashSet setOfNondeterministicDecisionNumbersResolvedWithPredicates
리턴 HashSet

synPredNamesUsedInDFA 공개적으로 프로퍼티

public HashSet synPredNamesUsedInDFA
리턴 HashSet

tokenIDRefs 보호되어 있는 프로퍼티

protected HashSet tokenIDRefs
리턴 HashSet

type 공개적으로 프로퍼티

public GrammarType type
리턴 GrammarType

validDelegations 공개적으로 정적으로 프로퍼티

public static MultiMap validDelegations
리턴 GrammarType>.MultiMap