Merge: Use more intern methods and add intern factories for NativeString and NativeArray
authorJean Privat <jean@pryen.org>
Wed, 18 Jun 2014 01:58:58 +0000 (21:58 -0400)
committerJean Privat <jean@pryen.org>
Wed, 18 Jun 2014 01:58:58 +0000 (21:58 -0400)
commit63d49e47e0be07adb8525a328ab3b4cdf2c95acb
tree428f4427c005d5c3ce37e6f92ad3210d71b32863
parent34eefe9b154081809f663d7159068613bd6e41dc
parent842cb56c7ce9c3eb6ca8b5c28a539de1aee096c9
Merge: Use more intern methods and add intern factories for NativeString and NativeArray

The first commits enhance the parser to accept top-level intern methods (needed for `exit`) and intern `new` factories (analogous to extern `new` factories). Thus fix #493

The rest of the series implements two intern `new` factories, one for NativeString and one for NativeArray.
However, because the compiler in c_src cannot obviously parse the new syntax yet, the standard library is not updated.
So consider the file `test_new_native.nit` as a technology preview.

Pull-Request: #498
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
src/abstract_compiler.nit
src/parser/nit.sablecc3xx
src/parser/parser.nit
src/parser/tables_nit.c