nit.git
9 years agotests: remove remaining old-style attributes declarations
Jean Privat [Tue, 15 Jul 2014 20:13:57 +0000 (16:13 -0400)]
tests: remove remaining old-style attributes declarations

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

9 years agomodelize_property: enable the access of the internal attributes
Jean Privat [Tue, 15 Jul 2014 20:10:44 +0000 (16:10 -0400)]
modelize_property: enable the access of the internal attributes

The transition from old-style to new-style attributes is a mess.
So in order to facilitate the transition, this patch enable
the access to the internal attribute previously hidden by then
new_style attribute.

Therefore, the transition path is simpler since one can move declaration
from old-style to new-style but some access can still use the old `_foo`
notation.

Note, the `_foo` access is not mean to be publicized bu only made available
for specific short-term workarounds and transitions.

Practically, internal attribute named are prefixed with `_` and
made visible (but private)

9 years agoMerge: Fixes for attributes
Jean Privat [Wed, 16 Jul 2014 15:15:43 +0000 (11:15 -0400)]
Merge: Fixes for attributes

Some fixes and improvements in modelize_property.nit on the attributes side.

* redef optional on the `writable` part (see #270)
* fix signature check
* enable the inheritance of the type when a var redef a fun

Pull-Request: #578
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agoMerge: Some minor improvements to Sqlite3
Jean Privat [Wed, 16 Jul 2014 13:30:30 +0000 (09:30 -0400)]
Merge: Some minor improvements to Sqlite3

Will be used to implement #559 under Linux.

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

9 years agosqlite3: use sqlite3_close_v2
Alexis Laferrière [Wed, 16 Jul 2014 13:16:15 +0000 (09:16 -0400)]
sqlite3: use sqlite3_close_v2

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

9 years agolib/sqlite3: implement Sqlite3::is_valid
Alexis Laferrière [Fri, 11 Jul 2014 19:30:43 +0000 (15:30 -0400)]
lib/sqlite3: implement Sqlite3::is_valid

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

9 years agotests: test untyped attributes in base_attr5
Jean Privat [Tue, 15 Jul 2014 19:58:26 +0000 (15:58 -0400)]
tests: test untyped attributes in base_attr5

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

9 years agoMerge: lib/android: Typo fix for shared_preferences module
Jean Privat [Wed, 16 Jul 2014 01:32:54 +0000 (21:32 -0400)]
Merge: lib/android: Typo fix for shared_preferences module

Fixed typo and added import to shared_preferences_api11 module

Signed-off-by: Frédéric Vachon <fredvac@gmail.com>

Pull-Request: #580
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agoMerge: lib/curl: clean and sort options
Jean Privat [Wed, 16 Jul 2014 00:08:03 +0000 (20:08 -0400)]
Merge: lib/curl: clean and sort options

Clean and sort options, also enable new ones.

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

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

9 years agoMerge: Symetric [] & []= in android::shared_preferences
Jean Privat [Tue, 15 Jul 2014 21:59:56 +0000 (17:59 -0400)]
Merge: Symetric [] & []= in android::shared_preferences

Now SharedPreferences[]= always serialize, and [] deserialize. This would be the default dehavior for a Nit application. The other getter/setter for primitive types are still available but must be used directly.

Pull-Request: #577
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Frédéric Vachon <fredvac@gmail.com>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agolib/android: Added import and fixed typo
Frédéric Vachon [Tue, 15 Jul 2014 21:10:24 +0000 (17:10 -0400)]
lib/android: Added import and fixed typo

Signed-off-by: Frédéric Vachon <fredvac@gmail.com>

9 years agoMerge: Splay ropes
Jean Privat [Tue, 15 Jul 2014 20:19:25 +0000 (16:19 -0400)]
Merge: Splay ropes

Added Splay tree operations on ropes (see [Splay tree](http://en.wikipedia.org/wiki/Splay_tree)).

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

9 years agomodelize_properties: attributes inherit the static type of the getter
Jean Privat [Tue, 15 Jul 2014 19:50:17 +0000 (15:50 -0400)]
modelize_properties: attributes inherit the static type of the getter

so, one could write

~~~
interface A
  fun foo: String
end

class B
  super A
  redef var foo # var foo is a String!
end
~~~

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

9 years agoandroid/shared_preferences: []= always serialize to be symetric with the new []
Alexis Laferrière [Fri, 11 Jul 2014 19:32:44 +0000 (15:32 -0400)]
android/shared_preferences: []= always serialize to be symetric with the new []

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

9 years agomodelize_property: do not crash if mtype is null in check_visibility
Jean Privat [Tue, 15 Jul 2014 19:15:44 +0000 (15:15 -0400)]
modelize_property: do not crash if mtype is null in check_visibility

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

9 years agomodelize_property: correctly check signature for getter and setter
Jean Privat [Tue, 15 Jul 2014 19:14:09 +0000 (15:14 -0400)]
modelize_property: correctly check signature for getter and setter

Some clone of bug 855796228e2ea1234246990c68741ccffbce93ae

9 years agoandroid/shared_preferences: import json_serialization privately
Alexis Laferrière [Fri, 11 Jul 2014 19:32:04 +0000 (15:32 -0400)]
android/shared_preferences: import json_serialization privately

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

9 years agonitcc_runtime: force static type of Nodes::children
Jean Privat [Tue, 15 Jul 2014 19:09:53 +0000 (15:09 -0400)]
nitcc_runtime: force static type of Nodes::children

We want a mutable sequence here!

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

9 years agolib/curl: clean and sort options
Alexandre Terrasa [Fri, 11 Jul 2014 05:40:53 +0000 (01:40 -0400)]
lib/curl: clean and sort options

Also enable new ones

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

9 years agoMerge: Nitdoc standalone
Jean Privat [Tue, 15 Jul 2014 18:37:59 +0000 (14:37 -0400)]
Merge: Nitdoc standalone

Make `nitdoc` able to generate documentation only with a Model.

This will enable other clients than the actual `ModelBuilder` based one like from DB connector.

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

9 years agotests: update base_attr5 for redef policy
Jean Privat [Tue, 15 Jul 2014 17:39:20 +0000 (13:39 -0400)]
tests: update base_attr5 for redef policy

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

9 years agomodelize_property: the `redef` on writable is now optional
Jean Privat [Tue, 15 Jul 2014 17:38:49 +0000 (13:38 -0400)]
modelize_property: the `redef` on writable is now optional

fixes #270

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

9 years agoMerge: lib: introduces ini config file reader/writter
Jean Privat [Tue, 15 Jul 2014 16:14:01 +0000 (12:14 -0400)]
Merge: lib: introduces ini config file reader/writter

To handle ini files.

Pull-Request: #566
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Frédéric Vachon <fredvac@gmail.com>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agoMerge: Structs
Jean Privat [Tue, 15 Jul 2014 13:22:56 +0000 (09:22 -0400)]
Merge: Structs

More standard data structures and algorithms

closes #512

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

9 years agoMerge: Java FFI with Java generics
Jean Privat [Tue, 15 Jul 2014 11:59:29 +0000 (07:59 -0400)]
Merge: Java FFI with Java generics

To support extern classes of Java generic types, we remove all the parameters of generic types in the JNI signature format.

Example:

    extern class QueueOfString in "Java" `{ java.util.Queue<String> `}

Pull-Request: #572
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Frédéric Vachon <fredvac@gmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agonitdoc: extract NitdocContext from Nitdoc generation
Alexandre Terrasa [Tue, 15 Jul 2014 05:53:58 +0000 (01:53 -0400)]
nitdoc: extract NitdocContext from Nitdoc generation

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

9 years agonitdoc: clean output_dir option selection
Alexandre Terrasa [Tue, 15 Jul 2014 05:38:18 +0000 (01:38 -0400)]
nitdoc: clean output_dir option selection

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

9 years agonitdoc: limit dependency to `model`
Alexandre Terrasa [Tue, 15 Jul 2014 05:30:33 +0000 (01:30 -0400)]
nitdoc: limit dependency to `model`

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

9 years agomodel_utils: limit dependency to `model`.
Alexandre Terrasa [Tue, 15 Jul 2014 05:27:07 +0000 (01:27 -0400)]
model_utils: limit dependency to `model`.

Also update tools importing `model_utils`

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

9 years agolib: introduce Heap and PriorityQueue in standard::collection
Alexandre Terrasa [Tue, 15 Jul 2014 04:47:36 +0000 (00:47 -0400)]
lib: introduce Heap and PriorityQueue in standard::collection

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

9 years agolib: introduces ini config file reader/writter
Alexandre Terrasa [Tue, 15 Jul 2014 04:17:10 +0000 (00:17 -0400)]
lib: introduces ini config file reader/writter

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

9 years agotests: test generics in Java FFI
Alexis Laferrière [Mon, 14 Jul 2014 15:14:29 +0000 (11:14 -0400)]
tests: test generics in Java FFI

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

9 years agoJava FFI: support generic Java types in extern class foreign type
Alexis Laferrière [Mon, 14 Jul 2014 15:14:07 +0000 (11:14 -0400)]
Java FFI: support generic Java types in extern class foreign type

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

9 years agolib/sqlite3: implement Statement::reset & finalize
Alexis Laferrière [Fri, 11 Jul 2014 16:12:34 +0000 (12:12 -0400)]
lib/sqlite3: implement Statement::reset & finalize

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

9 years agolib/sqlite3: add some doc
Alexis Laferrière [Fri, 11 Jul 2014 16:12:00 +0000 (12:12 -0400)]
lib/sqlite3: add some doc

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

9 years agolib/sqlite3: implement column_blob
Alexis Laferrière [Fri, 11 Jul 2014 16:11:39 +0000 (12:11 -0400)]
lib/sqlite3: implement column_blob

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

9 years agolib/sqlite3: no need for a directory anymore
Alexis Laferrière [Fri, 11 Jul 2014 15:57:26 +0000 (11:57 -0400)]
lib/sqlite3: no need for a directory anymore

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

9 years agoMerge: tests: move the check of exec.skip to detect compilation error
Jean Privat [Fri, 11 Jul 2014 11:15:04 +0000 (07:15 -0400)]
Merge: tests: move the check of exec.skip to detect compilation error

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

9 years agoMerge: String: Added four new methods to string.nit
Jean Privat [Fri, 11 Jul 2014 11:14:23 +0000 (07:14 -0400)]
Merge: String: Added four new methods to string.nit

Four new methods have been added to abstract class Text : is_upper, is_lower, to_snake_case, to_camel_case. The latter two relies on the two others in their implementation. Converting case may be useful for code generation, especially when wrapping extern classes in order to conform to snake case nit standard.

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

9 years agolib: introduce Stack in standard::collection
Alexandre Terrasa [Fri, 11 Jul 2014 02:01:16 +0000 (22:01 -0400)]
lib: introduce Stack in standard::collection

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

9 years agolib: introduce Queue in standard::collection
Alexandre Terrasa [Fri, 11 Jul 2014 02:00:50 +0000 (22:00 -0400)]
lib: introduce Queue in standard::collection

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

9 years agolib/standard: Added to_snake_case and to_camel_case to string.nit
Frédéric Vachon [Fri, 11 Jul 2014 04:17:47 +0000 (00:17 -0400)]
lib/standard: Added to_snake_case and to_camel_case to string.nit

Signed-off-by: Frédéric Vachon <fredvac@gmail.com>

9 years agolib/standard: Added is_upper and is_lower to string.nit
Frédéric Vachon [Fri, 11 Jul 2014 04:16:34 +0000 (00:16 -0400)]
lib/standard: Added is_upper and is_lower to string.nit

Signed-off-by: Frédéric Vachon <fredvac@gmail.com>

9 years agotests: move the check of exec.skip to detect compilation error
Jean Privat [Fri, 11 Jul 2014 03:49:30 +0000 (23:49 -0400)]
tests: move the check of exec.skip to detect compilation error

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

9 years agolib: move union_find to collection
Alexandre Terrasa [Fri, 11 Jul 2014 02:00:14 +0000 (22:00 -0400)]
lib: move union_find to collection

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

9 years agoMerge: Bundle: Nit API wrapping Bundle class
Jean Privat [Thu, 10 Jul 2014 19:02:33 +0000 (15:02 -0400)]
Merge: Bundle: Nit API wrapping Bundle class

The Bundle class is an Android API custom mapping class. It maps `String` to various value types. This class is used by a lot of android callbacks and classes in general. It is mainly used to communicate data between application entities.

Required by the `Intent` API

Signed-off-by: Frédéric Vachon <fredvac@gmail.com>

Pull-Request: #507
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>

9 years agolib/android: Added simple_android as UNDEFINED in sav/nitg-sg
Frédéric Vachon [Thu, 10 Jul 2014 18:47:08 +0000 (14:47 -0400)]
lib/android: Added simple_android as UNDEFINED in sav/nitg-sg

Signed-off-by: Frédéric Vachon <fredvac@Pratchett.(none)>

9 years agoMerge: Android assets, resources, and audio
Jean Privat [Thu, 10 Jul 2014 16:51:46 +0000 (12:51 -0400)]
Merge: Android assets, resources, and audio

Android assets and resources Management API, plus audio management and some java io for advanced purposes. The Audio API can use the assets and resources. Audio, assets and resources can use java io.

The assets and resources API introduces a "resource_manager" and an "asset_manager" in the "App" that can be used to retrieve files or values from both resources or assets folder.

The audio API introduces Sound class representing a sound that can be play by a SoundPool or a MediaPlayer. The SoundPool is designed for playing small sound and can play different streams simultaneously and the MediaPlayer is prefered for long sounds or musics and can't play sounds simultaneously. Also the API provides 4 methods in "App" to get a sound from assets or from resources, and from a MediaPlayer or a SoundPool.

The java io part of this pull request is needed for some advanced use and is already improved by @xymus to help managing the Bitmaps.

Some classes are still only a wrapper to the Java class, this may be improved in a future version

Also modifying android_platform so the user can add his own resources in the android project without compiling it a first time. If there is a res folder in the 'nit part' of the project, it will rewrite the one generated by default by android. When the user adds it's own resources, he needs to create at least a "res/values/strings.xml" file where he needs to put a string resource with the name "app_name" and the value he wants.

The tests are implemented in the mnit_simple example application

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

9 years agoMerge: precedence and other things to nitcc
Jean Privat [Thu, 10 Jul 2014 14:52:26 +0000 (10:52 -0400)]
Merge: precedence and other things to nitcc

A lot of small things.
The best part is the introduction of syntactic precedence.

Pull-Request: #555
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agotests: update sav/nitcc_parser_gen.res
Jean Privat [Wed, 9 Jul 2014 20:26:09 +0000 (16:26 -0400)]
tests: update sav/nitcc_parser_gen.res

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

9 years agonitcc: add prerecence in the README
Jean Privat [Wed, 9 Jul 2014 15:37:59 +0000 (11:37 -0400)]
nitcc: add prerecence in the README

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

9 years agonitcc: update examples to use precedence
Jean Privat [Wed, 9 Jul 2014 15:36:40 +0000 (11:36 -0400)]
nitcc: update examples to use precedence

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

9 years agonitcc/tests: some update of error messages
Jean Privat [Wed, 9 Jul 2014 15:23:38 +0000 (11:23 -0400)]
nitcc/tests: some update of error messages

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

9 years agonitcc/tests: add re.sablecc to test precedences
Jean Privat [Wed, 9 Jul 2014 15:20:55 +0000 (11:20 -0400)]
nitcc/tests: add re.sablecc to test precedences

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

9 years agonitcc: add precedence on the grammar
Jean Privat [Wed, 9 Jul 2014 15:07:23 +0000 (11:07 -0400)]
nitcc: add precedence on the grammar

This use a special syntax where alternatives ar grouped in classes of
precedences that goes from the most priority to the least priority.

Those classes starts with the keyword `Left`, `Right` or `Unary` and
groups the alternatives that follows.

eg:

~~~
e =
{int:} int |
{par:} '(' e ')'
Unary
{neg:} '-' e
Right
{pow:} e '^' e
Left
{mul:} e '*' e |
{div:} e '/' e
Left
{add:} e '+' e |
{sub:} e '-' e ;
~~~

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

9 years agonitcc: add Alternative::phony for those in the AST but not in the automaton
Jean Privat [Wed, 9 Jul 2014 13:56:30 +0000 (09:56 -0400)]
nitcc: add Alternative::phony for those in the AST but not in the automaton

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

9 years agonitcc: does not crash if a production has no alternatives
Jean Privat [Wed, 9 Jul 2014 13:55:30 +0000 (09:55 -0400)]
nitcc: does not crash if a production has no alternatives

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

9 years agonitcc: Accept special token End, but implement it as an epsilon
Jean Privat [Tue, 8 Jul 2014 20:11:03 +0000 (16:11 -0400)]
nitcc: Accept special token End, but implement it as an epsilon

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

9 years agotests: Adapted rope tests for splay_ropes.
Lucas Bajolet [Wed, 2 Jul 2014 17:50:51 +0000 (13:50 -0400)]
tests: Adapted rope tests for splay_ropes.

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

9 years agolib/ropes: Added splay method on Ropes and use it when inserting in a rope.
Lucas Bajolet [Fri, 27 Jun 2014 17:22:37 +0000 (13:22 -0400)]
lib/ropes: Added splay method on Ropes and use it when inserting in a rope.

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

9 years agofixup mnit apps: add metatada files suitable for FDroid
Jean Privat [Thu, 10 Jul 2014 14:05:57 +0000 (10:05 -0400)]
fixup mnit apps: add metatada files suitable for FDroid

one metadata was malformed

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

9 years agoMerge: mnit apps: add metatada files suitable for FDroid
Jean Privat [Thu, 10 Jul 2014 13:54:39 +0000 (09:54 -0400)]
Merge: mnit apps: add metatada files suitable for FDroid

So people can improve and update them.
See https://f-droid.org/manual/fdroid.html#Metadata for details.

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

9 years agoMerge: lib/curses: update documentation
Jean Privat [Thu, 10 Jul 2014 13:41:28 +0000 (09:41 -0400)]
Merge: lib/curses: update documentation

Based on, and closes #230

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

9 years agoandroid: added simple_android as UNDEFINED in sav/nitg-g, nitg-sg
Romain Chanoir [Wed, 9 Jul 2014 22:45:49 +0000 (18:45 -0400)]
android: added simple_android as UNDEFINED in sav/nitg-g, nitg-sg

Signed-off-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>

9 years agolib/curses: update documentation
Jean Privat [Wed, 9 Jul 2014 21:05:55 +0000 (17:05 -0400)]
lib/curses: update documentation

Based on and closes #230

Signed-off-by: Jean Privat <jean@pryen.org>
Signed-off-by: Geoffrey Hecht <geoffrey.hecht@gmail.com>

9 years agoMerge: Message Passing Interface (MPI) in Nit and partial C language module
Jean Privat [Wed, 9 Jul 2014 20:58:10 +0000 (16:58 -0400)]
Merge: Message Passing Interface (MPI) in Nit and partial C language module

mpi.nit brings parallel programming to Nit using Message Passing Interface with OpenMPI. Will be used to implement a distributed tester.

c.nit offers low-level structures for performance critical code. More structure and services could be added as needed.

Warning: Does not yet pass all tests on nitg-e, will need to solve the "No provided declaration" error on extern classes with virtual types. I'll update this PR to solve this soon.

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

9 years agomnit apps: add metatada files suitable for FDroid
Jean Privat [Wed, 9 Jul 2014 20:47:36 +0000 (16:47 -0400)]
mnit apps: add metatada files suitable for FDroid

So people can improve and update them.
See https://f-droid.org/manual/fdroid.html#Metadata for details.

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

9 years agoModelBuilder modifications for android resources
Romain Chanoir [Tue, 8 Jul 2014 01:32:56 +0000 (21:32 -0400)]
ModelBuilder modifications for android resources

Signed-off-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>

9 years agoAdding the support of the res folder for android applications
Romain Chanoir [Tue, 1 Jul 2014 19:18:00 +0000 (15:18 -0400)]
Adding the support of the res folder for android applications

Signed-off-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>

9 years agomnit_simple sound and resource testing
Romain Chanoir [Fri, 27 Jun 2014 20:21:29 +0000 (16:21 -0400)]
mnit_simple sound and resource testing

Signed-off-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>

9 years agoIntroduction of java io API, used by android audio and resources
Romain Chanoir [Sun, 22 Jun 2014 18:29:01 +0000 (14:29 -0400)]
Introduction of java io API, used by android audio and resources

Signed-off-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>

9 years agoIntroduction of the android audio API, needs android resources
Romain Chanoir [Sun, 22 Jun 2014 18:28:36 +0000 (14:28 -0400)]
Introduction of the android audio API, needs android resources

Signed-off-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>

9 years agoIntroduction of android assets and resources management API
Romain Chanoir [Sun, 22 Jun 2014 18:28:13 +0000 (14:28 -0400)]
Introduction of android assets and resources management API

Signed-off-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>

9 years agoMerge: trees: add `is_empty`, `has_key` and `length` methods to BinTree
Jean Privat [Tue, 8 Jul 2014 20:13:21 +0000 (16:13 -0400)]
Merge: trees: add `is_empty`, `has_key` and `length` methods to BinTree

Pull-Request: #470
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agonitcc: implements complex minus with except
Jean Privat [Tue, 8 Jul 2014 19:35:24 +0000 (15:35 -0400)]
nitcc: implements complex minus with except

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

9 years agonitcc: promote `except` to Automaton
Jean Privat [Tue, 8 Jul 2014 19:28:10 +0000 (15:28 -0400)]
nitcc: promote `except` to Automaton

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

9 years agonitcc: add Automaton::trim to remove useless states
Jean Privat [Tue, 8 Jul 2014 19:27:36 +0000 (15:27 -0400)]
nitcc: add Automaton::trim to remove useless states

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

9 years agonitcc: do not use object_id in Automaton::to_dot
Jean Privat [Tue, 8 Jul 2014 18:36:27 +0000 (14:36 -0400)]
nitcc: do not use object_id in Automaton::to_dot

So diffing dot files is possible

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

9 years agotests: add test for module C
Alexis Laferrière [Mon, 7 Jul 2014 19:01:44 +0000 (15:01 -0400)]
tests: add test for module C

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

9 years agoexamples: add README and example host file to mpi example
Alexis Laferrière [Sat, 5 Jul 2014 15:22:27 +0000 (11:22 -0400)]
examples: add README and example host file to mpi example

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

9 years agoexamples: add a basic usage of mpi
Alexis Laferrière [Tue, 1 Jul 2014 19:12:37 +0000 (15:12 -0400)]
examples: add a basic usage of mpi

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

9 years agolib: intro the mpi module
Alexis Laferrière [Tue, 1 Jul 2014 19:11:33 +0000 (15:11 -0400)]
lib: intro the mpi module

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

9 years agonitcc: tests various literal strings
Jean Privat [Tue, 8 Jul 2014 16:33:18 +0000 (12:33 -0400)]
nitcc: tests various literal strings

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

9 years agonitcc: accepts literal hexadecimal chars (ex `#x0A`)
Jean Privat [Tue, 8 Jul 2014 16:32:21 +0000 (12:32 -0400)]
nitcc: accepts literal hexadecimal chars (ex `#x0A`)

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

9 years agotrees: add `iterator` method to BinTree
Alexandre Terrasa [Tue, 8 Jul 2014 15:33:45 +0000 (11:33 -0400)]
trees: add `iterator` method to BinTree

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

9 years agonitcc: accept but ignore the Tree part
Jean Privat [Tue, 8 Jul 2014 14:42:09 +0000 (10:42 -0400)]
nitcc: accept but ignore the Tree part

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

9 years agonitcc: ignore `\r` in grammars (to be compatible with mac or windows format)
Jean Privat [Tue, 8 Jul 2014 14:24:46 +0000 (10:24 -0400)]
nitcc: ignore `\r` in grammars (to be compatible with mac or windows format)

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

9 years agonitcc: escape also `<` and `>` in dot
Jean Privat [Tue, 8 Jul 2014 14:19:45 +0000 (10:19 -0400)]
nitcc: escape also `<` and `>` in dot

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

9 years agoMerge: Clear the Android project folder before generating files
Jean Privat [Tue, 8 Jul 2014 01:12:55 +0000 (21:12 -0400)]
Merge: Clear the Android project folder before generating files

Should solve a problem encountered in #507 where two different Nit projects were compiled into the same Android project.

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

9 years agoMerge: nitdoc: fix assets url in makefile
Jean Privat [Tue, 8 Jul 2014 00:29:04 +0000 (20:29 -0400)]
Merge: nitdoc: fix assets url in makefile

Should fix #551

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

Pull-Request: #553
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agoMerge: niti: Adapted bin_and/or/xor for Int in niti.
Jean Privat [Mon, 7 Jul 2014 22:10:37 +0000 (18:10 -0400)]
Merge: niti: Adapted bin_and/or/xor for Int in niti.

Just added a few methods to niti that weren't implemented yet.

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

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

9 years agoandroid: delete the Android project folder prior to generating code
Alexis Laferrière [Mon, 7 Jul 2014 16:15:18 +0000 (12:15 -0400)]
android: delete the Android project folder prior to generating code

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

9 years agoandroid: generate Android project in a subdirectory of .nit_compile
Alexis Laferrière [Mon, 7 Jul 2014 16:14:41 +0000 (12:14 -0400)]
android: generate Android project in a subdirectory of .nit_compile

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

9 years agolib: intro String::rmdir
Alexis Laferrière [Mon, 7 Jul 2014 16:14:10 +0000 (12:14 -0400)]
lib: intro String::rmdir

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

9 years agoMerge: pep8analysis: use Google Analytics asynchronously
Jean Privat [Mon, 7 Jul 2014 19:38:00 +0000 (15:38 -0400)]
Merge: pep8analysis: use Google Analytics asynchronously

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

Pull-Request: #547
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agolib: intro the c module
Alexis Laferrière [Tue, 1 Jul 2014 19:17:52 +0000 (15:17 -0400)]
lib: intro the c module

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

9 years agonitdoc: fix assets url in makefile
Alexandre Terrasa [Mon, 7 Jul 2014 18:06:24 +0000 (14:06 -0400)]
nitdoc: fix assets url in makefile

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

9 years agoniti: Adapted bin_and/or/xor for Int in niti.
Lucas Bajolet [Mon, 7 Jul 2014 17:33:42 +0000 (13:33 -0400)]
niti: Adapted bin_and/or/xor for Int in niti.

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

9 years agoversion 0.6.6 v0.6.6
Jean Privat [Mon, 7 Jul 2014 17:24:45 +0000 (13:24 -0400)]
version 0.6.6

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

9 years agoMerge: Refuse null in superstrings
Jean Privat [Thu, 3 Jul 2014 19:13:24 +0000 (15:13 -0400)]
Merge: Refuse null in superstrings

Fixes #540

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