--version', ' -v', ' --verbose'], '<arguments>': [ ' foo.py'], '<str>': ['<char>+'], '<char>': [ /0-9/, /a-z/, /A-Z/ '[', '\\', ']', '^', '_', '`', '{','|','}', '~'], '<filename>': ['<str>'], '<int>': ['(-)?<digit>+'], '<digit>': [/0-9/], '<n>': ['<int>'], '<globs>': ['<str>'], '<errors>': ['<str>'], '<line>': ['<int>']} Getopt to Context Free Grammar