- astropy.utils.parsing.yacc(tabmodule, package)#
Create a parser from local variables.
It automatically compiles the parser in optimized mode, writing to
tabmodulein the same directory as the calling file.
This function is thread-safe, and the returned parser is also thread-safe, provided that it does not share a lexer with any other parser.
It is only intended to work with parsers defined within the calling function, rather than at class or module scope.