diff options
author | Eduardo Julian | 2018-05-02 02:01:43 -0400 |
---|---|---|
committer | Eduardo Julian | 2018-05-02 02:01:43 -0400 |
commit | 0c38ade25c2b7f4456ed29b22b2585b407097311 (patch) | |
tree | f96b27cbef783711dd6792a8d4e317284deca0d4 /stdlib/source/lux/concurrency/actor.lux | |
parent | 0f1be1eddc30bcff15b5da36b80f2b286fe0908d (diff) |
- Changed the syntax for the parameters of "syntax:".
Diffstat (limited to 'stdlib/source/lux/concurrency/actor.lux')
-rw-r--r-- | stdlib/source/lux/concurrency/actor.lux | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/stdlib/source/lux/concurrency/actor.lux b/stdlib/source/lux/concurrency/actor.lux index a50b7a046..0e85758ed 100644 --- a/stdlib/source/lux/concurrency/actor.lux +++ b/stdlib/source/lux/concurrency/actor.lux @@ -195,11 +195,12 @@ (p.maybe (s.form (p.seq (s.form (p.after (s.this (' stop)) stop-args)) s.any)))))) -(syntax: #export (actor: [export csr.export] - [[_name _vars] actor-decl^] - [annotations (p.default cs.empty-annotations csr.annotations)] +(syntax: #export (actor: + {export csr.export} + {[_name _vars] actor-decl^} + {annotations (p.default cs.empty-annotations csr.annotations)} state-type - [[?handle ?stop] behavior^]) + {[?handle ?stop] behavior^}) {#.doc (doc "Defines an actor, with its behavior and internal state." (actor: #export Counter Nat @@ -289,9 +290,11 @@ (p.either (s.form (p.seq s.symbol (p.some s.local-symbol))) (p.seq s.symbol (:: p.Monad<Parser> wrap (list))))) -(syntax: #export (message: [export csr.export] [[actor-name actor-vars] reference^] - [signature signature^] - [annotations (p.default cs.empty-annotations csr.annotations)] +(syntax: #export (message: + {export csr.export} + {[actor-name actor-vars] reference^} + {signature signature^} + {annotations (p.default cs.empty-annotations csr.annotations)} body) {#.doc (doc "A message can access the actor's state through the state parameter." "A message can also access the actor itself through the self parameter." |