C# Class Antlr3.Tool.Grammar

Afficher le fichier Open project: antlr/antlrcs Class Usage Examples

Méthodes publiques

Свойство Type Description
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

Protected Properties

Свойство Type Description
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

Свойство Type Description
GetArtificialRulesForSyntacticPredicates IList
GetSetFromRule IIntSet
Grammar System.Collections.Generic
IsValidSet bool
UpdateLineColumnToLookaheadDFAMap void

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

AddArtificialMatchTokensRule() public méthode

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
Résultat Antlr3.Tool.GrammarAST

AddDelegateGrammar() protected méthode

protected AddDelegateGrammar ( Grammar delegateGrammar ) : void
delegateGrammar Grammar
Résultat void

AddRule() public méthode

public AddRule ( Antlr3.Tool.GrammarAST grammarTree, Antlr3.Tool.GrammarAST t ) : void
grammarTree Antlr3.Tool.GrammarAST
t Antlr3.Tool.GrammarAST
Résultat void

AddRulesForSyntacticPredicates() public méthode

public AddRulesForSyntacticPredicates ( ) : void
Résultat void

AltReferencesRule() public méthode

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
Résultat void

AltReferencesTokenID() public méthode

public AltReferencesTokenID ( string ruleName, Antlr3.Tool.GrammarAST refAST, int outerAltNum ) : void
ruleName string
refAST Antlr3.Tool.GrammarAST
outerAltNum int
Résultat void

AssignDecisionNumber() public méthode

public AssignDecisionNumber ( Antlr3.Analysis.NFAState state ) : int
state Antlr3.Analysis.NFAState
Résultat int

BuildNFA() public méthode

public BuildNFA ( ) : void
Résultat void

CheckAllRulesForLeftRecursion() public méthode

public CheckAllRulesForLeftRecursion ( ) : IList>
Résultat IList>

CheckAllRulesForUselessLabels() public méthode

public CheckAllRulesForUselessLabels ( ) : void
Résultat void

CheckNameSpaceAndActions() public méthode

public CheckNameSpaceAndActions ( ) : void
Résultat void

CheckRuleReference() public méthode

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
Résultat void

Complement() public méthode

public Complement ( IIntSet set ) : IIntSet
set IIntSet
Résultat IIntSet

Complement() public méthode

public Complement ( int atom ) : IIntSet
atom int
Résultat IIntSet

ComputeRuleFOLLOWSets() public méthode

public ComputeRuleFOLLOWSets ( ) : void
Résultat void

ComputeTokenNameFromLiteral() public méthode

public ComputeTokenNameFromLiteral ( int tokenType, string literal ) : string
tokenType int
literal string
Résultat string

CreateDecision() protected méthode

protected CreateDecision ( int decision ) : Decision
decision int
Résultat Decision

CreateLL_1_LookaheadDFA() public méthode

public CreateLL_1_LookaheadDFA ( int decision ) : Antlr3.Analysis.DFA
decision int
Résultat Antlr3.Analysis.DFA

CreateLookaheadDFA() public méthode

public CreateLookaheadDFA ( int decision, bool wackTempStructures ) : Antlr3.Analysis.DFA
decision int
wackTempStructures bool
Résultat Antlr3.Analysis.DFA

CreateLookaheadDFAs() public méthode

public CreateLookaheadDFAs ( ) : void
Résultat void

CreateLookaheadDFAs() public méthode

public CreateLookaheadDFAs ( bool wackTempStructures ) : void
wackTempStructures bool
Résultat void

CreateParameterScope() public méthode

public CreateParameterScope ( string ruleName, Antlr.Runtime.IToken argAction ) : Antlr3.Tool.AttributeScope
ruleName string
argAction Antlr.Runtime.IToken
Résultat Antlr3.Tool.AttributeScope

CreateReturnScope() public méthode

public CreateReturnScope ( string ruleName, Antlr.Runtime.IToken retAction ) : Antlr3.Tool.AttributeScope
ruleName string
retAction Antlr.Runtime.IToken
Résultat Antlr3.Tool.AttributeScope

CreateRuleScope() public méthode

public CreateRuleScope ( string ruleName, Antlr.Runtime.IToken scopeAction ) : Antlr3.Tool.AttributeScope
ruleName string
scopeAction Antlr.Runtime.IToken
Résultat Antlr3.Tool.AttributeScope

