nit.git
8 years agocontrib/objcwrapper: print clang style parsing errors
Alexis Laferrière [Tue, 1 Sep 2015 20:04:24 +0000 (16:04 -0400)]
contrib/objcwrapper: print clang style parsing errors

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

8 years agocontrib/objcwrapper: update Makefile to use the included preprocessing
Alexis Laferrière [Tue, 1 Sep 2015 18:00:26 +0000 (14:00 -0400)]
contrib/objcwrapper: update Makefile to use the included preprocessing

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

8 years agocontrib/objcwrapper: add header to generated files with the command in use
Alexis Laferrière [Tue, 1 Sep 2015 18:26:33 +0000 (14:26 -0400)]
contrib/objcwrapper: add header to generated files with the command in use

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

8 years agocontrib/objcwrapper: print opts errors, not just usage
Alexis Laferrière [Tue, 1 Sep 2015 18:25:56 +0000 (14:25 -0400)]
contrib/objcwrapper: print opts errors, not just usage

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

8 years agocontrib/objcwrapper: move file preprocessing to Nit
Alexis Laferrière [Tue, 1 Sep 2015 18:00:16 +0000 (14:00 -0400)]
contrib/objcwrapper: move file preprocessing to Nit

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

8 years agocontrib/objcwrapper: generate minimal doc above generated properties
Alexis Laferrière [Tue, 1 Sep 2015 15:37:09 +0000 (11:37 -0400)]
contrib/objcwrapper: generate minimal doc above generated properties

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

8 years agolib/core/flat: Optimized use of escape_to_c for FlatText
Lucas Bajolet [Thu, 3 Sep 2015 14:21:17 +0000 (10:21 -0400)]
lib/core/flat: Optimized use of escape_to_c for FlatText

Done by short-cutting every use of unicode-oriented operations

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

8 years agotests/test_opts: test `OptionString` avoiding known options
Alexis Laferrière [Tue, 1 Sep 2015 18:45:17 +0000 (14:45 -0400)]
tests/test_opts: test `OptionString` avoiding known options

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

8 years agobench/string: Added variant similar to buffered_ns with no indirection
Lucas Bajolet [Wed, 2 Sep 2015 19:45:38 +0000 (15:45 -0400)]
bench/string: Added variant similar to buffered_ns with no indirection

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

8 years agobench/strings: Update patch for linear substring
Lucas Bajolet [Wed, 2 Sep 2015 19:45:19 +0000 (15:45 -0400)]
bench/strings: Update patch for linear substring

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

8 years agocontrib/objcwrapper: move spacing from below each entities to above it
Alexis Laferrière [Tue, 1 Sep 2015 15:17:41 +0000 (11:17 -0400)]
contrib/objcwrapper: move spacing from below each entities to above it

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

8 years agocontrib/objcwrapper: minor style fix
Alexis Laferrière [Tue, 1 Sep 2015 15:15:30 +0000 (11:15 -0400)]
contrib/objcwrapper: minor style fix

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

8 years agocontrib/objcwrapper: adapt indent according to method scope
Alexis Laferrière [Tue, 1 Sep 2015 15:15:13 +0000 (11:15 -0400)]
contrib/objcwrapper: adapt indent according to method scope

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

8 years agocontrib/objcwrapper: differentiate between class and instance properties
Alexis Laferrière [Tue, 1 Sep 2015 15:03:33 +0000 (11:03 -0400)]
contrib/objcwrapper: differentiate between class and instance properties

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

8 years agocontrib/objcwrapper: each ObjcProperty keeps track of its declaring class
Alexis Laferrière [Tue, 1 Sep 2015 14:52:41 +0000 (10:52 -0400)]
contrib/objcwrapper: each ObjcProperty keeps track of its declaring class

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

8 years agocontrib/objcwrapper: replace `scope` by `is_class_property`
Alexis Laferrière [Tue, 1 Sep 2015 14:48:49 +0000 (10:48 -0400)]
contrib/objcwrapper: replace `scope` by `is_class_property`

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

