Implementation of __iter__ for tuple, added tests
Added __iter__ that return self, added __eq__ for list, implemented StopIteration
Replaced structs with classes
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
update to a yet-newer llvm revision
Some initial refactoring work for arg passing

Replace a simple "num_args" argument with a packed struct that takes
num_args and adds num_keywords, has_varargs, and has_kwargs.  Tried
to add asserts in all the places that don't allow
keywords/varargs/starargs

Started refactoring things; got to the point of attempting
argument->parameter shuffling, but it's tricky if we allow every
compilation to have a different signature (used by builtins).
Really they all have the same signatures but different
specializations; to get to that point, need to add defaults.
Fix crash: register string iterator class