nit.git
9 years agonitdoc: introduce group doc
Alexandre Terrasa [Fri, 6 Jun 2014 07:32:47 +0000 (03:32 -0400)]
nitdoc: introduce group doc

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

9 years agonitdoc: generate pages with bootstrap
Alexandre Terrasa [Fri, 6 Jun 2014 07:24:25 +0000 (03:24 -0400)]
nitdoc: generate pages with bootstrap

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

9 years agonitdoc: generate templates from model
Alexandre Terrasa [Fri, 6 Jun 2014 07:21:07 +0000 (03:21 -0400)]
nitdoc: generate templates from model

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

9 years agonitdoc: migrate templates to bootstrap
Alexandre Terrasa [Fri, 6 Jun 2014 07:20:36 +0000 (03:20 -0400)]
nitdoc: migrate templates to bootstrap

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

9 years agonitdoc: introduce bootstrap
Alexandre Terrasa [Fri, 6 Jun 2014 07:20:04 +0000 (03:20 -0400)]
nitdoc: introduce bootstrap

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

9 years agomodel_utils: extract mclass mproperties
Alexandre Terrasa [Thu, 5 Jun 2014 20:59:14 +0000 (16:59 -0400)]
model_utils: extract mclass mproperties

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

9 years agomodel_utils: extract classes in mmodule nesting
Alexandre Terrasa [Thu, 5 Jun 2014 20:58:11 +0000 (16:58 -0400)]
model_utils: extract classes in mmodule nesting

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

9 years agoMerge: Android release compilation mode
Jean Privat [Fri, 16 May 2014 00:34:14 +0000 (20:34 -0400)]
Merge: Android release compilation mode

The --release option could also be used by pnacl.

Will need to specify usage in the Android and Nit manual. The resulting apk still needs to be signed and aligned before deployment.

Maybe add also suffix the package by ".debug". For now it can be done at the user level.

Pull-Request: #464
Reviewed-by: Jean Privat <jean@pryen.org>

9 years agoMerge: Java FFI: support inner classes and use of JavaObject across the FFI
Jean Privat [Thu, 15 May 2014 22:47:13 +0000 (18:47 -0400)]
Merge: Java FFI: support inner classes and use of JavaObject across the FFI

Minor incremental improvements to the Java FFI

Pull-Request: #463
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agoandroid: use the release option to set type of compilation
Alexis Laferrière [Sun, 4 May 2014 18:33:12 +0000 (14:33 -0400)]
android: use the release option to set type of compilation

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

9 years agonitg: intro the release option
Alexis Laferrière [Sun, 4 May 2014 18:32:27 +0000 (14:32 -0400)]
nitg: intro the release option

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

10 years agoffi/java: support inner classes and JNI format in extern Java types
Alexis Laferrière [Wed, 14 May 2014 15:41:29 +0000 (11:41 -0400)]
ffi/java: support inner classes and JNI format in extern Java types

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

10 years agolib/jvm: JavaObject is a Java Object (not a JNI jobject)
Alexis Laferrière [Wed, 14 May 2014 15:40:58 +0000 (11:40 -0400)]
lib/jvm: JavaObject is a Java Object (not a JNI jobject)

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

10 years agoMerge: github_merge: less crashes
Jean Privat [Wed, 14 May 2014 13:49:10 +0000 (09:49 -0400)]
Merge: github_merge: less crashes

Pull-Request: #460

10 years agoMerge: Bitset and perfect_hashing
Jean Privat [Wed, 14 May 2014 12:44:14 +0000 (08:44 -0400)]
Merge: Bitset and perfect_hashing

Adding a bitset module in standard library for binary operations required for perfect hashing.

And a perfect_hashing module with perfect numbering.

Pull-Request: #440
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

10 years agoAdding perfect_hashing module (with perfect numbering)
julien [Wed, 7 May 2014 14:43:42 +0000 (10:43 -0400)]
Adding perfect_hashing module (with perfect numbering)

10 years agoAdding a bitset module in standard for binary operations
julien [Wed, 7 May 2014 14:42:37 +0000 (10:42 -0400)]
Adding a bitset module in standard for binary operations

10 years agogithub_merge: do not crash if PR is not tested (no status)
Jean Privat [Tue, 13 May 2014 22:43:40 +0000 (18:43 -0400)]
github_merge: do not crash if PR is not tested (no status)

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

10 years agogithub_merge: do not crash if a user has no public name
Jean Privat [Tue, 13 May 2014 18:47:04 +0000 (14:47 -0400)]
github_merge: do not crash if a user has no public name

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

10 years agoMerge: String hash function fix
Jean Privat [Tue, 13 May 2014 21:12:03 +0000 (17:12 -0400)]
Merge: String hash function fix

The generic implementation for hash on Text was not compliant with the optimized version for Strings, however no test was able to catch it since we've never used Buffer and String at the same time in a Hash structure.

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

Pull-Request: #455
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

10 years agoMerge: Refactor FFI, the framework is now based on MModules
Jean Privat [Tue, 13 May 2014 19:22:37 +0000 (15:22 -0400)]
Merge: Refactor FFI, the framework is now based on MModules

* Should fix #437 by supporting the use of the Java FFI across many modules in global compilation.
* Should also work (but we need an example for it): `nitg cross_platform_prog.nit -m android`

Pull-Request: #456
Reviewed-by: Jean Privat <jean@pryen.org>

10 years agoMerge: Improve free init to prepare new constructors
Jean Privat [Tue, 13 May 2014 15:46:30 +0000 (11:46 -0400)]
Merge: Improve free init to prepare new constructors

Yet another series toward the new constructors.

Some cleanup but also some changes in the current specification to be more compatible with the next one.

In the previous code, there was 3 distinct ways to have free constructors:

1. there is some complex constructors in ONE superclass ; then they are inherited and usable as it ; error if more than one superclass with complex constructors
2. in super-classes there is only constructor named init and without parameters ; then a new free constructor is generated that just invoke the inherited init.
3. there is no inherited consructors ; then all uninitialized attributes are collected to produce a new constructor with parameters

The series generalize the point about uninitialized attributes, so make the 3 ways less distinct:

* in 1, if there is uninitialized attributes a error is generated
* in 2, if there is uninitialized attributes, they are given as parameter do the generated free constructor
* 3 does not change, but just become a special case of 2.

To enable the new behavior, an update was needed on some piece of code. mainly:

1. give a default value to some attributes to avoid their collect in the free constructor
2. give an explicit empty init when some attributes cannot have a default value

Achievement Unlocked: Edit 200 constructors in one PR +50 nitCoins

Pull-Request: #459
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

10 years agodefault_init: fix a NitUnit in template
Jean Privat [Tue, 13 May 2014 13:15:29 +0000 (09:15 -0400)]
default_init: fix a NitUnit in template

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

10 years agotests: add base_init_combine.nit
Jean Privat [Tue, 13 May 2014 10:00:30 +0000 (06:00 -0400)]
tests: add base_init_combine.nit

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

10 years agodefault_init: can interpret combined init with collected attributes
Jean Privat [Tue, 13 May 2014 15:39:50 +0000 (11:39 -0400)]
default_init: can interpret combined init with collected attributes

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

10 years agodefault_init: can compile combined init with collected attributes
Jean Privat [Tue, 13 May 2014 09:59:15 +0000 (05:59 -0400)]
default_init: can compile combined init with collected attributes

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

10 years agodefault_init: error if collected attributes and inherited complex constructors
Jean Privat [Tue, 13 May 2014 09:42:02 +0000 (05:42 -0400)]
default_init: error if collected attributes and inherited complex constructors

This unify the fate of collected attributes.
In the introduction of a class without explicit constructors, collectable
attributes are always considered in the providing of construction mechanisms.

This will also prevent programs that will be not exprimable with the first
version of new constructors.

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

10 years agolib/standard/string: Fixed implementation of hash function for Text variants.
Lucas Bajolet [Tue, 13 May 2014 15:30:12 +0000 (11:30 -0400)]
lib/standard/string: Fixed implementation of hash function for Text variants.

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

10 years agoffi: fix support for generated calls with generic types (for Java FFI)
Alexis Laferrière [Tue, 13 May 2014 15:30:04 +0000 (11:30 -0400)]
ffi: fix support for generated calls with generic types (for Java FFI)

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

10 years agoMerge: FFI with Java - more local refs support
Jean Privat [Tue, 13 May 2014 14:39:43 +0000 (10:39 -0400)]
Merge: FFI with Java - more local refs support

Pull-Request: #457
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

10 years agoMerge: lib: add `union_find`, a union–find algorithm with a disjoint-set data structure
Jean Privat [Tue, 13 May 2014 13:21:17 +0000 (09:21 -0400)]
Merge: lib: add `union_find`, a union–find algorithm with a disjoint-set data structure

Pull-Request: #446
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