8 years agocontrib/objcwrapper: prefix remaining entities by `Objc`
Alexis Laferrière [Tue, 1 Sep 2015 14:48:11 +0000 (10:48 -0400)]
contrib/objcwrapper: prefix remaining entities by `Objc`

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

8 years agotests/test_opts: report errors
Alexis Laferrière [Tue, 1 Sep 2015 18:44:20 +0000 (14:44 -0400)]
tests/test_opts: report errors

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

8 years agolib/opts: `OptionString` avoid ready existing options only
Alexis Laferrière [Tue, 1 Sep 2015 18:28:20 +0000 (14:28 -0400)]
lib/opts: `OptionString` avoid ready existing options only

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

8 years agosrc & contrib: update users of `OptionContext::get_errors`
Alexis Laferrière [Tue, 1 Sep 2015 18:28:41 +0000 (14:28 -0400)]
src & contrib: update users of `OptionContext::get_errors`

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

8 years agolib/opts: replace `OptionContext::errors` by `get_errors`
Alexis Laferrière [Tue, 1 Sep 2015 17:59:26 +0000 (13:59 -0400)]
lib/opts: replace `OptionContext::errors` by `get_errors`

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

8 years agolib/core/text: Replaced most polymorph accesses to Text attributes by direct accesses
Lucas Bajolet [Mon, 31 Aug 2015 20:05:45 +0000 (16:05 -0400)]
lib/core/text: Replaced most polymorph accesses to Text attributes by direct accesses

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

8 years agoMerge: regex: bug fix, less warnings and rename
Jean Privat [Wed, 2 Sep 2015 00:36:24 +0000 (20:36 -0400)]
Merge: regex: bug fix, less warnings and rename

Fix bug with sub-expressions when using a `search_from`, fix a few compiler warnings and rename `optimize_is_in` to `optimize_has` as it is closer to the public API.

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

8 years agoMerge: Ini of projects
Jean Privat [Wed, 2 Sep 2015 00:36:09 +0000 (20:36 -0400)]
Merge: Ini of projects

Now that projects can have metadata, let's just provide them.

Commits are grouped by maintainer and directory so that selfish maintainers can review only their.

Fell free to propose better tagging or metadata. See #1655 and http://nitlanguage.org/nep/project_metadata.html for current state of the discussion.

Note that the proof on concept of a catalog is available at http://nitlanguage.org/catalog

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

8 years agolib/re: mark with FIXME problems with length computations
Alexis Laferrière [Tue, 1 Sep 2015 14:43:50 +0000 (10:43 -0400)]
lib/re: mark with FIXME problems with length computations

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

8 years agoMerge: Introduce nitcatalog
Jean Privat [Tue, 1 Sep 2015 00:31:15 +0000 (20:31 -0400)]
Merge: Introduce nitcatalog

nitcatalog is the tool behind http://nitlanguage.org/catalog/

It is a simple hackish program that scan projects and generate the HTML files from various source of information:

* model
* project metadata
* git history

If you want to try it at home, consider also merging #1675

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

8 years agotests: add sav/nitcatalog.res
Jean Privat [Sat, 29 Aug 2015 00:44:07 +0000 (20:44 -0400)]
tests: add sav/nitcatalog.res

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

8 years agosrc: introduce nitcatalog.nit
Jean Privat [Sat, 29 Aug 2015 00:43:33 +0000 (20:43 -0400)]
src: introduce nitcatalog.nit

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

8 years agoMerge: Reorganize mnit submodules
Jean Privat [Mon, 31 Aug 2015 16:27:44 +0000 (12:27 -0400)]
Merge: Reorganize mnit submodules

So now Linux clients import `mnit::linux` instead of `mnit_linux` and Android clients import `mnit::android`. Also rename `mnit_display` and `mnit_input` to `mnit::display` and `mnit::input` respectively.

This may look familiar as it was a part of #1671.

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

