mirror of
https://github.com/twiglet/cs2j.git
synced 2025-01-18 13:15:17 +01:00
Don't throw away error messages\!
This commit is contained in:
parent
f9338afe1d
commit
adf31bc9fe
@ -195,12 +195,15 @@ namespace RusticiSoftware.Translator.CSharp
|
|||||||
|
|
||||||
ICharStream input = new ANTLRFileStream(fullName);
|
ICharStream input = new ANTLRFileStream(fullName);
|
||||||
|
|
||||||
PreProcessor lex = new PreProcessor();;
|
PreProcessor lex = new PreProcessor();
|
||||||
lex.AddDefine(cfg.MacroDefines);
|
lex.AddDefine(cfg.MacroDefines);
|
||||||
lex.CharStream = input;
|
lex.CharStream = input;
|
||||||
|
lex.TraceDestination = Console.Error;
|
||||||
|
|
||||||
CommonTokenStream tokens = new CommonTokenStream(lex);
|
CommonTokenStream tokens = new CommonTokenStream(lex);
|
||||||
csParser p = new csParser(tokens);
|
csParser p = new csParser(tokens);
|
||||||
|
p.TraceDestination = Console.Error;
|
||||||
|
|
||||||
csParser.compilation_unit_return parser_rt = p.compilation_unit();
|
csParser.compilation_unit_return parser_rt = p.compilation_unit();
|
||||||
|
|
||||||
if (parser_rt == null || parser_rt.Tree == null)
|
if (parser_rt == null || parser_rt.Tree == null)
|
||||||
@ -238,6 +241,8 @@ namespace RusticiSoftware.Translator.CSharp
|
|||||||
|
|
||||||
TemplateExtracter templateWalker = new TemplateExtracter(csTree);
|
TemplateExtracter templateWalker = new TemplateExtracter(csTree);
|
||||||
templateWalker.Filename = fullName;
|
templateWalker.Filename = fullName;
|
||||||
|
templateWalker.TraceDestination = Console.Error;
|
||||||
|
|
||||||
templateWalker.compilation_unit(cfg, AppEnv);
|
templateWalker.compilation_unit(cfg, AppEnv);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user