C# Class Antlr4.Codegen.CodeGenerator

Mostrar archivo Open project: sharwell/antlr4cs Class Usage Examples

Public Properties

Property Type Description
DEFAULT_LANGUAGE string
TEMPLATE_ROOT string
VOCAB_FILE_EXTENSION string
lineWidth int
vocabFilePattern string

Public Methods

Method Description
CodeGenerator ( [ g ) : System.Collections.Generic
CodeGenerator ( [ tool, [ g, string language ) : System.Collections.Generic
GenerateBaseListener ( ) : Template
GenerateBaseListener ( bool header ) : Template
GenerateBaseVisitor ( ) : Template
GenerateBaseVisitor ( bool header ) : Template
GenerateLexer ( ) : Template
GenerateLexer ( bool header ) : Template
GenerateListener ( ) : Template
GenerateListener ( bool header ) : Template
GenerateParser ( ) : Template
GenerateParser ( bool header ) : Template
GenerateVisitor ( ) : Template
GenerateVisitor ( bool header ) : Template
GetBaseListenerFileName ( ) : string
GetBaseListenerFileName ( bool header ) : string
GetBaseVisitorFileName ( ) : string
GetBaseVisitorFileName ( bool header ) : string
GetHeaderFileName ( ) : string
GetListenerFileName ( ) : string
GetListenerFileName ( bool header ) : string
GetRecognizerFileName ( ) : string
GetRecognizerFileName ( bool header ) : string
GetVisitorFileName ( ) : string
GetVisitorFileName ( bool header ) : string
GetVocabFileName ( ) : string
Write ( Template code, string fileName ) : void
WriteBaseListener ( Template outputFileST, bool header ) : void
WriteBaseVisitor ( Template outputFileST, bool header ) : void
WriteListener ( Template outputFileST, bool header ) : void
WriteRecognizer ( Template outputFileST, bool header ) : void
WriteVisitor ( Template outputFileST, bool header ) : void
WriteVocabFile ( ) : void

Protected Methods

Method Description
LoadLanguageTarget ( string language ) : void

Private Methods

Method Description
CreateController ( ) : OutputModelController
GetTarget ( ) : AbstractTarget
GetTemplates ( ) : TemplateGroup
GetTokenVocabOutput ( ) : Template
Walk ( OutputModelObject outputModel, bool header ) : Template

Method Details

CodeGenerator() public method

public CodeGenerator ( [ g ) : System.Collections.Generic
g [
return System.Collections.Generic

CodeGenerator() public method

public CodeGenerator ( [ tool, [ g, string language ) : System.Collections.Generic
tool [
g [
language string
return System.Collections.Generic

GenerateBaseListener() public method

public GenerateBaseListener ( ) : Template
return Template

GenerateBaseListener() public method

public GenerateBaseListener ( bool header ) : Template
header bool
return Template

GenerateBaseVisitor() public method

public GenerateBaseVisitor ( ) : Template
return Template

GenerateBaseVisitor() public method

public GenerateBaseVisitor ( bool header ) : Template
header bool
return Template

GenerateLexer() public method

public GenerateLexer ( ) : Template
return Template

GenerateLexer() public method

public GenerateLexer ( bool header ) : Template
header bool
return Template

GenerateListener() public method

public GenerateListener ( ) : Template
return Template

GenerateListener() public method

public GenerateListener ( bool header ) : Template
header bool
return Template

GenerateParser() public method

public GenerateParser ( ) : Template
return Template

GenerateParser() public method

public GenerateParser ( bool header ) : Template
header bool
return Template

GenerateVisitor() public method

public GenerateVisitor ( ) : Template
return Template

GenerateVisitor() public method

public GenerateVisitor ( bool header ) : Template
header bool
return Template

GetBaseListenerFileName() public method

public GetBaseListenerFileName ( ) : string
return string

GetBaseListenerFileName() public method

public GetBaseListenerFileName ( bool header ) : string
header bool
return string

GetBaseVisitorFileName() public method

public GetBaseVisitorFileName ( ) : string
return string

GetBaseVisitorFileName() public method

public GetBaseVisitorFileName ( bool header ) : string
header bool
return string

GetHeaderFileName() public method

public GetHeaderFileName ( ) : string
return string

GetListenerFileName() public method

public GetListenerFileName ( ) : string
return string

GetListenerFileName() public method

public GetListenerFileName ( bool header ) : string
header bool
return string

GetRecognizerFileName() public method

public GetRecognizerFileName ( ) : string
return string

GetRecognizerFileName() public method

public GetRecognizerFileName ( bool header ) : string
header bool
return string

GetVisitorFileName() public method

public GetVisitorFileName ( ) : string
return string

GetVisitorFileName() public method

public GetVisitorFileName ( bool header ) : string
header bool
return string

GetVocabFileName() public method

public GetVocabFileName ( ) : string
return string

LoadLanguageTarget() protected method

protected LoadLanguageTarget ( string language ) : void
language string
return void

Write() public method

public Write ( Template code, string fileName ) : void
code Template
fileName string
return void

WriteBaseListener() public method

public WriteBaseListener ( Template outputFileST, bool header ) : void
outputFileST Template
header bool
return void

WriteBaseVisitor() public method

public WriteBaseVisitor ( Template outputFileST, bool header ) : void
outputFileST Template
header bool
return void

WriteListener() public method

public WriteListener ( Template outputFileST, bool header ) : void
outputFileST Template
header bool
return void

WriteRecognizer() public method

public WriteRecognizer ( Template outputFileST, bool header ) : void
outputFileST Template
header bool
return void

WriteVisitor() public method

public WriteVisitor ( Template outputFileST, bool header ) : void
outputFileST Template
header bool
return void

WriteVocabFile() public method

public WriteVocabFile ( ) : void
return void

Property Details

DEFAULT_LANGUAGE public_oe static_oe property

public static string DEFAULT_LANGUAGE
return string

TEMPLATE_ROOT public_oe static_oe property

public static string TEMPLATE_ROOT
return string

VOCAB_FILE_EXTENSION public_oe static_oe property

public static string VOCAB_FILE_EXTENSION
return string

lineWidth public_oe property

public int lineWidth
return int

vocabFilePattern public_oe static_oe property

public static string vocabFilePattern
return string