{"action":"opened","issue":{"url":"https://api.github.com/repos/ihh/bracery/issues/1","repository_url":"https://api.github.com/repos/ihh/bracery","labels_url":"https://api.github.com/repos/ihh/bracery/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ihh/bracery/issues/1/comments","events_url":"https://api.github.com/repos/ihh/bracery/issues/1/events","html_url":"https://github.com/ihh/bracery/issues/1","id":326773792,"number":1,"title":"Functions to push and pop (i.e. define local scope for) variables","user":{"login":"ihh","id":54113,"avatar_url":"https://avatars2.githubusercontent.com/u/54113?v=4","gravatar_id":"","url":"https://api.github.com/users/ihh","html_url":"https://github.com/ihh","followers_url":"https://api.github.com/users/ihh/followers","following_url":"https://api.github.com/users/ihh/following{/other_user}","gists_url":"https://api.github.com/users/ihh/gists{/gist_id}","starred_url":"https://api.github.com/users/ihh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihh/subscriptions","organizations_url":"https://api.github.com/users/ihh/orgs","repos_url":"https://api.github.com/users/ihh/repos","events_url":"https://api.github.com/users/ihh/events{/privacy}","received_events_url":"https://api.github.com/users/ihh/received_events","type":"User","site_admin":false},"labels":[{"id":925946545,"url":"https://api.github.com/repos/ihh/bracery/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-26T23:13:01Z","updated_at":"2018-05-26T23:13:01Z","closed_at":null,"author_association":"OWNER","body":"`&push^varname` and `&pop^varname` should push and pop the variable `varname`\r\n\r\nCan be implemented by having a special member of the `vars` object with (hack alert!) a key that is not a syntactically valid variable name, e.g. `.STACK`. Then `vars[\".STACK\"]` is an object whose keys are variable names, and whose values are _arrays_ representing stacks. (Probably to minimize network bytes it should be `.` rather than `.STACK`)\r\n\r\n`&push{^var1^var2^var3}` should be equivalent to `&push^var1&push^var2&push^var3`, and similarly `&pop{^var1^var2^var3}` (note that the order of `var1`, `var2`, and `var3` is irrelevant because each has its own stack).\r\n\r\nThe parser should not allow anything other than a variable to be pushed or popped, so e.g. `&push{^var1 $x}` should be invalid. Whitespace should be stripped so `&push{^var1 ^var2 ^var3}` is the same as `&push{^var1^var2^var3}`."}}
{"actor":{"display_login":"ihh"}}