CreateRuleStartAndStopNFAStates() public méthode

public CreateRuleStartAndStopNFAStates ( ) : void
Résultat void

DealWithTreeFilterMode() protected méthode

protected DealWithTreeFilterMode ( ) : void
Résultat void

DefineGlobalScope() public méthode

public DefineGlobalScope ( string name, Antlr.Runtime.IToken scopeAction ) : Antlr3.Tool.AttributeScope
name string
scopeAction Antlr.Runtime.IToken
Résultat Antlr3.Tool.AttributeScope

DefineGrammarSymbols() public méthode

public DefineGrammarSymbols ( ) : void
Résultat void

DefineLabel() protected méthode

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
Résultat void

DefineLexerRuleForAliasedStringLiteral() public méthode

public DefineLexerRuleForAliasedStringLiteral ( string tokenID, string literal, int tokenType ) : void
tokenID string
literal string
tokenType int
Résultat void

DefineLexerRuleForStringLiteral() public méthode

public DefineLexerRuleForStringLiteral ( string literal, int tokenType ) : void
literal string
tokenType int
Résultat void

DefineLexerRuleFoundInParser() public méthode

public DefineLexerRuleFoundInParser ( Antlr.Runtime.IToken ruleToken, Antlr3.Tool.GrammarAST ruleAST ) : void
ruleToken Antlr.Runtime.IToken
ruleAST Antlr3.Tool.GrammarAST
Résultat void

DefineNamedAction() public méthode

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
Résultat void

DefineRule() public méthode

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
Résultat void

DefineRuleListLabel() public méthode

public DefineRuleListLabel ( string ruleName, Antlr.Runtime.IToken label, Antlr3.Tool.GrammarAST element ) : void
ruleName string
label Antlr.Runtime.IToken
element Antlr3.Tool.GrammarAST
Résultat void

DefineRuleRefLabel() public méthode

public DefineRuleRefLabel ( string ruleName, Antlr.Runtime.IToken label, Antlr3.Tool.GrammarAST ruleRef ) : void
ruleName string
label Antlr.Runtime.IToken
ruleRef Antlr3.Tool.GrammarAST
Résultat void

DefineSyntacticPredicate() public méthode

public DefineSyntacticPredicate ( Antlr3.Tool.GrammarAST blockAST, string currentRuleName ) : string
blockAST Antlr3.Tool.GrammarAST
currentRuleName string
Résultat string

DefineToken() public méthode

public DefineToken ( string text, int tokenType ) : void
text string
tokenType int
Résultat void

DefineTokenListLabel() public méthode

public DefineTokenListLabel ( string ruleName, Antlr.Runtime.IToken label, Antlr3.Tool.GrammarAST element ) : void
ruleName string
label Antlr.Runtime.IToken
element Antlr3.Tool.GrammarAST
Résultat void

DefineTokenRefLabel() public méthode

public DefineTokenRefLabel ( string ruleName, Antlr.Runtime.IToken label, Antlr3.Tool.GrammarAST tokenRef ) : void
ruleName string
label Antlr.Runtime.IToken
tokenRef Antlr3.Tool.GrammarAST
Résultat void

DefineWildcardTreeLabel() public méthode

public DefineWildcardTreeLabel ( string ruleName, Antlr.Runtime.IToken label, Antlr3.Tool.GrammarAST tokenRef ) : void
ruleName string
label Antlr.Runtime.IToken
tokenRef Antlr3.Tool.GrammarAST
Résultat void

DefineWildcardTreeListLabel() public méthode

public DefineWildcardTreeListLabel ( string ruleName, Antlr.Runtime.IToken label, Antlr3.Tool.GrammarAST tokenRef ) : void
ruleName string
label Antlr.Runtime.IToken
tokenRef Antlr3.Tool.GrammarAST
Résultat void

ExamineAllExecutableActions() protected méthode

protected ExamineAllExecutableActions ( ) : void
Résultat void

ExternallyAbortNFAToDFAConversion() public méthode

public ExternallyAbortNFAToDFAConversion ( ) : void
Résultat void

FindFirstTypeOutsideRewrite() protected méthode

