Results 22 comments of Ben Lynn

I wrote nex way back in the Go 1.0 days, and looks like a lot has changed since then. I rarely use Go or yacc-like tools these days, so I'm...

I'm afraid nex has no start conditions. I wonder if Nex's nested nature would allow something like /BETWEEN.*AND/ < /expr/ but even then you'd have to rewrite the expr regexes...

Thanks, and sorry it's taken so long for me to respond. I think you're right but I'm afraid I wrote that code a long time ago, and I haven't had...

There are no design constraints or guarantees: nex started as a toy weekend project to help me get acquainted with Go. My understanding was that channels and goroutines are cheap,...

Looks good. Replacing a channel with a callback should be harmless. I'd be happy to merge a commit with this change.

I can't be sure anymore, but I have a feeling that the break is needed when there are nested patterns. Can you build a patched version of nex then run...

If it's easiest, panic and recover are fine. Firstly, this is generated code, and secondly, I have no qualms about using panic and recover for control flow. In fact, I...