BNF: change layout of bnf rules in lua table with precedence