Skip to content

Instantly share code, notes, and snippets.

@zenhack
Created April 16, 2021 02:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zenhack/e97d552ea78cc87f38ea069c1f0a117e to your computer and use it in GitHub Desktop.
Save zenhack/e97d552ea78cc87f38ea069c1f0a117e to your computer and use it in GitHub Desktop.
@0xe2597668ccd0fb6a;
struct MonteValue {
union {
null @0 :Void;
bool @1 :Bool;
int @2 :Int32;
bigint @3 :Data;
double @4 :Float64;
bytes @5 :Data;
text @6 :Text;
list @7 :List(MonteValue);
cap @8 :MonteCap;
}
}
struct NamedArg {
key @0 :Text;
value @1 :MonteValue;
}
struct MonteMessage {
verb @0 :Text;
args @1 :List(MonteValue);
namedArgs @2 :List(NamedArg);
}
interface MonteCap {
sendMessage @0 :MonteMessage -> :MonteValue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment