With this parser indentation is not used as a block delimiter but COLON end. class Foo: def foo(): print 'Hello' end end
Inheritance: BooParserBase
Exemple #1
0
		public static WSABooParser CreateParser(int tabSize, string readerName, TextReader reader, Boo.Lang.Parser.ParserErrorHandler errorHandler)
		{
			var parser = new WSABooParser(CreateBooLexer(tabSize, readerName, reader));
			parser.setFilename(readerName);
			parser.Error += errorHandler;
			return parser;
		}
Exemple #2
0
        public static WSABooParser CreateParser(int tabSize, string readerName, TextReader reader, Boo.Lang.Parser.ParserErrorHandler errorHandler)
        {
            var parser = new WSABooParser(CreateBooLexer(tabSize, readerName, reader));

            parser.setFilename(readerName);
            parser.Error += errorHandler;
            return(parser);
        }
Exemple #3
0
        public static Module ParseModule(int tabSize, CompileUnit cu, string readerName, TextReader reader, Boo.Lang.Parser.ParserErrorHandler errorHandler)
        {
            WSABooParser parser = CreateParser(tabSize, readerName, reader, errorHandler);

            Module module = parser.start(cu);

            module.Name = Boo.Lang.Parser.BooParser.CreateModuleName(readerName);
            return(module);
        }
Exemple #4
0
 override protected void ParseModule(string inputName, System.IO.TextReader reader, ParserErrorHandler errorHandler)
 {
     WSABooParser.ParseModule(this.TabSize, this.Context.CompileUnit, inputName, reader, errorHandler);
 }