protected FindFirstTypeOutsideRewrite ( Antlr3.Tool.GrammarAST block, BitSet types ) : Antlr3.Tool.GrammarAST
block Antlr3.Tool.GrammarAST
types BitSet
Résultat Antlr3.Tool.GrammarAST

First() public méthode

public First ( Antlr3.Analysis.NFAState s ) : Antlr3.Analysis.LookaheadSet
s Antlr3.Analysis.NFAState
Résultat Antlr3.Analysis.LookaheadSet

GenerateMethodForRule() public méthode

public GenerateMethodForRule ( string ruleName ) : bool
ruleName string
Résultat bool

GetANTLRCharLiteralForChar() public static méthode

public static GetANTLRCharLiteralForChar ( int c ) : string
c int
Résultat string

GetAllImportedRules() public méthode

public GetAllImportedRules ( ) : HashSet
Résultat HashSet

GetAutoBacktrackMode() public méthode

public GetAutoBacktrackMode ( int decision ) : bool
decision int
Résultat bool

GetBlockOption() public méthode

public GetBlockOption ( Antlr3.Tool.GrammarAST blockAST, string key ) : object
blockAST Antlr3.Tool.GrammarAST
key string
Résultat object

GetCharValueFromGrammarCharLiteral() public static méthode

public static GetCharValueFromGrammarCharLiteral ( string literal ) : int
literal string
Résultat int

GetDecision() protected méthode

protected GetDecision ( int decision ) : Decision
decision int
Résultat Decision

GetDecisionBlockAST() public méthode

public GetDecisionBlockAST ( int decision ) : Antlr3.Tool.GrammarAST
decision int
Résultat Antlr3.Tool.GrammarAST

GetDecisionNFAStartState() public méthode

public GetDecisionNFAStartState ( int decision ) : Antlr3.Analysis.NFAState
decision int
Résultat Antlr3.Analysis.NFAState

GetDecisionNFAStartStateList() public méthode

public GetDecisionNFAStartStateList ( ) : IList
Résultat IList

GetDecisionOptions() public méthode

public GetDecisionOptions ( int decision ) : IDictionary
decision int
Résultat IDictionary

GetDefaultActionScope() public méthode

public GetDefaultActionScope ( GrammarType grammarType ) : string
grammarType GrammarType
Résultat string

GetDelegateNames() public méthode

public GetDelegateNames ( ) : IList
Résultat IList

GetDelegatedRuleReferences() public méthode

public GetDelegatedRuleReferences ( ) : HashSet
Résultat HashSet

GetDelegatedRules() public méthode

public GetDelegatedRules ( ) : HashSet
Résultat HashSet

GetDelegates() public méthode

public GetDelegates ( ) : IList
Résultat IList

GetDelegators() public méthode

public GetDelegators ( ) : IList
Résultat IList

GetDirectDelegates() public méthode

public GetDirectDelegates ( ) : IList
Résultat IList

GetGlobalScope() public méthode

public GetGlobalScope ( string name ) : Antlr3.Tool.AttributeScope
name string
Résultat Antlr3.Tool.AttributeScope

GetGrammarMaxLookahead() public méthode

public GetGrammarMaxLookahead ( ) : int
Résultat int

GetIndirectDelegates() public méthode

public GetIndirectDelegates ( ) : IList
Résultat IList

GetLabels() public méthode

public GetLabels ( HashSet rewriteElements, LabelType labelType ) : HashSet
rewriteElements HashSet
labelType LabelType
Résultat HashSet

GetLeftRecursiveRules() public méthode

public GetLeftRecursiveRules ( ) : HashSet
Résultat HashSet

GetLexerGrammar() public méthode

public GetLexerGrammar ( ) : string
Résultat string

GetLocallyDefinedOption() public méthode

public GetLocallyDefinedOption ( string key ) : object
key string
Résultat object

GetLocallyDefinedRule() public méthode

public GetLocallyDefinedRule ( string ruleName ) : Antlr3.Tool.Rule
ruleName string
Résultat Antlr3.Tool.Rule

GetLookaheadDFA() public méthode

public GetLookaheadDFA ( int decision ) : Antlr3.Analysis.DFA
decision int
Résultat Antlr3.Analysis.DFA

GetLookaheadDFAColumnsForLineInFile() public méthode

