Closed jvf closed 11 years ago
Is fixed (dev)... probably. Don't know, why the message appeared in the reportLogger, actually the regular javabite internal logger has been called... .
FUC: Parser recognize double-declaration and set the error. Javabite: Semantical Analysis recognize double-declaration and set the error.
Combined: Javabite-Parser + FUC-Semantical Analyser -> no one recognize the double-declaration
What is the correct and discussed version @leinge, @ and @Tkrauss ?
Hum, right! I don't think this has been discussed yet. It depends on where the SymbolTable is filled. What do you say?
Hum hum hum... I think, this should be Covered by the sa. With this decision, the parser Deals with syntactically correctness and the sa with semantics. Imho, this is the best Way to go, isn't it?
Am 09.07.2013 um 23:33 schrieb leinge notifications@github.com:
Hum, right! I don't think this has been discussed yet. It depends on where the SymbolTable is filled. What do you say?
— Reply to this email directly or view it on GitHub.
If the parser should only handle context-free grammer, the sa would be the correct place for it. But I guess it is a lot easy in the parser, as it fills the symbol table and that just needs to give this error.
As you already said, the parser works independent of its context. The context may be the current block. Therefore, it cannot decide wether it is a double declaration under special circumstances. I recognized this weak spec. of the symbol table in the parser recently, i think the most general approach is:
What is the status? Who is going to fix this? Are we getting a fix until tomorrow?
I didn't change my mind, i think the context-sensitive errors may not be thrown by the parser. It shouldn't be very complicate to change that in the fuc-implementation, is it? I'm reluctant to implement such a context-sensitive behavior in the parser.
You're right Till! We simply haven't had much time today; that's the only reason for the delay. I'm currently working on it..
fixed
Example Stack Trace:
Affected Tests: