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

Isn't the theory that for a regular grammar you can use regexp, for a context-free grammar you need sth. with a stack (= parser).

HTML isn't regular, though, is it? So if there's not (even an implicit) stack in his example, this won't work for the general case.



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

Search: