# E402 Grammar too large A grammar exceeds a limit on its size: more than 1000 instances of templates, instances that expand into more than 100,000 expressions together, more than 64 flags, more than 65,535 field or capture names, a rule without a node of its own that passes on more than 1000 fields to the node around it, such rules calling each other with fields that take more than 10,000,000 steps to count, more than 1000 grammars taken in through those it extends and imports, more than 64 MiB of their texts together, or a grammar text too long to read. The limits keep the work of reading a grammar bounded, whatever the grammar. Each instance of a template is a rule of its own, so a template whose arguments grow with every use expands without end. ```fpeg start: t<"b"> t: "a" t | x ``` ```text grammar.fpeg:2:11: error[E402]: the instances of t expand into too many expressions ``` Pass arguments that do not grow, or write the repetition with an operator. ```fpeg start: t<"b"> t: "a" t | x ```