Maybe you could also use vertical bars to make it neater: N -> níki | xikár There are also other resources to make your life even easier, like , *, etc... Anyway, do you consider making a parser of it? I mean, a computer program? And, nice project indeed. -- Pedro B Arruda.