The thing I'd like to do right now is turn on :w for all rules. A Fortran grammar might want to turn on :i for all rules.
Maybe add modifiers to the grammar declaration? grammar Fortran :i { ... } It would also be convenient to allow the :w modifier to have lexically scoped behavior so a grammar can change the definition of a word. For example, a C grammar might want to skip comments. Would it be better to create a new (user-defined) modifier instead of changing the meaning of :w? BTW, how do we create user-defined modifiers? - Ken