C# Class Boo.Lang.Parser.WSABooParser

With this parser indentation is not used as a block delimiter but COLON end. class Foo: def foo(): print 'Hello' end end
Inheritance: BooParserBase
Datei anzeigen Open project: boo/boo-lang Class Usage Examples

Protected Properties

Property Type Description
Error Boo.Lang.Parser.ParserErrorHandler

Public Methods

Method Description
CreateBooLexer ( int tabSize, string readerName, TextReader reader ) : antlr.TokenStream
CreateParser ( int tabSize, string readerName, TextReader reader, Boo errorHandler ) : WSABooParser
ParseModule ( int tabSize, Boo.Lang.Compiler.Ast.CompileUnit cu, string readerName, TextReader reader, Boo errorHandler ) : Module
WSABooParser ( antlr lexer ) : System
reportError ( antlr x ) : void

Method Details

CreateBooLexer() public static method

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

CreateParser() public static method

public static CreateParser ( int tabSize, string readerName, TextReader reader, Boo errorHandler ) : WSABooParser
tabSize int
readerName string
reader TextReader
errorHandler Boo
return WSABooParser

ParseModule() public static method

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

WSABooParser() public method

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

reportError() public method

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

Property Details

Error protected_oe property

protected Boo.Lang.Parser.ParserErrorHandler Error
return Boo.Lang.Parser.ParserErrorHandler