Skip to content

Instantly share code, notes, and snippets.

@lastcanal
Created March 3, 2013 15:53
Show Gist options
  • Save lastcanal/5076622 to your computer and use it in GitHub Desktop.
Save lastcanal/5076622 to your computer and use it in GitHub Desktop.
1> luerl:load(<<"table = { hello=\"world\" }; return table">>).
{ok,{code,[{fdef,1,0,1,
[{push_lit,<<"hello">>},
{push_lit,<<"world">>},
{load_lit,[]},
{build_tab,1,0.0},
{store_gvar,<<"table">>},
multiple,
{return,1}]}],
{cst}}}
1> luerl:load(<<"table = { hello=\"world\" }; return table">>).
{ok,{functiondef,1,
[{'...',1}],
[{assign,1,
[{'NAME',1,table}],
[{table,1,
[{name_field,1,
{'NAME',1,hello},
{'STRING',1,<<"world">>}}]}]},
{';',1},
{return,1,[{'NAME',1,table}]}]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment