Mercurial > repos > tabletprog
diff modules/symbols.tp @ 263:98147071baf6
Add support for llMessage definitions in buildMethodTables
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 14 Jul 2014 09:30:31 -0700 |
parents | 004946743678 |
children | aea99b93cf2f |
line wrap: on
line diff
--- a/modules/symbols.tp Mon Jul 14 09:29:49 2014 -0700 +++ b/modules/symbols.tp Mon Jul 14 09:30:31 2014 -0700 @@ -53,11 +53,17 @@ buildMethodTable <- :tree { _object <- ast obj _assignment <- ast assignment + _call <- ast call + tree fold: table with: :acc el { if: (el nodeType) = _object { (el messages) fold: acc with: :acc msg { if: (msg nodeType) = _assignment { acc defineMethod: ((msg to) name) + } else: { + if: (msg nodeType) = _call && (msg llMessage?) { + acc defineMethod: (((msg args) value) name) + } } acc }