dollabs / pamela

Probabalistic Advanced Modeling and Execution Learning Architecture
Apache License 2.0
233 stars 13 forks source link

Plant functions cannot begin with any of the reserved function symbols #121

Closed dcerys closed 7 years ago

dcerys commented 7 years ago

Plant functions cannot begin with any of the reserved function symbols (e.g., ask, tell).

The parser errors whenever it encounters a method call to a symbol that begins with one of the reserved-fn-symbols.

E.g.,

(defpclass main []
  :methods [(defpmethod main []
              (parallel
               (tell-branch)))

            (defpmethod tell-branch [])

            ])

This test can now be found in https://github.com/dollabs/pamela/blob/master/test/pamela/pending/tell-branch.pamela which should be promoted as an IR test when this issue has been resolved.