ParseModule() public static méthode

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
Résultat Boo.Lang.Compiler.Ast.Module
Exemple #1
0
        public void Run()
        {
            ParserErrorHandler errorHandler = new ParserErrorHandler(OnParserError);

            foreach (ICompilerInput input in _context.Parameters.Input)
            {
                try
                {
                    using (System.IO.TextReader reader = input.Open())
                    {
                        BooParser.ParseModule(_tabSize, _context.CompileUnit, input.Name, reader, errorHandler);
                    }
                }
                catch (CompilerError error)
                {
                    _context.Errors.Add(error);
                }
                catch (antlr.TokenStreamRecognitionException x)
                {
                    OnParserError(x.recog);
                }
                catch (Exception x)
                {
                    _context.Errors.Add(CompilerErrorFactory.InputError(input.Name, x));
                }
            }
        }
Exemple #2
0
        protected virtual void ParseModule(string inputName, System.IO.TextReader reader)
        {
            var settings = My <ParserSettings> .Instance;

            BooParser.ParseModule(settings, _context.CompileUnit, inputName, reader);
        }
Exemple #3
0
 protected virtual void ParseModule(string inputName, System.IO.TextReader reader, ParserErrorHandler errorHandler)
 {
     BooParser.ParseModule(TabSize, _context.CompileUnit, inputName, reader, errorHandler);
 }