C# Class CSScriptCompilers.CCSharpParser

Extremely light/primitive parser
Mostrar archivo Open project: oleg-shilo/cs-script Class Usage Examples

Public Properties

Property Type Description
isClassless bool

Public Methods

Method Description
CCSharpParser ( string file ) : System
GenerateCode ( string rootMethodName ) : string
ToTempFile ( bool imported ) : string

Private Methods

Method Description
FixString ( string text ) : string
IsClasslessCode ( string rawCode ) : bool
IsDeclaration ( string code ) : bool
IsMethodDeclaration ( string code ) : bool
IsToken ( string text, int start, int length ) : bool
IsUsingDirective ( string code ) : bool
ProcessIfMarkedAsClassless ( string rawCode ) : bool

Method Details

CCSharpParser() public method

public CCSharpParser ( string file ) : System
file string
return System

GenerateCode() public method

public GenerateCode ( string rootMethodName ) : string
rootMethodName string
return string

ToTempFile() public method

public ToTempFile ( bool imported ) : string
imported bool
return string

Property Details

isClassless public_oe property

public bool isClassless
return bool