Lichen

tests/nested.py

132:637f2b13210a
2016-10-25 Paul Boddie Added parameter table code and position constant generation. Removed the parameter list adjustments for instantiators. Fixed method and function structure generation. Fixed argument limit calculations. Fixed class type position attribute generation for non-classes. Fixed bound method and parameter table references. Updated generated instantiators to update the initial context argument. Added CFLAGS to the Makefile.
     1 a = 4     2      3 def f(x):     4     def g(y, x=x):     5         def h(z, x=x, y=y):     6             return x, y, z, a     7         return h     8     return g     9     10 result = f(1)(2)(3)    11 assert result == (1, 2, 3, 4)