Is it possible to handle all the syntax errors for a programming language ? | Sololearn: Learn to code for FREE!
Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcję
+ 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 ?

21st May 2018, 1:24 PM
🌍 TATOU
2 odpowiedzi
+ 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.
21st May 2018, 1:40 PM
What was my name again?
What was my name again? - avatar
+ 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
21st May 2018, 1:57 PM
Max
Max - avatar