| OLD | NEW |
| 1 # ----------------------------------------------------------------------------- | 1 # ----------------------------------------------------------------------------- |
| 2 # ply: yacc.py | 2 # ply: yacc.py |
| 3 # | 3 # |
| 4 # Copyright (C) 2001-2011, | 4 # Copyright (C) 2001-2011, |
| 5 # David M. Beazley (Dabeaz LLC) | 5 # David M. Beazley (Dabeaz LLC) |
| 6 # All rights reserved. | 6 # All rights reserved. |
| 7 # | 7 # |
| 8 # Redistribution and use in source and binary forms, with or without | 8 # Redistribution and use in source and binary forms, with or without |
| 9 # modification, are permitted provided that the following conditions are | 9 # modification, are permitted provided that the following conditions are |
| 10 # met: | 10 # met: |
| (...skipping 3256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3267 # Write a pickled version of the tables | 3267 # Write a pickled version of the tables |
| 3268 if picklefile: | 3268 if picklefile: |
| 3269 lr.pickle_table(picklefile,signature) | 3269 lr.pickle_table(picklefile,signature) |
| 3270 | 3270 |
| 3271 # Build the parser | 3271 # Build the parser |
| 3272 lr.bind_callables(pinfo.pdict) | 3272 lr.bind_callables(pinfo.pdict) |
| 3273 parser = LRParser(lr,pinfo.error_func) | 3273 parser = LRParser(lr,pinfo.error_func) |
| 3274 | 3274 |
| 3275 parse = parser.parse | 3275 parse = parser.parse |
| 3276 return parser | 3276 return parser |
| OLD | NEW |