Is there a formal definition for a size of a context-free grammar? The only definition I have seen so far is on this wiki page:
The size of a grammar is the sum of the sizes of its production rules, where the size of a rule is one plus the length of its right-hand side.
So, how does one define the size of a production rule's RHS?
For example, if I define my CFG as:
S : A
A : 'a' B | A
B : 'b'
What is the size of the production rule A?