C# Class Boo.Lang.Parser.BooParser

Inheritance: BooParserBase
显示文件 Open project: boo/boo-lang Class Usage Examples

Protected Properties

Property Type Description
Error ParserErrorHandler

Public Methods

Method Description
BooParser ( antlr lexer ) : System
CreateBooLexer ( int tabSize, string readerName, TextReader reader ) : antlr.TokenStream
CreateModuleName ( string readerName ) : string
CreateParser ( int tabSize, string readerName, TextReader reader, ParserErrorHandler errorHandler ) : BooParser
ParseExpression ( int tabSize, string name, string text, ParserErrorHandler errorHandler ) : Expression
ParseExpression ( string name, string text ) : Expression
ParseFile ( int tabSize, string fname ) : Boo.Lang.Compiler.Ast.CompileUnit
ParseFile ( string fname ) : Boo.Lang.Compiler.Ast.CompileUnit
ParseModule ( int tabSize, Boo.Lang.Compiler.Ast.CompileUnit cu, string readerName, TextReader reader, ParserErrorHandler errorHandler ) : Module
ParseReader ( int tabSize, string readerName, TextReader reader ) : Boo.Lang.Compiler.Ast.CompileUnit
ParseReader ( string readerName, TextReader reader ) : Boo.Lang.Compiler.Ast.CompileUnit
ParseString ( string name, string text ) : Boo.Lang.Compiler.Ast.CompileUnit
reportError ( antlr x ) : void

Protected Methods

Method Description
NewQuasiquoteModule ( LexicalInfo li ) : Module

Private Methods

Method Description
EncodeModuleName ( string name ) : string

Method Details

BooParser() public method

public BooParser ( antlr lexer ) : System
lexer antlr
return System

CreateBooLexer() public static method

public static CreateBooLexer ( int tabSize, string readerName, TextReader reader ) : antlr.TokenStream
tabSize int
readerName string
reader TextReader
return antlr.TokenStream

CreateModuleName() public static method

public static CreateModuleName ( string readerName ) : string
readerName string
return string

CreateParser() public static method

public static CreateParser ( int tabSize, string readerName, TextReader reader, ParserErrorHandler errorHandler ) : BooParser
tabSize int
readerName string
reader TextReader
errorHandler ParserErrorHandler
return BooParser

NewQuasiquoteModule() protected method

protected NewQuasiquoteModule ( LexicalInfo li ) : Module
li LexicalInfo
return Boo.Lang.Compiler.Ast.Module

ParseExpression() public static method

public static ParseExpression ( int tabSize, string name, string text, ParserErrorHandler errorHandler ) : Expression
tabSize int
name string
text string
errorHandler ParserErrorHandler
return Boo.Lang.Compiler.Ast.Expression

ParseExpression() public static method

public static ParseExpression ( string name, string text ) : Expression
name string
text string
return Boo.Lang.Compiler.Ast.Expression

ParseFile() public static method

public static ParseFile ( int tabSize, string fname ) : Boo.Lang.Compiler.Ast.CompileUnit
tabSize int
fname string
return Boo.Lang.Compiler.Ast.CompileUnit

ParseFile() public static method

public static ParseFile ( string fname ) : Boo.Lang.Compiler.Ast.CompileUnit
fname string
return Boo.Lang.Compiler.Ast.CompileUnit

ParseModule() public static method

public static ParseModule ( int tabSize, Boo.Lang.Compiler.Ast.CompileUnit cu, string readerName, TextReader reader, ParserErrorHandler errorHandler ) : Module
tabSize int
cu Boo.Lang.Compiler.Ast.CompileUnit
readerName string
reader TextReader
errorHandler ParserErrorHandler
return Boo.Lang.Compiler.Ast.Module

ParseReader() public static method

public static ParseReader ( int tabSize, string readerName, TextReader reader ) : Boo.Lang.Compiler.Ast.CompileUnit
tabSize int
readerName string
reader TextReader
return Boo.Lang.Compiler.Ast.CompileUnit

ParseReader() public static method

public static ParseReader ( string readerName, TextReader reader ) : Boo.Lang.Compiler.Ast.CompileUnit
readerName string
reader TextReader
return Boo.Lang.Compiler.Ast.CompileUnit

ParseString() public static method

public static ParseString ( string name, string text ) : Boo.Lang.Compiler.Ast.CompileUnit
name string
text string
return Boo.Lang.Compiler.Ast.CompileUnit

reportError() public method

public reportError ( antlr x ) : void
x antlr
return void

Property Details

Error protected_oe property

protected ParserErrorHandler Error
return ParserErrorHandler