13 ms·
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, i
by scrrr 15y ago
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.