Erik Rose

Results 244 comments of Erik Rose

Hi, Lucas. Thanks for getting in touch! RR diagrams are a neat idea, and I think they could be a selling point of the package, so let's see what happens...

Sorry for the delay. Of the 3 libs you found (if you want an opinion), I lean toward `railroad-diagrams`: easy installation, no external binaries to require, SVG output for the...

Sounds good to me. :-) Thanks for the update!

Nice job. It's impressive how short it is. I may have to borrow this as a canonical benchmark!

A couple ideas: 1. It would be almost trivial to create a sort of `NodeVisitor` class where a Grammar is built out of the concatenation of [parts of] the methods'...

Say…it occurs to me that we can perfectly well extract a grammar from visitor docstrings without having to actually use that visitor to visit. :-) So there's no real disadvantage...

If you get around to making a screencast, I'd love to see it or even help publicize it.

> But I can imagine a problem that "naming" could handle that "grabbing" couldn't (probably?): This is, I suspect, where the third type of tree transformation comes in: http://doc.pypy.org/en/latest/rlib.html#nonterminal-1-nonterminal-2-nonterminal-n. (Yes,...

I would nudge it in this direction: ``` python class Mini(object): ... def ifelse(self, (_, cond, _, cons, _, alt)): """ ~"if\s*" expr ~"\s*then\s*" expr ~"\s*else\s*" expr """ return self.eval(cons)...

I just finished multi-line support (#19) and am now turning my attention to benchmarking and optimizing, using your JSON decoder as a starting point. I got a real kick out...