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

Consider this text: /a+ ”/ How would you tokenize this if you don’t know the grammar context? If it is a regex, the space is significant - it is part of the pattern. If it is a divsion, the quote will start a string.


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

Search: