Vladimir Keleshev
Vladimir Keleshev
I.e. somehow avoid method signatures and tuple unpacking
Yeah, I will be missing tuples in signatures. Completely opposite direction of what I want from Python :-). (E.g. CoffeeScript even allows unpacking of objects in signatures like `func =...
:grinning:
I just published the screencast I was talking about: http://www.youtube.com/watch?v=1h1mM7VwNGo The code is here: https://github.com/halst/mini On reddit: http://www.reddit.com/r/programming/comments/1dfn16/how_to_write_an_interpreter/
In my [PEG implementation](https://github.com/halst/peg.rb) I just used Ford's grammar, and am very happy about it. I found it very easy to [bootstrap the grammar](https://github.com/halst/peg.rb) too. Ford's grammar defines character ranges,...
Well, there is a chance to interoperate with my [halst/peg.rb](https://github.com/halst/peg.rb) library :-). Also, I usually follow this rule: if I don't know any better—just pick something existing. That's how docopt...
If you can make Parsimonious' syntax a strict superset of Fords'—that would make me really happy.
[Yes](https://github.com/keleshev/schema/pull/54#issuecomment-77154779) :smile:
Yeah, compelling. Let me see how it looks ``` # now Schema({ 'shape': str, Optional('color', default='blue'): str, str: str, }) # proposed Dict( ('shape', str), (Optional('color', default='blue'), str), (str, str),...
Sorry, the error message is misleading. There are two problems with that schema: 1. `options` hash is missing a `skip_foo_bar` key. You need to either include it, or something like...