public GetLookaheadDFAColumnsForLineInFile ( int line ) : IList
line int
Résultat IList

GetLookaheadDFAFromPositionInFile() public méthode

public GetLookaheadDFAFromPositionInFile ( int line, int col ) : Antlr3.Analysis.DFA
line int
col int
Résultat Antlr3.Analysis.DFA

GetNFAStateForAltOfDecision() public méthode

public GetNFAStateForAltOfDecision ( Antlr3.Analysis.NFAState decisionState, int alt ) : Antlr3.Analysis.NFAState
decisionState Antlr3.Analysis.NFAState
alt int
Résultat Antlr3.Analysis.NFAState

GetNewTokenType() public méthode

public GetNewTokenType ( ) : int
Résultat int

GetNumberOfAltsForDecisionNFA() public méthode

public GetNumberOfAltsForDecisionNFA ( Antlr3.Analysis.NFAState decisionState ) : int
decisionState Antlr3.Analysis.NFAState
Résultat int

GetNumberOfCyclicDecisions() public méthode

public GetNumberOfCyclicDecisions ( ) : int
Résultat int

GetOption() public méthode

public GetOption ( string key ) : object
key string
Résultat object

GetRecognizerName() public méthode

public GetRecognizerName ( ) : string
Résultat string

GetRule() public méthode

public GetRule ( string ruleName ) : Antlr3.Tool.Rule
ruleName string
Résultat Antlr3.Tool.Rule

GetRule() public méthode

public GetRule ( string scopeName, string ruleName ) : Antlr3.Tool.Rule
scopeName string
ruleName string
Résultat Antlr3.Tool.Rule

GetRuleIndex() public méthode

public GetRuleIndex ( string ruleName ) : int
ruleName string
Résultat int

GetRuleIndex() public méthode

public GetRuleIndex ( string scopeName, string ruleName ) : int
scopeName string
ruleName string
Résultat int

GetRuleModifier() public méthode

public GetRuleModifier ( string ruleName ) : string
ruleName string
Résultat string

GetRuleName() public méthode

public GetRuleName ( int ruleIndex ) : string
ruleIndex int
Résultat string

GetRuleStartState() public méthode

public GetRuleStartState ( string ruleName ) : Antlr3.Analysis.NFAState
ruleName string
Résultat Antlr3.Analysis.NFAState

GetRuleStartState() public méthode

public GetRuleStartState ( string scopeName, string ruleName ) : Antlr3.Analysis.NFAState
scopeName string
ruleName string
Résultat Antlr3.Analysis.NFAState

GetRuleStopState() public méthode

public GetRuleStopState ( string ruleName ) : Antlr3.Analysis.NFAState
ruleName string
Résultat Antlr3.Analysis.NFAState

GetSyntacticPredicate() public méthode

public GetSyntacticPredicate ( string name ) : Antlr3.Tool.GrammarAST
name string
Résultat Antlr3.Tool.GrammarAST

GetTokenDisplayName() public méthode

public GetTokenDisplayName ( int ttype ) : string
ttype int
Résultat string

GetTokenDisplayNames() public méthode

public GetTokenDisplayNames ( ) : HashSet
Résultat HashSet

GetTokenType() public méthode

public GetTokenType ( string tokenName ) : int
tokenName string
Résultat int

GetTokenTypesWithoutID() public méthode

public GetTokenTypesWithoutID ( ) : ICollection
Résultat ICollection

GetUnescapedStringFromGrammarStringLiteral() public static méthode

public static GetUnescapedStringFromGrammarStringLiteral ( string literal ) : System.Text.StringBuilder
literal string
Résultat System.Text.StringBuilder

GetUserMaxLookahead() public méthode

public GetUserMaxLookahead ( int decision ) : int
decision int
Résultat int

Grammar() public méthode

public Grammar ( Antlr3.AntlrTool tool ) : System.Collections.Generic
tool Antlr3.AntlrTool
Résultat System.Collections.Generic

Grammar() public méthode

public Grammar ( Antlr3.AntlrTool tool, string grammarString ) : System.Collections.Generic
tool Antlr3.AntlrTool
grammarString string
Résultat System.Collections.Generic

Grammar() public méthode

