Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Even for lisp, you would have to define an extended syntax for it and modify the parser to additionally read and store whitespaces, comments and newlines.

Note I said AST + stream of lexical tokens. If you store the whitespace and comments as tokens, such information can be preserved, including formatting hints.



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

Search: