Merge: interactive nit: main variables are preserved
authorJean Privat <jean@pryen.org>
Thu, 23 Nov 2017 16:12:59 +0000 (11:12 -0500)
committerJean Privat <jean@pryen.org>
Thu, 23 Nov 2017 16:12:59 +0000 (11:12 -0500)
commit99e69f4f33ff9ea541be5ed9111194300936d792
tree88d69a87c61ac9b206a6387971b94fe1b5406cb6
parent5e595c831c9d9914b325df37d706b1ee0e7bc471
parentb8f766eda39c8c585d788bfa32acb04990b391c3
Merge: interactive nit: main variables are preserved

This hacks (by refinement) the scope and interpretation services to load and save the states of the local variables of the main method.

`nitin` is now usable for everyday usages:

~~~raw
-->var sum=0
-->for i in [0..5[ do
...print i
...sum += i
...end
0
1
2
3
4
-->print sum
10
~~~

Pull-Request: #2584