C# Class IronMeta.Generator.CSharpShell

Wrapper for the C# generator that handles file IO.
显示文件 Open project: kulibali/ironmeta

Public Methods

Method Description
Process ( string src_fname, IEnumerable input, TextWriter output, string name_space ) : AST.AstNode>.MatchResult

Generate a parser from an IronMeta grammar.

Process ( string input_fname, string output_fname, string name_space, bool force ) : AST.AstNode>.MatchResult

Generate a parser from an IronMeta grammar.

Method Details

Process() public static method

Generate a parser from an IronMeta grammar.
public static Process ( string src_fname, IEnumerable input, TextWriter output, string name_space ) : AST.AstNode>.MatchResult
src_fname string The name of the source file (to use for error messages).
input IEnumerable Input stream.
output System.IO.TextWriter Output writer.
name_space string Namespace to use in the generated parser.
return AST.AstNode>.MatchResult

Process() public static method

Generate a parser from an IronMeta grammar.
public static Process ( string input_fname, string output_fname, string name_space, bool force ) : AST.AstNode>.MatchResult
input_fname string Input filename.
output_fname string Output filename.
name_space string Namespace for the generated parser.
force bool Force generation even if the existing parser is newer than the source.
return AST.AstNode>.MatchResult