I’m enjoying the book very much, well done.
Just a bit confused trying ANTLR: in a CFG I would expect a repeat to “back-off” in order to match the next term (as also for a regular-expression), but it seems like there is more of a PEG like parsing?? eg:
zend : ‘0’..’9’+ ‘0’ – wont match “00” ?
I’m probably missing something, but currently baffled…
Cheers, Peter Cashin
PS I am a PEG fan, and don’t really want to do CFG matching like that!