10 years agodefault_init: inherit combined init if alone and empty
Jean Privat [Tue, 13 May 2014 09:40:40 +0000 (05:40 -0400)]
default_init: inherit combined init if alone and empty

Instead of creating a new one everytime

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

10 years agodefault_init: collect attributes on combined empty init
Jean Privat [Tue, 13 May 2014 09:35:35 +0000 (05:35 -0400)]
default_init: collect attributes on combined empty init

Attribute that are potential parameters for constructors are collected
ans used in the case of a `free combined init`.

~~~
class A
   init do end
end
class B
   init do end
end
class C
   super A
   super B
   var i: Int
   # free init(i:Int) do self.i = i
end
~~~

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

10 years agomodel: implements `MParameter#to_s`
Jean Privat [Tue, 13 May 2014 09:31:09 +0000 (05:31 -0400)]
model: implements `MParameter#to_s`

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

10 years agorest-of-code: prepare for new init
Jean Privat [Tue, 13 May 2014 09:30:19 +0000 (05:30 -0400)]
rest-of-code: prepare for new init

Give some default values on nullable attributes so they will not be
collected.
Introduce explicit empty init to avoid the collect of non-nullable
attributes.

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

10 years agosrc: prepare for new init
Jean Privat [Tue, 13 May 2014 09:28:57 +0000 (05:28 -0400)]
src: prepare for new init

Give some default values on nullable attributes so they will not be
collected.

Introduce explicit empty init to avoid the collect of non-nullable
attributes.

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

10 years agoparser: prepare for new init
Jean Privat [Tue, 13 May 2014 09:25:43 +0000 (05:25 -0400)]
parser: prepare for new init

Give some default values on nullable attributes so they will not be
collected.
Introduce explicit empty init to avoid the collect of non-nullable
attributes.

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

10 years agolib: prepare for new init
Jean Privat [Tue, 13 May 2014 09:23:49 +0000 (05:23 -0400)]
lib: prepare for new init

Give some default values on nullable attributes so they will not be
collected.

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

10 years agotyping: remove `resolve_signature_for`
Jean Privat [Mon, 12 May 2014 19:46:01 +0000 (15:46 -0400)]
typing: remove `resolve_signature_for`

With new init, the method will become less useful, so just remove it now.

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

10 years agorta: micro-factorization of call on `msignature`
Jean Privat [Mon, 12 May 2014 19:45:17 +0000 (15:45 -0400)]
rta: micro-factorization of call on `msignature`

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

10 years agoengines: use `callsite.msignature` in ASuperExpr
Jean Privat [Mon, 12 May 2014 17:13:32 +0000 (13:13 -0400)]
engines: use `callsite.msignature` in ASuperExpr

instead of `callsite.mproperty.intro.msignature`

This will also be usefull with new constructors when
the signature between the callsite and the propdef differs

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

10 years agoMerge: parser_util: drop injected tokens in `parse_someting`
Jean Privat [Tue, 13 May 2014 02:02:14 +0000 (22:02 -0400)]
Merge: parser_util: drop injected tokens in `parse_someting`

Since injected tokens have a false location, highlight.nit had a bad
behavior when trying to color them.
Thez should not survive `parse_something`.

Fixes #451

Pull-Request: #453
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

10 years agoMerge: misc: do not enforce shiftwidth to 8, let the .vimrc user config
Jean Privat [Tue, 13 May 2014 00:51:57 +0000 (20:51 -0400)]
Merge: misc: do not enforce shiftwidth to 8, let the .vimrc user config

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

Pull-Request: #393
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

10 years agoMerge: vim: try to color annotation.
Jean Privat [Tue, 13 May 2014 00:51:49 +0000 (20:51 -0400)]
Merge: vim: try to color annotation.

indenting still causes issues :(

Pull-Request: #450
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

10 years agolib: add `union_find`, a union–find algorithm with a disjoint-set data structure
Jean Privat [Fri, 9 May 2014 13:08:10 +0000 (09:08 -0400)]
lib: add `union_find`, a union–find algorithm with a disjoint-set data structure

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

10 years agoMerge: sepcomp: do not colorize dead method by default
Jean Privat [Mon, 12 May 2014 23:28:02 +0000 (19:28 -0400)]
Merge: sepcomp: do not colorize dead method by default

Thanks to the fix of #375, this optimization is the new default if RTA
is available.

Pull-Request: #452
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

10 years agoMerge: fix Nitlight
Jean Privat [Mon, 12 May 2014 22:31:49 +0000 (18:31 -0400)]
Merge: fix Nitlight

While messing with #451, I found that nitlight was broken.

These two commit fix it

Pull-Request: #454
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

10 years agojava: intro JavaObject::delete_local_ref
Alexis Laferrière [Mon, 12 May 2014 19:20:51 +0000 (15:20 -0400)]
java: intro JavaObject::delete_local_ref

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

10 years agojava: intro services for JNI local reference frame
Alexis Laferrière [Mon, 12 May 2014 19:20:35 +0000 (15:20 -0400)]
java: intro services for JNI local reference frame

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

10 years agoandroid: support use of -m
Alexis Laferrière [Sat, 10 May 2014 11:55:58 +0000 (07:55 -0400)]
android: support use of -m

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

10 years agoffi: minor clean up
Alexis Laferrière [Sat, 10 May 2014 13:27:33 +0000 (09:27 -0400)]
ffi: minor clean up

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

10 years agoffi/java: use C callbacks instead of going straight to nitni (for global)
Alexis Laferrière [Mon, 5 May 2014 13:18:05 +0000 (09:18 -0400)]
ffi/java: use C callbacks instead of going straight to nitni (for global)

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

10 years agoffi/java: callbacks are relative to mainmodule
Alexis Laferrière [Mon, 5 May 2014 12:28:29 +0000 (08:28 -0400)]
ffi/java: callbacks are relative to mainmodule

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

10 years agonitg/ffi: mark as private methods internal to compiler_ffi
Alexis Laferrière [Mon, 12 May 2014 17:53:21 +0000 (13:53 -0400)]
nitg/ffi: mark as private methods internal to compiler_ffi

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

10 years agoMerge: Simplify AMethPropdef
Jean Privat [Mon, 12 May 2014 15:42:05 +0000 (11:42 -0400)]
Merge: Simplify AMethPropdef

Prepare the change of the hierarchies of subclasses of AMethPropdef.

The first two commits generalize services of subclasses.
The rest updates clients to not statically rely on such a subclass.

This will permit the refactorization and the rationalization of the parser and the AST.

Pull-Request: #434
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

10 years agotests: update tests because of changes in the location of error messages
Jean Privat [Thu, 1 May 2014 17:43:25 +0000 (13:43 -0400)]
tests: update tests because of changes in the location of error messages

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

10 years agosrc: remove remaining references of subclasses on AMethPropdef
Jean Privat [Thu, 1 May 2014 17:42:46 +0000 (13:42 -0400)]
src: remove remaining references of subclasses on AMethPropdef

Only some references of AExternPropdef remain for the moment.

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

10 years agonitx: modifiers ARE accessible via the model
Jean Privat [Thu, 1 May 2014 17:40:58 +0000 (13:40 -0400)]
nitx: modifiers ARE accessible via the model

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

10 years agomodelize_property: rely more on fields than on classes to do things
Jean Privat [Thu, 1 May 2014 17:37:04 +0000 (13:37 -0400)]
modelize_property: rely more on fields than on classes to do things

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

10 years agomodel: add `MMethodDef::is_extern`
Jean Privat [Thu, 1 May 2014 17:36:19 +0000 (13:36 -0400)]
model: add `MMethodDef::is_extern`

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

10 years agosrc: use `AMethPropdef` instead of subclasses when is safe to do so.
Jean Privat [Thu, 1 May 2014 17:30:48 +0000 (13:30 -0400)]
src: use `AMethPropdef` instead of subclasses when is safe to do so.

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

10 years agoparser: promote all children in AMethPropdef
Jean Privat [Thu, 1 May 2014 17:24:53 +0000 (13:24 -0400)]
parser: promote all children in AMethPropdef

The point of the series is to refactorize the hierarchy of AMethPropdef
and simplify the complex syntactic variants.

So, put all specific fields in the root class, so clients will not need
to use the current complex hierarchy.

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

10 years agonitlight: parse options before initialising modelbuilder
Jean Privat [Sat, 10 May 2014 19:02:04 +0000 (15:02 -0400)]
nitlight: parse options before initialising modelbuilder

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

10 years agolib: fix `Sequence::first_index_of`
Jean Privat [Sat, 10 May 2014 19:01:02 +0000 (15:01 -0400)]
lib: fix `Sequence::first_index_of`

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

10 years agotests: update test_markdown and test_parser
Jean Privat [Sat, 10 May 2014 01:01:34 +0000 (21:01 -0400)]
tests: update test_markdown and test_parser

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

10 years agoparser_util: drop injected tokens in `parse_someting`
Jean Privat [Fri, 9 May 2014 23:03:59 +0000 (19:03 -0400)]
parser_util: drop injected tokens in `parse_someting`

Since injected tokens have a false location, highlight.nit had a bad
behavior when trying to color them.
Thez should not survive `parse_something`.

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

10 years agosepcomp: do not colorize dead method by default
Jean Privat [Fri, 9 May 2014 22:34:37 +0000 (18:34 -0400)]
sepcomp: do not colorize dead method by default

Thanks to the fix of #375, this optimization is the new default if RTA
is available.

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

10 years agoMerge: nitdoc: display redefined methods when mmodule.public_owner is null
Jean Privat [Fri, 9 May 2014 21:29:58 +0000 (17:29 -0400)]
Merge: nitdoc: display redefined methods when mmodule.public_owner is null

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

Pull-Request: #448
Reviewed-by: Jean Privat <jean@pryen.org>

10 years agoMerge: Fix coloring
Jean Privat [Fri, 9 May 2014 18:40:15 +0000 (14:40 -0400)]
Merge: Fix coloring

Fixes #375: Coloring issues on pep8analysis

Also do some cleaning (removing the `layout_builder` module).
This pull request disable typing options (BM/PH).

Pull-Request: #432
Reviewed-by: Jean Privat <jean@pryen.org>

10 years agovim: try to color annotation.
Jean Privat [Fri, 9 May 2014 18:36:06 +0000 (14:36 -0400)]
vim: try to color annotation.

indenting still causes issues :(

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

10 years agobenches: remove alternative typings from benches
Alexandre Terrasa [Fri, 9 May 2014 17:28:06 +0000 (13:28 -0400)]
benches: remove alternative typings from benches

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

10 years agotests: remove pep8analysis from skip list
Alexandre Terrasa [Wed, 30 Apr 2014 21:36:33 +0000 (17:36 -0400)]
tests: remove pep8analysis from skip list

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

10 years agolayout_builders: removed module
Alexandre Terrasa [Wed, 30 Apr 2014 20:47:11 +0000 (16:47 -0400)]
layout_builders: removed module

Achievement Unlocked: remove one the most complex (and crappy) module from the compiler +10 nitCoins

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

10 years agoseparate_erasure_compiler: remove usage of MClass and MProperty LayoutMPropertyLayout
Alexandre Terrasa [Wed, 30 Apr 2014 20:40:56 +0000 (16:40 -0400)]
separate_erasure_compiler: remove usage of MClass and MProperty LayoutMPropertyLayout

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

10 years agoseparate_compiler: remove usage of MpropertyLayout
Alexandre Terrasa [Wed, 30 Apr 2014 20:29:56 +0000 (16:29 -0400)]
separate_compiler: remove usage of MpropertyLayout

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

10 years agoseparate_compiler: remove usage of ResolutionLayout
Alexandre Terrasa [Wed, 30 Apr 2014 20:19:50 +0000 (16:19 -0400)]
separate_compiler: remove usage of ResolutionLayout

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

10 years agoseparate_compiler: remove usage of TypingLayout
Alexandre Terrasa [Wed, 30 Apr 2014 20:14:47 +0000 (16:14 -0400)]
separate_compiler: remove usage of TypingLayout

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

10 years agoseparate_erasure_compiler: migrate virtual types coloring
Alexandre Terrasa [Wed, 30 Apr 2014 20:04:56 +0000 (16:04 -0400)]
separate_erasure_compiler: migrate virtual types coloring

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

10 years agoseparate_erasure_compiler: migrate class coloring
Alexandre Terrasa [Wed, 30 Apr 2014 20:04:44 +0000 (16:04 -0400)]
separate_erasure_compiler: migrate class coloring

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

10 years agoseparate_compiler: migrate resolution table coloring
Alexandre Terrasa [Wed, 30 Apr 2014 18:05:09 +0000 (14:05 -0400)]
separate_compiler: migrate resolution table coloring

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

10 years agoseparate_compiler: migrate mprops coloring
Alexandre Terrasa [Wed, 30 Apr 2014 17:56:43 +0000 (13:56 -0400)]
separate_compiler: migrate mprops coloring

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

10 years agoseparate_compiler: start migration from layout_builder to coloring on type tables
Alexandre Terrasa [Thu, 8 May 2014 01:42:44 +0000 (21:42 -0400)]
separate_compiler: start migration from layout_builder to coloring on type tables

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

10 years agocoloring: introduce new module for class and property coloring in Nit execution engines
Alexandre Terrasa [Thu, 8 May 2014 01:42:10 +0000 (21:42 -0400)]
coloring: introduce new module for class and property coloring in Nit execution engines

This module will replace layout_builders

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

10 years agonitg-g: test use of java FFI across many modules
Alexis Laferrière [Sun, 4 May 2014 19:33:44 +0000 (15:33 -0400)]
nitg-g: test use of java FFI across many modules

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

10 years agonitdoc: display redefined methods when mmodule.public_owner is null
Alexandre Terrasa [Thu, 8 May 2014 18:46:22 +0000 (14:46 -0400)]
nitdoc: display redefined methods when mmodule.public_owner is null

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

10 years agoMerge: Friendlier API to read from Json
Jean Privat [Thu, 8 May 2014 17:42:42 +0000 (13:42 -0400)]
Merge: Friendlier API to read from Json

As requested by @privat.

I'll fix the contribs according to the test results.

May be improved or to do:
- Reimplement using the AST nodes.
- Make `JsonValue` subclass of `Array` and/or `Map`
- Convert contribs to use json::dynamic

Pull-Request: #444
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Jean Privat <jean@pryen.org>

10 years agoMerge: Trees
Jean Privat [Thu, 8 May 2014 15:45:11 +0000 (11:45 -0400)]
Merge: Trees

Some tree structures (needed by @xymus and @R4PaSs)

Pull-Request: #441
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Jean Privat <jean@pryen.org>

10 years agotests: fix savs of json related tests
Alexis Laferrière [Thu, 8 May 2014 15:36:49 +0000 (11:36 -0400)]
tests: fix savs of json related tests

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

10 years agonitg/ffi: move most FFI services from AModule to MModule
Alexis Laferrière [Thu, 8 May 2014 15:25:55 +0000 (11:25 -0400)]
nitg/ffi: move most FFI services from AModule to MModule

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

10 years agoMerge: sorter: add some sorters
Jean Privat [Thu, 8 May 2014 14:36:00 +0000 (10:36 -0400)]
Merge: sorter: add some sorters

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

Pull-Request: #443
Reviewed-by: Jean Privat <jean@pryen.org>

10 years agolib: update githup_api to use json::static
Alexis Laferrière [Thu, 8 May 2014 14:20:32 +0000 (10:20 -0400)]
lib: update githup_api to use json::static

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

10 years agoMerge branch 'master' into json-reborn
Alexis Laferrière [Thu, 8 May 2014 14:19:51 +0000 (10:19 -0400)]
Merge branch 'master' into json-reborn

10 years agomigration: update lib and contribs to use ::json
Alexis Laferrière [Wed, 7 May 2014 22:38:39 +0000 (18:38 -0400)]
migration: update lib and contribs to use ::json

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

10 years agolib/json: intro the main module json.nit
Alexis Laferrière [Fri, 25 Apr 2014 14:29:27 +0000 (10:29 -0400)]
lib/json: intro the main module json.nit

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

10 years agolib/json: improve doc of the static module
Alexis Laferrière [Fri, 25 Apr 2014 14:20:59 +0000 (10:20 -0400)]
lib/json: improve doc of the static module

10 years agolib/json: privatly import lexer and parser
Alexis Laferrière [Wed, 23 Apr 2014 02:28:15 +0000 (22:28 -0400)]
lib/json: privatly import lexer and parser

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

10 years agolib: intro the friendlier to use json::dynamic
Alexis Laferrière [Tue, 22 Apr 2014 21:16:17 +0000 (17:16 -0400)]
lib: intro the friendlier to use json::dynamic

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

10 years agoMerge: Fix nitdoc
Jean Privat [Thu, 8 May 2014 13:35:05 +0000 (09:35 -0400)]
Merge: Fix nitdoc

Fixes #445 and concerns list display

Pull-Request: #447
Reviewed-by: Jean Privat <jean@pryen.org>

10 years agonitdoc: fix concerns list display
Alexandre Terrasa [Thu, 8 May 2014 05:00:28 +0000 (01:00 -0400)]
nitdoc: fix concerns list display

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

10 years agonitdoc: show introduced mpropdef outside intro mclassdef
Alexandre Terrasa [Thu, 8 May 2014 04:51:52 +0000 (00:51 -0400)]
nitdoc: show introduced mpropdef outside intro mclassdef

Fixes #445

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