C# 클래스 Microsoft.Zing.Compiler

상속: System.Compiler.Compiler, ICodeGenerator
파일 보기 프로젝트 열기: ZingModelChecker/Zing 1 사용 예제들

공개 메소드들

메소드 설명
Compiler ( ) : System
ConstructSymbolTable ( System.Compiler.Compilation compilation, ErrorNodeList errors ) : void

Parses all of the CompilationUnitSnippets in the given compilation, ignoring method bodies. Then resolves all type expressions. The resulting types can be retrieved from the module in compilation.TargetModule. The base types, interfaces and member signatures will all be resolved and on an equal footing with imported, already compiled modules and assemblies.

CreateCompilerOptions ( ) : CompilerOptions
CreateDocument ( string fileName, int lineNumber, System.Compiler.DocumentText text ) : System.Compiler.Document
CreateDocument ( string fileName, int lineNumber, string text ) : System.Compiler.Document
CreateParser ( string fileName, int lineNumber, System.Compiler.DocumentText text, Module symbolTable, ErrorNodeList errorNodes, CompilerParameters options ) : IParser
CreateZingDocument ( string fileName, int lineNumber, System.Compiler.DocumentText text ) : System.Compiler.Document
GenerateCodeFromIR ( System.Compiler.Node node, TextWriter w, CodeGeneratorOptions o ) : void
ParseCompilerOption ( CompilerParameters options, string arg, ErrorNodeList errors ) : bool
ParseCompilerParameters ( CompilerParameters options, string arguments, ErrorNodeList errors ) : string[]

비공개 메소드들

메소드 설명
CompileAssemblyFromDomBatch ( CompilerParameters options, CodeCompileUnit compilationUnits, ErrorNodeList errorNodes ) : CompilerResults
CompileAssemblyFromFileBatch ( CompilerParameters options, string fileNames, ErrorNodeList errorNodes, bool canUseMemoryMap ) : CompilerResults
CompileParseTree ( System.Compiler.Compilation compilation, ErrorNodeList errorNodes ) : void
GenerateCodeFileFromIR ( System.Compiler.Node node, string path, string indent, bool blankLines, string bracingStyle ) : void
ICodeGenerator ( GeneratorSupport supports ) : bool
ICodeGenerator ( string value ) : bool
ICodeGenerator ( CodeTypeReference type ) : string
ICodeGenerator ( string value ) : string
ICodeGenerator ( CodeCompileUnit e, TextWriter w, CodeGeneratorOptions o ) : void
ICodeGenerator ( System.CodeDom.CodeExpression e, TextWriter w, CodeGeneratorOptions o ) : void
ICodeGenerator ( CodeNamespace e, TextWriter w, CodeGeneratorOptions o ) : void
ICodeGenerator ( CodeStatement e, TextWriter w, CodeGeneratorOptions o ) : void
ICodeGenerator ( CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o ) : void
ICodeGenerator ( string value ) : void
ResolveIR ( System.Compiler.Compilation compilation, ErrorNodeList errorNodes ) : void
SetOutputFileName ( CompilerParameters options, string fileName ) : void

메소드 상세

Compiler() 공개 메소드

public Compiler ( ) : System
리턴 System

ConstructSymbolTable() 공개 메소드

Parses all of the CompilationUnitSnippets in the given compilation, ignoring method bodies. Then resolves all type expressions. The resulting types can be retrieved from the module in compilation.TargetModule. The base types, interfaces and member signatures will all be resolved and on an equal footing with imported, already compiled modules and assemblies.
public ConstructSymbolTable ( System.Compiler.Compilation compilation, ErrorNodeList errors ) : void
compilation System.Compiler.Compilation
errors ErrorNodeList
리턴 void

CreateCompilerOptions() 공개 메소드

public CreateCompilerOptions ( ) : CompilerOptions
리턴 CompilerOptions

CreateDocument() 공개 메소드

public CreateDocument ( string fileName, int lineNumber, System.Compiler.DocumentText text ) : System.Compiler.Document
fileName string
lineNumber int
text System.Compiler.DocumentText
리턴 System.Compiler.Document

CreateDocument() 공개 메소드

public CreateDocument ( string fileName, int lineNumber, string text ) : System.Compiler.Document
fileName string
lineNumber int
text string
리턴 System.Compiler.Document

CreateParser() 공개 메소드

public CreateParser ( string fileName, int lineNumber, System.Compiler.DocumentText text, Module symbolTable, ErrorNodeList errorNodes, CompilerParameters options ) : IParser
fileName string
lineNumber int
text System.Compiler.DocumentText
symbolTable Module
errorNodes ErrorNodeList
options System.CodeDom.Compiler.CompilerParameters
리턴 IParser

CreateZingDocument() 공개 정적인 메소드

public static CreateZingDocument ( string fileName, int lineNumber, System.Compiler.DocumentText text ) : System.Compiler.Document
fileName string
lineNumber int
text System.Compiler.DocumentText
리턴 System.Compiler.Document

GenerateCodeFromIR() 공개 정적인 메소드

public static GenerateCodeFromIR ( System.Compiler.Node node, TextWriter w, CodeGeneratorOptions o ) : void
node System.Compiler.Node
w System.IO.TextWriter
o System.CodeDom.Compiler.CodeGeneratorOptions
리턴 void

ParseCompilerOption() 공개 메소드

public ParseCompilerOption ( CompilerParameters options, string arg, ErrorNodeList errors ) : bool
options System.CodeDom.Compiler.CompilerParameters
arg string
errors ErrorNodeList
리턴 bool

ParseCompilerParameters() 공개 메소드

public ParseCompilerParameters ( CompilerParameters options, string arguments, ErrorNodeList errors ) : string[]
options System.CodeDom.Compiler.CompilerParameters
arguments string
errors ErrorNodeList
리턴 string[]