8 years agoMerge: Benitlux mailing list: nicer and differentiate between streets
Jean Privat [Mon, 31 Aug 2015 15:22:19 +0000 (11:22 -0400)]
Merge: Benitlux mailing list: nicer and differentiate between streets

This is an ongoing effort to please GMail and the likes, so Benitlux emails are no longer sent to the spam folder. Which is vital to keep @R4PaSs happy, hydrated and productive.

This PR adds headers to the email to make it clear that it is a mailing list and to guide the assisted unsubscribe option. Specifying the street name will help differentiate between the emails from the two mailing lists. (One of which is not exposed on the website, it is available on request only.)

I've also added DKIM (to the existing SPF) as server identification, it should help a lot too.

Pull-Request: #1680
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Jean-Philippe Caissy <jpcaissy@piji.ca>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

8 years agoMerge: Relocate examples/nitcorn
Jean Privat [Mon, 31 Aug 2015 15:22:08 +0000 (11:22 -0400)]
Merge: Relocate examples/nitcorn

Follow up of #1656 that can be completed now that #1667 is merged.

Pull-Request: #1677
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

8 years agoMerge: mailmap: add Mehdi Ait Younes and Hervé Matysiak
Jean Privat [Mon, 31 Aug 2015 15:22:04 +0000 (11:22 -0400)]
Merge: mailmap: add Mehdi Ait Younes and Hervé Matysiak

Because the result of `git shortlog` was not OCD-compliant enough.

Pull-Request: #1676
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

8 years agoMerge: githubmerge: make public name/email access of users more robust.
Jean Privat [Mon, 31 Aug 2015 15:21:48 +0000 (11:21 -0400)]
Merge: githubmerge: make public name/email access of users more robust.

Recent changes in github API or in the @jpages account broke the script.

Pull-Request: #1673
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

8 years agolib/re: fix offset of submatches and clarify variables name
Alexis Laferrière [Sun, 30 Aug 2015 13:52:20 +0000 (09:52 -0400)]
lib/re: fix offset of submatches and clarify variables name

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

8 years agolib/re: make `native` a local variable to check it is not null
Alexis Laferrière [Sun, 30 Aug 2015 13:51:31 +0000 (09:51 -0400)]
lib/re: make `native` a local variable to check it is not null

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

8 years agolib/re: rename `optimize_is_in` to `optimize_has`
Alexis Laferrière [Sun, 30 Aug 2015 13:34:37 +0000 (09:34 -0400)]
lib/re: rename `optimize_is_in` to `optimize_has`

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

8 years agocontrib/benitlux: show street name in email
Alexis Laferrière [Sun, 30 Aug 2015 19:14:59 +0000 (15:14 -0400)]
contrib/benitlux: show street name in email

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

8 years agosrc/project.ini: use field `maintainer`
Jean Privat [Sun, 30 Aug 2015 18:04:26 +0000 (14:04 -0400)]
src/project.ini: use field `maintainer`

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

8 years agojwrapper&nitcc: add tests/projects.ini to filter out generated files
Jean Privat [Fri, 28 Aug 2015 23:48:29 +0000 (19:48 -0400)]
jwrapper&nitcc: add tests/projects.ini to filter out generated files

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

8 years agocontrib&lib: introduce .ini for projects maintained by other contributors
Jean Privat [Fri, 28 Aug 2015 23:47:29 +0000 (19:47 -0400)]
contrib&lib: introduce .ini for projects maintained by other contributors

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

8 years agocontrib&lib: introduce .ini for projects maintained by Lucas Bajolet
Jean Privat [Fri, 28 Aug 2015 23:46:35 +0000 (19:46 -0400)]
contrib&lib: introduce .ini for projects maintained by Lucas Bajolet

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

8 years agocontrib&lib: introduce .ini for projects maintained by Alexandre Terrasa
Jean Privat [Fri, 28 Aug 2015 23:45:18 +0000 (19:45 -0400)]
contrib&lib: introduce .ini for projects maintained by Alexandre Terrasa

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

8 years agolib: introduce .ini for projects maintained by Jean Privat
Jean Privat [Fri, 28 Aug 2015 23:42:44 +0000 (19:42 -0400)]
lib: introduce .ini for projects maintained by Jean Privat

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

8 years agoexamples: introduce .ini for projects maintained by Jean Privat
Jean Privat [Fri, 28 Aug 2015 23:39:22 +0000 (19:39 -0400)]
examples: introduce .ini for projects maintained by Jean Privat

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

8 years agocontrib: introduce .ini for projects maintained by Jean Privat
Jean Privat [Fri, 28 Aug 2015 23:38:47 +0000 (19:38 -0400)]
contrib: introduce .ini for projects maintained by Jean Privat

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

8 years agolib: introduce .ini for projects maintained by Alexis Laferrière
Jean Privat [Fri, 28 Aug 2015 23:37:10 +0000 (19:37 -0400)]
lib: introduce .ini for projects maintained by Alexis Laferrière

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

8 years agoexamples: introduce .ini for projects maintained by Alexis Laferrière
Jean Privat [Sun, 30 Aug 2015 18:05:28 +0000 (14:05 -0400)]
examples: introduce .ini for projects maintained by Alexis Laferrière

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

8 years agocontrib: introduce .ini for projects maintained by Alexis Laferrière
Jean Privat [Fri, 28 Aug 2015 23:32:39 +0000 (19:32 -0400)]
contrib: introduce .ini for projects maintained by Alexis Laferrière

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

8 years agoMerge: lib/ini: give to the user `null` on undefined keys
Jean Privat [Sun, 30 Aug 2015 18:02:05 +0000 (14:02 -0400)]
Merge: lib/ini: give to the user `null` on undefined keys

Since the absence of a key is an ini file is an expected thing, I think it is better that the library return `null` instead of aborting.

This simplifies the library (and remove all aborts and cast on null).
This also simplify clients: a single call and use of advanced nullable features of Nit.

Pull-Request: #1672
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

8 years agocontrib/benitlux: identify mailing list emails as bulk with List-unsub
Alexis Laferrière [Sat, 29 Aug 2015 19:47:15 +0000 (15:47 -0400)]
contrib/benitlux: identify mailing list emails as bulk with List-unsub

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

8 years agoMerge: Text optimization
Jean Privat [Sat, 29 Aug 2015 16:12:03 +0000 (12:12 -0400)]
Merge: Text optimization

This PR introduces some more bookkeeping to Texts variants, some more work is to be expected at compilation-time for the generation of FlatStrings with all the information, but this should improve execution speeds in clients.

`./chain_concat -m string --loops 1000000 --strlen 15 --ccts 20`

* Before:
4.42 4.48 4.51 4.5025 "20"
* After:
2.40 2.36 2.38 2.37 "20"

`time ./bin/nitc --semi-global src/nitc.nit -o bin/nitc` best of 10:

* Before
~~~
real  0m6.075s
user  0m4.624s
sys   0m0.826s
~~~

* After
~~~
real  0m6.172s
user  0m4.751s
sys   0m0.870s
~~~

Valgrind:

* Before; GIr: 14,768,723,784
* After; GIr: 14,775,119,149

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

8 years agolib: move `examples/nitcorn` to `lib/nitcorn/examples`
Jean Privat [Tue, 25 Aug 2015 19:07:27 +0000 (15:07 -0400)]
lib: move `examples/nitcorn` to `lib/nitcorn/examples`

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

8 years agomailmap: add Mehdi Ait Younes and Hervé Matysiak
Jean Privat [Sat, 29 Aug 2015 00:16:34 +0000 (20:16 -0400)]
mailmap: add Mehdi Ait Younes and Hervé Matysiak

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

8 years agotests: update sav of test_c
Alexis Laferrière [Fri, 28 Aug 2015 21:55:05 +0000 (17:55 -0400)]
tests: update sav of test_c

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

