FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

feature idea: ignore error

 
Post new topic   Reply to topic     Forum Index -> Descent
View previous topic :: View next topic  
Author Message
Lutger



Joined: 25 May 2006
Posts: 91

PostPosted: Wed Aug 20, 2008 2:55 am    Post subject: feature idea: ignore error Reply with quote

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
View user's profile Send private message
asterite



Joined: 01 Jun 2006
Posts: 235
Location: Buenos Aires, Argentina

PostPosted: Wed Aug 20, 2008 5:49 am    Post subject: Reply with quote

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. Razz
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Descent All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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