Created
December 31, 2018 00:07
-
-
Save MichaelSp/5bc013b1d008e11e81c65f2ee83ab78b to your computer and use it in GitHub Desktop.
This file contains 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
(class | |
(const nil :Operation) | |
(const | |
(const nil :Hyperstack) :ServerOp) | |
(begin | |
(send nil :param | |
(sym :acting_user) | |
(hash | |
(pair | |
(sym :nils) | |
(true)))) | |
(send nil :param | |
(sym :counter)) | |
(send nil :outbound | |
(sym :message)) | |
(block | |
(send nil :step) | |
(args) | |
(send | |
(send nil :params) :message= | |
(str "hello"))) | |
(block | |
(send nil :step) | |
(args) | |
(send | |
(send | |
(send nil :params) :counter) :+ | |
(int 1))) | |
(defs | |
(self) :serialize_params | |
(args | |
(arg :hash)) | |
(begin | |
(op-asgn | |
(send | |
(lvar :hash) :[] | |
(str "counter")) :+ | |
(int 1)) | |
(lvar :hash))) | |
(defs | |
(self) :deserialize_params | |
(args | |
(arg :hash)) | |
(begin | |
(op-asgn | |
(send | |
(lvar :hash) :[] | |
(str "counter")) :+ | |
(int 1)) | |
(lvar :hash))) | |
(defs | |
(self) :serialize_response | |
(args | |
(arg :response)) | |
(send | |
(lvar :response) :+ | |
(int 1))) | |
(defs | |
(self) :deserialize_response | |
(args | |
(arg :response)) | |
(send | |
(lvar :response) :+ | |
(int 1))) | |
(defs | |
(self) :serialize_dispatch | |
(args | |
(arg :hash)) | |
(begin | |
(op-asgn | |
(send | |
(lvar :hash) :[] | |
(sym :message)) :+ | |
(str " serialized")) | |
(lvar :hash))) | |
(defs | |
(self) :deserialize_dispatch | |
(args | |
(arg :hash)) | |
(begin | |
(op-asgn | |
(send | |
(lvar :hash) :[] | |
(sym :message)) :+ | |
(str " deserialized")) | |
(lvar :hash))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment