Test eval() and closure interaction.

Unlike some other languages, it looks like eval()
doesn't force the capturing of outer variables.

Good thing too, since pretty much any function call
could theoretically end up resolving to eval().
Implementation of __iter__ for tuple, added tests
Added __iter__ that return self, added __eq__ for list, implemented StopIteration
Replaced structs with classes
Merge branch 'master' of github.com:dropbox/pyston into github
Found the crash: need to register set_iterator_cls as a static root
Added implementation of 'dir'

Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>
Make the modules.py test succeed

Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>
Additional improvements to the dir implementation

- Added dir0 which would in theory return the local scope, but
  for just returns the content of the builtins module
- Added a unit test file for dir which won't print anything as the
  list sorting does not work as expected at the moment
  (missing full implementation) and the attributes are different
  as well (pyston has some CPython 2.7.5 does not have and vice versa)
- dir1 implements the lookup on a passed object
  - If the object has a __dir__ method, it will call it and return the result
    returned by this method
  - Otherwise all class and instance attributes and methods are returned
  - If the object has a __dict__ attribute, additional to the previous one
    it will return the keys from that one as well

Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>
Applied make format

Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>
Extended test, usage of callattrInternal and getattr_internal

Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>
Merge pull request #73 from kkszysiu/tuple_iter_implementation

Implementation of __iter__ for tuple, added tests
Format and lint checks
Merge pull request #64 from vinzenz/dir-builtin

Added implementation of 'dir'
whoops, somehow this didn't get merged
Start work on more elaborate argument handling

- Support parsing (but not running) **kw in function definitions
- more consistent assertion of what parts handle non-simple arguments or not
Makefile fixes
Default args weren't supported, but now it warns on them; take it out of this test case
Update to a newer version of llvm
clang-format changed again; these changes look better