How do I find a sequence of 3 or more “a” followed by the same number of “b” with a BNF expression?
I know that
{<letter>} or {<letter> | <digit>}
are used for repetitive items occuring zero or more times but I don’t know how to get the number of times “a” has repeated to make sure “b” repeats the same number of times
Something like this:
This starts off with three
aand threebto take care of the minimum requirement. Then it allows the insertion ofaandbat the same time (keeping the amount the same) while repeating itself in the middle of the string.