Simple DSL for nonterminals

#88 · closed · 1 comments

View on GitHub ↗

robrix

``` HMRMap(HMRAnd(HMREqual(x), HMRContain(y)), f) ``` is not super idiomatic/readable. ``` [[HMREqual(x) and:HMRContain(y)] map:f] ``` is better. Simplifying terminals is slightly trickier. May just want to expose the class names: ``` [[[HMREqual :x] and:[HMRContain :y] map:f] ``` (I’m not seriously suggesting `:` as the selector, I’m just not sure what it _should_ be.)

Comments

robrix

`x.hmr_literal`