Merge: Nitin tests
authorJean Privat <jean@pryen.org>
Wed, 26 Apr 2017 14:38:25 +0000 (10:38 -0400)
committerJean Privat <jean@pryen.org>
Wed, 26 Apr 2017 14:38:25 +0000 (10:38 -0400)
commit6e9e47e26ba9fdf5fcb756798b01f4336d7b22e8
tree8ee2d75181f4dc756de9f1e33b9bba2628f67bb0
parented9478a3be717c06bb4fd19a374f204b1b7b3f21
parent4851e339ffa88aa51e1c21057ad133ca44d52a0d
Merge: Nitin tests

Add a basic test for the nit interactive interpreter.

I also added a new engine but most test fails because:

Local variables in main are too much local, so the following fail because `a` is unknown in the second line. I plan to solve this problem.

~~~
var a = 1
print a
~~~

Classes and top-level methods are analysed one after the other so the following fails because `B` is unknown while processing the first class. I do not plan to solve this problem as I think this is the expected behavior when interactive.

~~~
class A
   var b: B
end
class B
end
~~~

Pull-Request: #2410