Hacker News new | past | comments | ask | show | jobs | submit login

Reminds of a trick I do with mustache.java. Templates can not only be used to generate output, but because of the declarative nature of the mustache language they can be used to parse output back into data that in combination with the template would generate that output. Makes for pretty intuitive parsers. In my case all text that isn't templating declarations are regexes.






Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: