clojush.experimental.tagged-code-macros

abbreviate-tagged-code-macros

(abbreviate-tagged-code-macros program)

Returns a copy of program with macros abbreviated as symbols. The returned program will not run as-is.

handle-tag-code-macro

(handle-tag-code-macro i state)

Given a tagged-code macro call and a push state, this returns the push state with the call expanded on the exec stack.

tagged-code-macro-erc

(tagged-code-macro-erc instruction tag-limit num-argument-tags num-result-tags additional-arg-generator)(tagged-code-macro-erc instruction tag-limit num-argument-tags num-result-tags)

Returns a function which, when called on no arguments, returns a tagged-code macro, which is a map.

tagged-code-macro?

(tagged-code-macro? i)

Retruns true if i is a tagged-code macro call.