Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created August 10, 2016 15:49
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 zoffixznet/e84f64befeb3ba80dbfe92cc71df9571 to your computer and use it in GitHub Desktop.
Save zoffixznet/e84f64befeb3ba80dbfe92cc71df9571 to your computer and use it in GitHub Desktop.
$ ./nqp-m training/compiler-basic --target=mast training/code
MAST::Frame name<>, cuuid<18>
Local types: 0<str>, 1<obj>,
Outer: <none>
Instructions:
[0] MAST::Op checkarity
MAST::IVal value<0>, size<16>, signed<1>
MAST::IVal value<0>, size<16>, signed<1>
[1] MAST::Op paramnamesused
[2] MAST::Annotated: file: training/code, line: 1, instructions:
MAST::Op const_s
MAST::Local index<0>
MAST::SVal value<Hello world>
MAST::Op say
MAST::Local index<0>
[3] MAST::Op return_s
MAST::Local index<0>
$ cat training/code | ./nqp-m training/compiler-basic --target=mast
MAST::Frame name<>, cuuid<18>
Local types: 0<str>, 1<obj>,
Outer: <none>
Instructions:
[0] MAST::Op checkarity
MAST::IVal value<0>, size<16>, signed<1>
MAST::IVal value<0>, size<16>, signed<1>
[1] MAST::Op paramnamesused
[2] MAST::Annotated: file: training/compiler-basic, line: 1, instructions:
MAST::Op const_s
MAST::Local index<0>
MAST::SVal value<Hello world>
MAST::Op say
MAST::Local index<0>
[3] MAST::Op return_s
MAST::Local index<0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment