Load the grammar tables from the text files written by pgen.
(self, graminit_h, graminit_c)
| 47 | """ |
| 48 | |
| 49 | def run(self, graminit_h, graminit_c): |
| 50 | """Load the grammar tables from the text files written by pgen.""" |
| 51 | self.parse_graminit_h(graminit_h) |
| 52 | self.parse_graminit_c(graminit_c) |
| 53 | self.finish_off() |
| 54 | |
| 55 | def parse_graminit_h(self, filename): |
| 56 | """Parse the .h file written by pgen. (Internal) |