Parsing numbers in LL(1) grammar.
Grammar for numbers:
NUMS --> NUM NUMS
NUMS -->
NUM --> 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
This grammar is belongs in LL(1) grammar type.
Parser for this grammar done in parse.py:
it/security/free/math/sci/music
English version of brain-break-ru.blogspot.com. Enjoy!
Parser for this grammar done in parse.py: