abstract_compiler: generalize `native_array_instance`

offers the service `native_array_instance` in all compilation engines

Signed-off-by: Jean Privat <jean@pryen.org>
erasure_compiler: remove redefinition of `array_instance`

the inherited implementation from the separate compiler is
enough now that `native_array_instance` is correctly implemented.

Signed-off-by: Jean Privat <jean@pryen.org>
parser: accept intern methods at top-level

This modification does not need a special handling in the model or engines.

Signed-off-by: Jean Privat <jean@pryen.org>
parser: introduce intern `new` constructors (factories)

They are correctly modeled and typed but engines does not how to deal with them.

Signed-off-by: Jean Privat <jean@pryen.org>
parser: regenerate file for improved intern methods

Signed-off-by: Jean Privat <jean@pryen.org>
compiler: special handling of `new NativeArray`

Signed-off-by: Jean Privat <jean@pryen.org>
compiler: accept intern `new` constructors (factories)

Signed-off-by: Jean Privat <jean@pryen.org>
compiler: Accepts `new` constructor on non pointer-based class (eg. NativeString)

Just use with a placebo receiver like in other cases.

Signed-off-by: Jean Privat <jean@pryen.org>
compiler: implement intern `init` on NativeString

Signed-off-by: Jean Privat <jean@pryen.org>
niti: implements intern `init` for NativeString and NativeArray

Signed-off-by: Jean Privat <jean@pryen.org>
tests: add test_new_native.nit

Signed-off-by: Jean Privat <jean@pryen.org>
lib/android: Intro API wrapping android SharedPreferences

Signed-off-by: Frédéric Vachon <fredvac@gmail.com>
lib/android: Added tests to mnit_simple

Signed-off-by: Frédéric Vachon <fredvac@gmail.com>
java-ffi: Ignore '\n' in extern types

Signed-off-by: Frédéric Vachon <fredvac@gmail.com>
lib/android: Intro API wrapping android Bundle class

Signed-off-by: Frédéric Vachon <fredvac@gmail.com>
lib/android: Added tests to mnit_simple

Signed-off-by: Frédéric Vachon <fredvac@gmail.com>
mnit: does not depends on opengles1

let nmit_android and mnit_linux import opengles1 themselves

Signed-off-by: Jean Privat <jean@pryen.org>
mnit: remove virtual type IE

There is no point in having specific input-event virtual type.
Most places do not even use IE but directly InputEvent.

Signed-off-by: Jean Privat <jean@pryen.org>
shoot: move only on pressed, not depressed

Signed-off-by: Jean Privat <jean@pryen.org>
lib: implement `close` in StringOStream

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>