C# 클래스 Pegasus.CompileManager

Provides a simple interface for parsing and compiling a PEG grammar.
파일 보기 프로젝트 열기: otac0n/Pegasus 1 사용 예제들

공개 메소드들

메소드 설명
CompileFile ( string inputFile, string outputFile, Action logError ) : void

Parse and compile a PEG grammar from a file.

CompileString ( string subject, string fileName = null ) : CompileResult

Parse and compile a PEG grammar from a string.

메소드 상세

CompileFile() 공개 정적인 메소드

Parse and compile a PEG grammar from a file.
public static CompileFile ( string inputFile, string outputFile, Action logError ) : void
inputFile string The source filename.
outputFile string The desired destination filename, or null to use the default.
logError Action An action that will be called for every warning or error.
리턴 void

CompileString() 공개 정적인 메소드

Parse and compile a PEG grammar from a string.
public static CompileString ( string subject, string fileName = null ) : CompileResult
subject string The PEG grammar to parse and compile.
fileName string The filename to use in errors.
리턴 Pegasus.Compiler.CompileResult