Skip to content

Instantly share code, notes, and snippets.

@pmichaud
Created November 3, 2009 20:30
Show Gist options
  • Select an option

  • Save pmichaud/225399 to your computer and use it in GitHub Desktop.

Select an option

Save pmichaud/225399 to your computer and use it in GitHub Desktop.
NQP:
PAST::Op.new(
:name('say'),
:pasttype('call'),
PAST::OP.new(
:name('&infix:<+>'),
:pasttype('call'),
PAST::Var.new( :name('$a'), :scope('lexical')),
PAST::Val.new( :value(1), :returns('Int') )
)
);
JSON:
{
name : 'say',
pasttype : 'call',
{
name : '&infix:<+>',
pasttype : 'call'
{ name : '$a', scope : 'lexical' },
{ value : 1, returns : 'Int' }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment