+ 1
Is it possible to handle all the syntax errors for a programming language ?
Now im designing an interpreter for some language. I would like to know if it is possible to handle all the syntax error. Otherwise, what would be the best approaches ?
2 ответов
+ 1
You could try making it so that any common errors regarding syntax are still interpreted as the correct lines. For example, people say "me and (someone else),' even though it's incorrect. Our minds just interperate it correctly, still, by knowing that both mean the same thing.
+ 1
If you are not strict with errors people will over time accept the “errors" as part of the language instead of trying to correct them