8 years agocontrib: update the README of many contribs
Alexis Laferrière [Fri, 28 Aug 2015 17:53:17 +0000 (13:53 -0400)]
contrib: update the README of many contribs

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

8 years agolib: improve synopsis and doc of many libs
Alexis Laferrière [Fri, 28 Aug 2015 17:52:56 +0000 (13:52 -0400)]
lib: improve synopsis and doc of many libs

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

8 years agolib/a_star & sdl: fix warnings
Alexis Laferrière [Fri, 28 Aug 2015 17:52:14 +0000 (13:52 -0400)]
lib/a_star & sdl: fix warnings

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

8 years agoexamples/draw_operation: revamp the doc with a sample input/output
Alexis Laferrière [Fri, 28 Aug 2015 17:19:04 +0000 (13:19 -0400)]
examples/draw_operation: revamp the doc with a sample input/output

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

8 years agolib/mnit: update synopsis
Alexis Laferrière [Fri, 28 Aug 2015 21:57:42 +0000 (17:57 -0400)]
lib/mnit: update synopsis

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

8 years agotests: update savs with the new path to mnit::linux
Alexis Laferrière [Fri, 28 Aug 2015 21:58:47 +0000 (17:58 -0400)]
tests: update savs with the new path to mnit::linux

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

8 years agocontrib & examples: update users of mnit implementations
Alexis Laferrière [Fri, 28 Aug 2015 18:07:31 +0000 (14:07 -0400)]
contrib & examples: update users of mnit implementations

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

8 years agolib/mnit: move mnit implementations as submodules
Alexis Laferrière [Fri, 28 Aug 2015 17:56:30 +0000 (13:56 -0400)]
lib/mnit: move mnit implementations as submodules

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

8 years agoexamples/extern_methods: revamp as a better teaching example
Alexis Laferrière [Fri, 28 Aug 2015 17:18:42 +0000 (13:18 -0400)]
examples/extern_methods: revamp as a better teaching example

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

8 years agonitiwiki: update because `ini[]` does return nullable
Jean Privat [Fri, 28 Aug 2015 16:40:14 +0000 (12:40 -0400)]
nitiwiki: update because `ini[]` does return nullable

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

8 years agoloader: update because `ini[]` does return nullable
Jean Privat [Fri, 28 Aug 2015 16:38:31 +0000 (12:38 -0400)]
loader: update because `ini[]` does return nullable

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

8 years agolib/ini: let the user deal with undefined key instead of aborting
Jean Privat [Fri, 28 Aug 2015 16:37:57 +0000 (12:37 -0400)]
lib/ini: let the user deal with undefined key instead of aborting

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

8 years agogithubmerge: make public name/email access of users more robust.
Jean Privat [Fri, 28 Aug 2015 20:45:12 +0000 (16:45 -0400)]
githubmerge: make public name/email access of users more robust.

Recent changes in github API or in the @jpages account broke the script.

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

8 years agoMerge: projects: update some short descriptions
Jean Privat [Fri, 28 Aug 2015 20:40:09 +0000 (16:40 -0400)]
Merge: projects: update some short descriptions

Improve (or create) the short description of some random projects.

Note that using the fist line of the `README.md` is maybe not the best approach since the first line of a README is often a short title (approx 30 chars) whereas, to be informative the short description (synopsis) is often a long title (approx 70 chars).

Pull-Request: #1670
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

8 years agoMerge: After new loader
Jean Privat [Fri, 28 Aug 2015 20:37:08 +0000 (16:37 -0400)]
Merge: After new loader

