Niko Matsakis
Niko Matsakis
Ah, probably we apply the attributes to the submodules just because it's not obvious how to apply them .. otherwise?
You don't want to have big tokens like "to maximum ...". Instead, make those individual words each be a token, like so: "to" "maximum" etc. So your grammar might look...
> In any case, I think LALRPOP would be a fine choice for this But I'm not sure, you have to try and see =) and there might be other...
e.g., ``` pub mod_values: ModValues = { => ..., }; Thing = { "Cold" "Resistance", "Lightning" "Damage", ... }; ```
I've been thinking about this more and I am feeling pretty good about `match` declarations as the means of writing tokenizer rules. To start with I'd probably just permit: ```...
@davll yes, I am hoping to solve that another way (https://github.com/nikomatsakis/lalrpop/issues/195). In any case I purposefully left it out of this initial design.
er, wrong issue, but still true :P
Not currently possible, but I've been wondering how long until somebody asks for it. :) Seems like a good idea. I have to think about how to do that. Shouldn't...
I was thinking of adding a kind of "include" directive, so that one lalrpop file can include others. (These included files would not be processed by the main driver; probably...
Discussing with @wagenet revealed an additional feature-request for LALRPOP modules: the ability to declare generic parameters on them, so that one can have common code that is included in multiple...