Skip to content

Instantly share code, notes, and snippets.

@omochi
Last active August 29, 2015 14:26
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 omochi/bc851a89393422a4bd95 to your computer and use it in GitHub Desktop.
Save omochi/bc851a89393422a4bd95 to your computer and use it in GitHub Desktop.
SourceFile(
types={
Box=ClassDef(
let=[value]
name=null
fields=[
Field(
value=Ref(name=value)
)
]
)
Pair=ClassDef(
let=[value0, value1]
name=null
fields=[
Field(
value0=Ref(name=value0)
)
Field(
value1=Ref(name=value1)
)
]
)
IntBox=Apply(
let=[]
target=Ref(name=Box)
params={
name=value
param=Ref(name=Int)
}
)
StringBox=Apply(
let=[]
target=Ref(name=Box)
params={
name=value
param=Ref(name=String)
}
)
BoxBox=ClassDef(
let=[Box]
name=null
fields=[
Field(
box=Apply(
let=[]
target=Ref(name=Box)
params={
name=value
param=Ref(name=value)
}
)
)
]
)
RefBox=Apply(
let=[value]
target=Ref(name=Box)
params={
name=value
param=Ref(name=value)
}
)
Hoge=Apply(
let=[aaa]
target=ClassDef(
let=[]
name=null
fields=[
Field(
aaa=Ref(name=aaa)
)
]
)
params={
name=aaa
param=Ref(name=Int)
}
)
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment