Skip to content

Instantly share code, notes, and snippets.

@autonull
Last active November 13, 2015 21:38
Show Gist options
  • Select an option

  • Save autonull/430e927e1c3c5af66920 to your computer and use it in GitHub Desktop.

Select an option

Save autonull/430e927e1c3c5af66920 to your computer and use it in GitHub Desktop.
old syntax:
pgm0:(pgm |[] |[] |[] []
(inj []
(str "Hello World")
[SYNC_FRONT now 1 forever root nil]
)
(set [this.vw.act 0])
1) |[]
new syntax 1:
Program {
id: pgm0
templates: []
inputs: []
saliencyPropagationThreshold: 1
productions: [
inject (String {
content: "Hello World"
view.sync: FRONT
view.injectionTime: now()
view.saliency: 1.0
view.group: root
view.lifetime: FOREVER
view.origin: None
}),
set (this.view.activation, 0)
]
view: None
}
new syntax 2:
pgm0: {
template: (),
input: (),
saliencyPropagationThreshold: 1
production: (
inject( string({
content: "Hello World",
view: {
sync: FRONT,
injectionTime: now(),
saliency: 1.0,
group: root,
lifetime: FOREVER,
origin: None
}
})),
set(this.view.activation, 0)
),
view: none
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment