def generate_tab_names(name):
package_name, module_name = name.rsplit('<STR_LIT:.>', <NUM_LIT:1>)<EOL>version = ply_dist.version.replace(<EOL>'<STR_LIT:.>', '<STR_LIT:_>') if ply_dist is not None else '<STR_LIT>'<EOL>data = (package_name, module_name, py_major, version)<EOL>lextab = '<STR_LIT>' % data<EOL>yacctab = '<STR_LIT>' % data<EOL>return lextab, yacctab<EOL>
Return the names to lextab and yacctab modules for the given module
name.  Typical usage should be like so::

>>> lextab, yacctab = generate_tab_names(__name__)