This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| | rewrite | | |
| rewrite := RBParseTreeRewriter new | |
| replace: 'self parse: `#l `{:node :dic | | |
| | n | | |
| n := ''source'' , (node methodNode selector allButFirst: 4). | |
| dic at: #n put: n. | |
| PythonParserTests compile: (RBParser parseMethod: n, '' ^ '', `#l newSource) formattedCode classified: ''resources''. | |
| true }' | |
| with: 'self parse: `{:dic | | |
| RBParser parseExpression: ''self '', (dic at: #n) }'. |
NewerOlder