{"action":"closed","issue":{"url":"https://api.github.com/repos/kcecireyes/JIT/issues/7","labels_url":"https://api.github.com/repos/kcecireyes/JIT/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/kcecireyes/JIT/issues/7/comments","events_url":"https://api.github.com/repos/kcecireyes/JIT/issues/7/events","html_url":"https://github.com/kcecireyes/JIT/issues/7","id":31872030,"number":7,"title":"Add scope checking to AST.","user":{"login":"rkuykendall","id":796717,"avatar_url":"https://avatars.githubusercontent.com/u/796717?v=3","gravatar_id":"","url":"https://api.github.com/users/rkuykendall","html_url":"https://github.com/rkuykendall","followers_url":"https://api.github.com/users/rkuykendall/followers","following_url":"https://api.github.com/users/rkuykendall/following{/other_user}","gists_url":"https://api.github.com/users/rkuykendall/gists{/gist_id}","starred_url":"https://api.github.com/users/rkuykendall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkuykendall/subscriptions","organizations_url":"https://api.github.com/users/rkuykendall/orgs","repos_url":"https://api.github.com/users/rkuykendall/repos","events_url":"https://api.github.com/users/rkuykendall/events{/privacy}","received_events_url":"https://api.github.com/users/rkuykendall/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2014-04-20T20:36:57Z","updated_at":"2015-11-04T17:25:21Z","closed_at":"2015-11-04T17:25:21Z","body":"> Create an AST to do type checking and semantic checking [before translation to python].\r\n> \r\n> Type checking and scope checking: traverse the tree and add information as you go: a table (dictionary, matrix data structure) of the variables that are in scope and types. For any given line, check whether vars are in scope and types for operations (int + int, etc)\r\n> \r\n> Symbol table:\r\n> When you get to a var declaration, add the function or whatever is in scope to the table, pass it down to the next node. When it goes out of scope, stop the branch. "}}