Last active
November 13, 2015 21:38
-
-
Save autonull/430e927e1c3c5af66920 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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