View previous topic :: View next topic |
Author |
Message |
Lutger
Joined: 25 May 2006 Posts: 91
|
Posted: Wed Aug 20, 2008 2:55 am Post subject: feature idea: ignore error |
|
|
Do you think it may be possible and useful to implement an 'ignore this error' feature in descent?
Descent has become quite good at parsing for syntax errors, but the D2 language is still changing, and then we'll have D3, etc. Currently when I want to use template constraints or manifest enums, it gets in the way of normal coding, sometimes enough to comment such code out temporarily. If I could just click on the error, or even the line, and mark that to be ignored for syntax checking that would be an acceptable work-around.
I have no idea how complicated that would be, what do you think? |
|
Back to top |
|
|
asterite
Joined: 01 Jun 2006 Posts: 235 Location: Buenos Aires, Argentina
|
Posted: Wed Aug 20, 2008 5:49 am Post subject: |
|
|
Hi Lutger,
The idea is nice, but I don't think it's possible. I already ported the lexer and parser to support template constraints in trunk, I'll soon commit that. In the current version, the lexer already knows all the tokens it needs to know. But if the parser doesn't know that after a template an if can come with a parenthesis and then an expression, when it encounter it, it will definitely signal a syntax error. Ok, I can add an option to ignore syntax errors. But then the parser might get confused and not parse well the rest of the file. As a consequence, not all the symbols will be defined correctly for Descent, etc.
I really hope to commit soon. I've been kind of busy lately. I already have enum constants and template constraints here in my code... but each time I implement a D feature, Walter releases some more. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|