public Grammar ( Antlr3.AntlrTool tool, string fileName, Antlr3.Tool.CompositeGrammar composite ) : System.Collections.Generic
tool Antlr3.AntlrTool
fileName string
composite Antlr3.Tool.CompositeGrammar
Résultat System.Collections.Generic

Grammar() public méthode

public Grammar ( string grammarString ) : System.Collections.Generic
grammarString string
Résultat System.Collections.Generic

GrammarTreeToString() public méthode

public GrammarTreeToString ( Antlr3.Tool.GrammarAST t ) : string
t Antlr3.Tool.GrammarAST
Résultat string

GrammarTreeToString() public méthode

public GrammarTreeToString ( Antlr3.Tool.GrammarAST t, bool showActions ) : string
t Antlr3.Tool.GrammarAST
showActions bool
Résultat string

ImportGrammar() public méthode

public ImportGrammar ( Antlr.Runtime.IToken grammarNameToken, string label ) : void
grammarNameToken Antlr.Runtime.IToken
label string
Résultat void

ImportTokenVocabulary() public méthode

public ImportTokenVocabulary ( Grammar importFromGr ) : int
importFromGr Grammar
Résultat int

ImportTokenVocabulary() public méthode

public ImportTokenVocabulary ( Antlr3.Tool.GrammarAST tokenVocabOptionAST, string vocabName ) : int
tokenVocabOptionAST Antlr3.Tool.GrammarAST
vocabName string
Résultat int

IsAtomTokenType() public méthode

public IsAtomTokenType ( int ttype ) : bool
ttype int
Résultat bool

IsEmptyRule() public méthode

public IsEmptyRule ( Antlr3.Tool.GrammarAST block ) : bool
block Antlr3.Tool.GrammarAST
Résultat bool

LegalOption() public méthode

public LegalOption ( string key ) : bool
key string
Résultat bool

Look() public méthode

public Look ( Antlr3.Analysis.NFAState s ) : Antlr3.Analysis.LookaheadSet
s Antlr3.Analysis.NFAState
Résultat Antlr3.Analysis.LookaheadSet

MakeEdgeSetsDisjoint() protected méthode

protected MakeEdgeSetsDisjoint ( IList edges ) : IList
edges IList
Résultat IList

NFAToDFAConversionExternallyAborted() public méthode

public NFAToDFAConversionExternallyAborted ( ) : bool
Résultat bool

OptionIsValid() public méthode

public OptionIsValid ( string key, object value ) : bool
key string
value object
Résultat bool

ParseAndBuildAST() public méthode

public ParseAndBuildAST ( ) : void
Résultat void

ParseAndBuildAST() public méthode

public ParseAndBuildAST ( System.IO.TextReader r ) : void
r System.IO.TextReader
Résultat void

ParseArtificialRule() public méthode

public ParseArtificialRule ( string ruleText ) : Antlr3.Tool.GrammarAST
ruleText string
Résultat Antlr3.Tool.GrammarAST

PrintGrammar() public méthode

public PrintGrammar ( System.IO.TextWriter output ) : void
output System.IO.TextWriter
Résultat void

ProcessOptions() protected méthode

protected ProcessOptions ( ) : void
Résultat void

ReferenceRuleLabelPredefinedAttribute() public méthode

public ReferenceRuleLabelPredefinedAttribute ( string ruleName ) : void
ruleName string
Résultat void

RemoveUselessLabels() protected méthode

protected RemoveUselessLabels ( LabelElementPair>.IDictionary ruleToElementLabelPairMap ) : void
ruleToElementLabelPairMap LabelElementPair>.IDictionary
Résultat void

SetDecisionBlockAST() public méthode

public SetDecisionBlockAST ( int decision, Antlr3.Tool.GrammarAST blockAST ) : void
decision int
blockAST Antlr3.Tool.GrammarAST
Résultat void

SetDecisionNFA() public méthode

public SetDecisionNFA ( int decision, Antlr3.Analysis.NFAState state ) : void
decision int
state Antlr3.Analysis.NFAState
Résultat void

SetDecisionOption() public méthode

public SetDecisionOption ( int decision, string name, object value ) : void
decision int
name string
value object
Résultat void

SetDecisionOptions() public méthode

public SetDecisionOptions ( int decision, IDictionary options ) : void
decision int
options IDictionary
Résultat void

SetGrammarContent() public méthode