Some cleanup since the new loader landed (cf. #1654)

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

8 years agoMerge: Fix qualified imports
Jean Privat [Fri, 28 Aug 2015 20:36:18 +0000 (16:36 -0400)]
Merge: Fix qualified imports

Solve #1265 and the includes with examples/nitcorn/src/xymus_net.nit

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

8 years agoMerge: objcwrapper: generate valid Nit code for large Objective-C classes
Jean Privat [Fri, 28 Aug 2015 20:34:03 +0000 (16:34 -0400)]
Merge: objcwrapper: generate valid Nit code for large Objective-C classes

This PR continues the good work of #1661 by improving further the code generator of _objcwrapper_. The main change is the revamp of the code generator module, the detection of unknown types so they are not used in active methods, and improvements to the gammar and preprocessor to accept some GNUStep classes.

The generated code now passes nitpick but there is some problems with the generated Objective-C. Some types are not correctly reproduced. So it is not usable as of yet, but it is not too far.

The main limiting factors at this points are functions pointers used as parameters, the class hierarchy that is not duplicated and the Objective-C FFI not working on GNU/Linux.

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

8 years agotests: Fixed failed test with new method to_s_full
Lucas Bajolet [Fri, 28 Aug 2015 19:25:01 +0000 (15:25 -0400)]
tests: Fixed failed test with new method to_s_full

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

8 years agosrc: Added complete FlatString generation from compiler
Lucas Bajolet [Thu, 27 Aug 2015 18:29:25 +0000 (14:29 -0400)]
src: Added complete FlatString generation from compiler

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

8 years agolib/standard: More uses of new FlatString.full when appropriate
Lucas Bajolet [Wed, 26 Aug 2015 20:42:28 +0000 (16:42 -0400)]
lib/standard: More uses of new FlatString.full when appropriate

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

8 years agolib/gpio & bcm2835: move single class from gpio to bcm2835
Alexis Laferrière [Fri, 28 Aug 2015 17:17:51 +0000 (13:17 -0400)]
lib/gpio & bcm2835: move single class from gpio to bcm2835

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

8 years agocontrib/github_search_for_jni: add README.md
Alexis Laferrière [Fri, 28 Aug 2015 17:17:23 +0000 (13:17 -0400)]
contrib/github_search_for_jni: add README.md

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

8 years agocontrib/crazy_moles: intro README.md
Alexis Laferrière [Fri, 28 Aug 2015 16:36:35 +0000 (12:36 -0400)]
contrib/crazy_moles: intro README.md

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

8 years agoexamples/mnit_dino: add a README.md file
Alexis Laferrière [Fri, 28 Aug 2015 18:13:59 +0000 (14:13 -0400)]
examples/mnit_dino: add a README.md file

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

8 years agoMerge: Improve ini
Jean Privat [Fri, 28 Aug 2015 16:43:50 +0000 (12:43 -0400)]
Merge: Improve ini

Small improvements and fixes for the ini files.

The most important change is how to associate ini file with singleton projects (no dir, only one nit file).
The proposal, from @xymus, is just to add a `.ini` file named like the `.nit`. so `lib/counter.ini` for the project `lib/counter.nit`.

I'm not sure that this feature should be official, consider it just as an easy path to update existing code.

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

8 years agoMerge: Regular Expression fix with Unicode
Jean Privat [Fri, 28 Aug 2015 16:43:47 +0000 (12:43 -0400)]
Merge: Regular Expression fix with Unicode

Fixes issue #1659, RE are now a bit more expensive, but they should behave correctly when dealing with Unicode Strings.

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

8 years agoMerge: Update remove_all to accept any patterns
Jean Privat [Fri, 28 Aug 2015 16:43:43 +0000 (12:43 -0400)]
Merge: Update remove_all to accept any patterns

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

8 years agoexamples/calculator: intro a README.md file
Alexis Laferrière [Fri, 28 Aug 2015 16:32:41 +0000 (12:32 -0400)]
examples/calculator: intro a README.md file

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

8 years agotests: update res of nitserial
Alexis Laferrière [Fri, 28 Aug 2015 15:45:27 +0000 (11:45 -0400)]
tests: update res of nitserial

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

8 years agocontrib/objcwrapper: fix name of type related methods
Alexis Laferrière [Fri, 28 Aug 2015 15:18:44 +0000 (11:18 -0400)]
contrib/objcwrapper: fix name of type related methods

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

8 years agoMerge: Relocate examples
Jean Privat [Fri, 28 Aug 2015 13:11:06 +0000 (09:11 -0400)]
Merge: Relocate examples

Some short programs in `examples` are related to specific libraries. Therefore to improve coupling and cohesion, these examples are moved into a subdirectory of their associated libs.

Basically, it means moving `examples/foo` into `lib/foo/examples`

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

8 years agogettext: add langannot.pot to the .gitignore
Jean Privat [Fri, 28 Aug 2015 05:22:28 +0000 (01:22 -0400)]
gettext: add langannot.pot to the .gitignore

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

8 years agotests: skip lib/android/examples/src/ui_test.nit on osx and nint
Jean Privat [Fri, 28 Aug 2015 13:09:08 +0000 (09:09 -0400)]
tests: skip lib/android/examples/src/ui_test.nit on osx and nint

because now all examples of lib are tested.

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

8 years agoMerge: Small fix to iOS support
Jean Privat [Fri, 28 Aug 2015 05:24:36 +0000 (01:24 -0400)]
Merge: Small fix to iOS support

Add `ONLY_ACTIVE_ARCH=NO` to the xcode call because it is required by the latest xcode.

For the iOS example, you would expect `AppKit.h` to be included by the imported module. It is, but at the same time it is ignored for performance reason since none of the imported module services are used. This will be fixed in a future PR. For now, we add the include locally as it is a better example and happen to avoid the problem.

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

8 years agoprojects: update some short descriptions
Jean Privat [Fri, 28 Aug 2015 04:33:24 +0000 (00:33 -0400)]
projects: update some short descriptions

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

8 years agolib: remove placeholder empty default modules of groups.
Jean Privat [Fri, 28 Aug 2015 03:26:51 +0000 (23:26 -0400)]
lib: remove placeholder empty default modules of groups.

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

8 years agoMakefile: nitdoc no more need nitls to find entities to document.
Jean Privat [Fri, 28 Aug 2015 03:23:53 +0000 (23:23 -0400)]
Makefile: nitdoc no more need nitls to find entities to document.

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

8 years agotests: update sav for nitls because tests/project1 changef.
Jean Privat [Fri, 28 Aug 2015 03:13:22 +0000 (23:13 -0400)]
tests: update sav for nitls because tests/project1 changef.

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

8 years agolib/glesv2/examples/opengles2_hello_triangle.nit: fix importation
Jean Privat [Fri, 28 Aug 2015 03:12:23 +0000 (23:12 -0400)]
lib/glesv2/examples/opengles2_hello_triangle.nit: fix importation

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

8 years agotests: improve tests base_import
Jean Privat [Fri, 28 Aug 2015 03:10:54 +0000 (23:10 -0400)]
tests: improve tests base_import

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

8 years agotests: update xymus_net
Jean Privat [Thu, 27 Aug 2015 19:13:10 +0000 (15:13 -0400)]
tests: update xymus_net

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

8 years agonitcorn/xymus_net: fix importations
Jean Privat [Thu, 27 Aug 2015 01:51:51 +0000 (21:51 -0400)]
nitcorn/xymus_net: fix importations

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

8 years agotests: update listfull.sh for new examples location
Jean Privat [Fri, 28 Aug 2015 02:45:55 +0000 (22:45 -0400)]
tests: update listfull.sh for new examples location

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

8 years agolib: move `examples/mpi` to `lib/mpi/examples`
Jean Privat [Tue, 25 Aug 2015 19:02:18 +0000 (15:02 -0400)]
lib: move `examples/mpi` to `lib/mpi/examples`

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

8 years agolib: move mpi to its own project directory
Jean Privat [Tue, 25 Aug 2015 19:01:30 +0000 (15:01 -0400)]
lib: move mpi to its own project directory

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

8 years agolib: move `examples/lang*` to `lib/gettext/examples`
Jean Privat [Thu, 27 Aug 2015 15:21:02 +0000 (11:21 -0400)]
lib: move `examples/lang*` to `lib/gettext/examples`

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