lib/kernel: intro Numeric::value_of to get a Numeric in the receiver domain

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
dino: use project annotations in dino

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
dino: make code base more redefable

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
dino: add a shadow to dino

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
dino: add a more precise hit box to the dino

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
dino: update to use app.nit

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

`tc.attrs["name"]}` already contains the class namespace

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Merge: Funnier dino

- Improve Dino hit box (and show it with a shadow)
- The difference in the Dino image move it up by a few pixels.

Pull-Request: #437
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Merge: nitunit: fix verbose display

Minor fix:
`tc.attrs["name"]}` already contains the class namespace

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

Pull-Request: #471
lib: add nitunits to Numeric::value_of

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib: intro the geometry module

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Signed-off-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
tests: fix nitg-e fixme files with changes to kernel

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

Will be used by QuadTrees, Bentley-Ottman and gammit.

For each geometric concept there is an interface beginning with 'A' and an implementation. Such as the abstract APoint and concrete class Point.

Pull-Request: #442
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Chanoir <chanoir.romain@courrier.uqam.ca>
Merge: nitg: use a portable macro PRINT_ERROR instead of fprintf

Outputs to stderr on Linux and to logcat on Android.

The macro is defined both in the C internal to the compiled Nt program and to each FFI files which are separated from the internals.

Pull-Request: #417
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Jean Privat <jean@pryen.org>
parser: move stable content of `parser.nit` into `parser_work.nit

What is still generated is thus more minimal.

Signed-off-by: Jean Privat <jean@pryen.org>
parser: move stable content of `lexer.nit` into `lexer_work.nit

What is still generated is thus even more minimal.

Signed-off-by: Jean Privat <jean@pryen.org>
parser: add `SourceFile::first_token` and `SourceFile::last_token`

This helps to manipulate the token list.

Signed-off-by: Jean Privat <jean@pryen.org>
parser: add some basic tree services in ANode

* `ANode::root` to get the root node
* `ANode::common_parent` to get the smallest common parent of two nodes
* `ANode::depth` to get the distance beween root and self

Signed-off-by: Jean Privat <jean@pryen.org>
parser: `ANode::debug` outputs on stderr instead of stdin

Signed-off-by: Jean Privat <jean@pryen.org>
parser: add `Token::blank_before`

Signed-off-by: Jean Privat <jean@pryen.org>