public SetGrammarContent ( string grammarString ) : void
grammarString string
Résultat void

SetLookaheadDFA() public méthode

public SetLookaheadDFA ( int decision, Antlr3.Analysis.DFA lookaheadDFA ) : void
decision int
lookaheadDFA Antlr3.Analysis.DFA
Résultat void

SetName() public méthode

public SetName ( string name ) : void
name string
Résultat void

SetOption() public méthode

public SetOption ( string key, object value, Antlr.Runtime.IToken optionsStartToken ) : string
key string
value object
optionsStartToken Antlr.Runtime.IToken
Résultat string

SetOptions() public méthode

public SetOptions ( object>.IDictionary options, Antlr.Runtime.IToken optionsStartToken ) : void
options object>.IDictionary
optionsStartToken Antlr.Runtime.IToken
Résultat void

SetRuleAST() public méthode

public SetRuleAST ( string ruleName, Antlr3.Tool.GrammarAST t ) : void
ruleName string
t Antlr3.Tool.GrammarAST
Résultat void

SetSynPredGateIfNotAlready() public méthode

public SetSynPredGateIfNotAlready ( Antlr4.StringTemplate.Template gateST ) : void
gateST Antlr4.StringTemplate.Template
Résultat void

SynPredUsedInDFA() public méthode

public SynPredUsedInDFA ( Antlr3.Analysis.DFA dfa, Antlr3.Analysis.SemanticContext semCtx ) : void
dfa Antlr3.Analysis.DFA
semCtx Antlr3.Analysis.SemanticContext
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

TranslateLeftRecursiveRule() public méthode

public TranslateLeftRecursiveRule ( Antlr3.Tool.GrammarAST ruleAST ) : void
ruleAST Antlr3.Tool.GrammarAST
Résultat void

ValidImport() public méthode

public ValidImport ( Grammar @delegate ) : bool
@delegate Grammar
Résultat bool

Property Details

AntlrLiteralCharValueEscape public_oe static_oe property

public static string[] AntlrLiteralCharValueEscape
Résultat string[]

AntlrLiteralEscapedCharValue public_oe static_oe property

public static int[] AntlrLiteralEscapedCharValue
Résultat int[]

DFACreationWallClockTimeInMS public_oe property

public System.TimeSpan DFACreationWallClockTimeInMS
Résultat System.TimeSpan

LabelTypeToString public_oe static_oe property

public static string[] LabelTypeToString
Résultat string[]

allDecisionDFACreated protected_oe property

protected bool allDecisionDFACreated
Résultat bool

atLeastOneBacktrackOption public_oe property

public bool atLeastOneBacktrackOption
Résultat bool

atLeastOneRuleMemoizes public_oe property

public bool atLeastOneRuleMemoizes
Résultat bool

blocksWithSemPreds public_oe property

public HashSet blocksWithSemPreds
Résultat HashSet

blocksWithSynPreds public_oe property

public HashSet blocksWithSynPreds
Résultat HashSet

builtFromString protected_oe property

protected bool builtFromString
Résultat bool

charVocabulary protected_oe property

protected Interval? charVocabulary
Résultat Interval?

composite public_oe property

public CompositeGrammar,Antlr3.Tool composite
Résultat Antlr3.Tool.CompositeGrammar

compositeTreeNode public_oe property

public CompositeGrammarTree,Antlr3.Tool compositeTreeNode
Résultat Antlr3.Tool.CompositeGrammarTree

decisionCount protected_oe property

protected int decisionCount
Résultat int

decisionsWhoseDFAsUsesSemPreds public_oe property

public HashSet decisionsWhoseDFAsUsesSemPreds
Résultat HashSet

decisionsWhoseDFAsUsesSynPreds public_oe property

public HashSet decisionsWhoseDFAsUsesSynPreds
Résultat HashSet

defaultBlockOptions public_oe static_oe property

public static IDictionary defaultBlockOptions
Résultat object>.IDictionary

defaultLexerBlockOptions public_oe static_oe property

public static IDictionary defaultLexerBlockOptions
Résultat object>.IDictionary

defaultOptions public_oe static_oe property

public static IDictionary defaultOptions
Résultat object>.IDictionary

delegatedRuleReferences protected_oe property

