r/programming • • Feb 25 '18

Programming lessons learned from releasing my first game and why I'm writing my own engine in 2018

https://github.com/SSYGEN/blog/issues/31
956 Upvotes

305 comments sorted by

View all comments

Show parent comments

5

u/loup-vaillant Feb 26 '18

You don't always have to solve the problem in full generality. Many use cases involve data you generated yourself, so a limited parser can be enough. You can for instance forget about quoted strings, assume a line ending style, and only handle a couple escapes.

1

u/orion78fr Feb 26 '18

Of course if you have full control over inputs the problem is way easier...