protected HashSet delegatedRuleReferences
Résultat HashSet

doNotCopyOptionsToLexer public_oe static_oe property

public static HashSet doNotCopyOptionsToLexer
Résultat HashSet

externalAnalysisAbort protected_oe property

protected bool externalAnalysisAbort
Résultat bool

factory protected_oe property

protected NFAFactory,Antlr3.Tool factory
Résultat Antlr3.Tool.NFAFactory

fileName protected_oe property

protected string fileName
Résultat string

generator protected_oe property

protected Antlr3.Codegen.CodeGenerator generator
Résultat Antlr3.Codegen.CodeGenerator

global_k protected_oe property

protected int global_k
Résultat int

grammarTree protected_oe property

protected GrammarAST,Antlr3.Tool grammarTree
Résultat Antlr3.Tool.GrammarAST

grammarTypeToFileNameSuffix public_oe static_oe property

public static string[] grammarTypeToFileNameSuffix
Résultat string[]

grammarTypeToString public_oe static_oe property

public static string[] grammarTypeToString
Résultat string[]

implicitLexer public_oe property

public bool implicitLexer
Résultat bool

indexToDecision protected_oe property

protected List indexToDecision
Résultat List

label public_oe property

public string label
Résultat string

leftRecursiveRules protected_oe property

protected HashSet leftRecursiveRules
Résultat HashSet

legalBlockOptions public_oe static_oe property

public static HashSet legalBlockOptions
Résultat HashSet

legalLexerOptions public_oe static_oe property

public static HashSet legalLexerOptions
Résultat HashSet

legalParserOptions public_oe static_oe property

public static HashSet legalParserOptions
Résultat HashSet

legalTokenOptions public_oe static_oe property

public static HashSet legalTokenOptions
Résultat HashSet

legalTreeParserOptions public_oe static_oe property

public static HashSet legalTreeParserOptions
Résultat HashSet

lexerRuleNamesInCombined public_oe property

public IList lexerRuleNamesInCombined
Résultat IList

ll1Analyzer public_oe property

public LL1Analyzer,Antlr3.Analysis ll1Analyzer
Résultat Antlr3.Analysis.LL1Analyzer

name public_oe property

public string name
Résultat string

nameSpaceChecker public_oe property

public NameSpaceChecker,Antlr3.Tool nameSpaceChecker
Résultat Antlr3.Tool.NameSpaceChecker

nameToRuleMap protected_oe property

protected SortedList nameToRuleMap
Résultat Rule>.SortedList

nameToSynpredASTMap protected_oe property

protected List> nameToSynpredASTMap
Résultat GrammarAST>>.List

nfa public_oe property

public NFA,Antlr3.Analysis nfa
Résultat Antlr3.Analysis.NFA

numNonLLStar public_oe property

public int numNonLLStar
Résultat int

numberOfManualLookaheadOptions public_oe property

public int numberOfManualLookaheadOptions
Résultat int

numberOfSemanticPredicates public_oe property

public int numberOfSemanticPredicates
Résultat int

options protected_oe property

protected IDictionary options
Résultat object>.IDictionary

overriddenRules public_oe property

public HashSet overriddenRules
Résultat HashSet

precRuleInitCodeBlocks public_oe property

public List precRuleInitCodeBlocks
Résultat List

ruleRefs protected_oe property

protected HashSet ruleRefs
Résultat HashSet

scopedRuleRefs protected_oe property

protected HashSet scopedRuleRefs
Résultat HashSet

scopes protected_oe property

protected IDictionary scopes
Résultat AttributeScope>.IDictionary

setOfNondeterministicDecisionNumbers public_oe property

public HashSet setOfNondeterministicDecisionNumbers
Résultat HashSet

setOfNondeterministicDecisionNumbersResolvedWithPredicates public_oe property

public HashSet setOfNondeterministicDecisionNumbersResolvedWithPredicates
Résultat HashSet

synPredNamesUsedInDFA public_oe property

public HashSet synPredNamesUsedInDFA
Résultat HashSet

tokenIDRefs protected_oe property

protected HashSet tokenIDRefs
Résultat HashSet

type public_oe property

public GrammarType type
Résultat GrammarType

validDelegations public_oe static_oe property

public static MultiMap validDelegations
Résultat GrammarType>.MultiMap