nit.git
8 years agomarkdown: add a makefile
Jean Privat [Mon, 17 Aug 2015 19:33:18 +0000 (15:33 -0400)]
markdown: add a makefile

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

8 years agomarkdown: new decorator for manpages
Jean Privat [Mon, 17 Aug 2015 19:21:11 +0000 (15:21 -0400)]
markdown: new decorator for manpages

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

8 years agomarkdown: nitmd have a --to option (`html` and `md` for now)
Jean Privat [Mon, 17 Aug 2015 19:12:07 +0000 (15:12 -0400)]
markdown: nitmd have a --to option (`html` and `md` for now)

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

8 years agomarkdown: nitmd use lib/opts
Jean Privat [Mon, 17 Aug 2015 19:10:14 +0000 (15:10 -0400)]
markdown: nitmd use lib/opts

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

8 years agomarkdown: add another indirection to render a single character
Jean Privat [Mon, 17 Aug 2015 18:45:35 +0000 (14:45 -0400)]
markdown: add another indirection to render a single character

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

8 years agomarkdown: fix ordered list in MdDecorator
Jean Privat [Mon, 17 Aug 2015 18:44:58 +0000 (14:44 -0400)]
markdown: fix ordered list in MdDecorator

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

8 years agotests: Added read_all test
Lucas Bajolet [Tue, 11 Aug 2015 13:48:37 +0000 (09:48 -0400)]
tests: Added read_all test

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

8 years agolib/standard/stream: Fix doc of buffer_reset
Lucas Bajolet [Tue, 11 Aug 2015 13:45:33 +0000 (09:45 -0400)]
lib/standard/stream: Fix doc of buffer_reset

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

8 years agolib/standard: Added coder and decoder to streams
Lucas Bajolet [Tue, 11 Aug 2015 15:02:22 +0000 (11:02 -0400)]
lib/standard: Added coder and decoder to streams

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

8 years agolib/standard/: Added codecs group to Standard
Lucas Bajolet [Wed, 5 Aug 2015 17:17:54 +0000 (13:17 -0400)]
lib/standard/: Added codecs group to Standard

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

8 years agolib/standard/bytes: Modified implementation of `to_bytes` in Text and added append
Lucas Bajolet [Fri, 14 Aug 2015 17:32:50 +0000 (13:32 -0400)]
lib/standard/bytes: Modified implementation of `to_bytes` in Text and added append

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

8 years agolib/file: Remove _buffer.add in stream.read_all
Lucas Bajolet [Fri, 14 Aug 2015 16:40:36 +0000 (12:40 -0400)]
lib/file: Remove _buffer.add in stream.read_all

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

8 years agoMerge: Fixints
Jean Privat [Fri, 14 Aug 2015 12:59:25 +0000 (08:59 -0400)]
Merge: Fixints

As promised, a check off the TODO list for #1266 and for low-level users: fixed-size Integers.

A literal rule has been added for these types, namely:

* i8: Signed Integer 8 bits
* i16: Signed Integer 16 bits
* i32: Signed Integer 32 bits
* u16: Unsigned Integer 16 bits
* u32: Unsigned Integer 32 bits

Note that an Unsigned Integer 8 bits is missing because of Bytes, which gets to keep its `u8` suffix until we decide of something

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

8 years agoMerge: Tinks! remove duplicated code in event reaction
Jean Privat [Thu, 13 Aug 2015 22:15:13 +0000 (18:15 -0400)]
Merge: Tinks! remove duplicated code in event reaction

The sequence of `isa` is redundant with the polymorphic calls client_react. Possibly an unfinished refactorization or some git rebase issue.

ping @xymus

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

8 years agoMerge: Benitlux report: prettier availability graph and fix errors in beer names
Jean Privat [Thu, 13 Aug 2015 22:15:11 +0000 (18:15 -0400)]
Merge: Benitlux report: prettier availability graph and fix errors in beer names

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

8 years agotinks: remove duplicated code in event reaction
Jean Privat [Thu, 13 Aug 2015 15:55:33 +0000 (11:55 -0400)]
tinks: remove duplicated code in event reaction

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

8 years agotests: Added test for fixed-size integers
Lucas Bajolet [Mon, 10 Aug 2015 15:24:45 +0000 (11:24 -0400)]
tests: Added test for fixed-size integers

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

8 years agolib/standard: Added fixints in standard imports
Lucas Bajolet [Mon, 10 Aug 2015 15:24:23 +0000 (11:24 -0400)]
lib/standard: Added fixints in standard imports

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

8 years agolib/standard/text: Moved all number-related functions to fixed_ints
Lucas Bajolet [Mon, 10 Aug 2015 15:23:17 +0000 (11:23 -0400)]
lib/standard/text: Moved all number-related functions to fixed_ints

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

8 years agolib/standard: Added fixed-size integers to standard
Lucas Bajolet [Mon, 10 Aug 2015 15:22:40 +0000 (11:22 -0400)]
lib/standard: Added fixed-size integers to standard

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

8 years agosrc/interpreter: Added fixints to interpreter
Lucas Bajolet [Mon, 10 Aug 2015 18:12:21 +0000 (14:12 -0400)]
src/interpreter: Added fixints to interpreter

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

8 years agosrc/compiler: Added fixint variants to compiler
Lucas Bajolet [Fri, 7 Aug 2015 19:49:15 +0000 (15:49 -0400)]
src/compiler: Added fixint variants to compiler

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

8 years agocontrib/benitlux: add year-month as column headers in graph
Alexis Laferrière [Wed, 12 Aug 2015 15:01:48 +0000 (11:01 -0400)]
contrib/benitlux: add year-month as column headers in graph

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

8 years agocontrib/benitlux: use a different background for half of the year
Alexis Laferrière [Wed, 12 Aug 2015 15:01:08 +0000 (11:01 -0400)]
contrib/benitlux: use a different background for half of the year

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

8 years agocontrib/benitlux: update old constructors
Alexis Laferrière [Wed, 12 Aug 2015 15:00:41 +0000 (11:00 -0400)]
contrib/benitlux: update old constructors

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

8 years agocontrib/benitlux: add module to correct beer name errors
Alexis Laferrière [Wed, 12 Aug 2015 14:57:23 +0000 (10:57 -0400)]
contrib/benitlux: add module to correct beer name errors

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

8 years agoMerge: Crazy Moles with particle effects, nukes, Bézier curves and cacti disguised...
Jean Privat [Thu, 13 Aug 2015 01:59:39 +0000 (21:59 -0400)]
Merge: Crazy Moles with particle effects, nukes, Bézier curves and cacti disguised as moles

This PR adds new features to the Crazy Moles/Groundhogs game. Pretty graphical effects with particles, Bézier curves and a custom C method to display flash effects. Plus two new traps; the cactus disguised as a mole and the much awaited nuke. This PR also updates the project tools and style, fix a few annoyances and adds a basic script to stress test on Android.

The script to test on Android was an experiment with adb monkey for a future integration with Jenkins.

What is not in this PR: sounds, fullscreen on Android and other Android specific features.

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

8 years agoMerge: Mongodb: fix C warnings and avoid crash caused by GC
Jean Privat [Thu, 13 Aug 2015 01:59:31 +0000 (21:59 -0400)]
Merge: Mongodb: fix C warnings and avoid crash caused by GC

Everything is in the title.

For more about the crash see issue #1629.

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

8 years agotests: remove sav for moles as its execution is no more tested
Alexis Laferrière [Wed, 12 Aug 2015 21:09:42 +0000 (17:09 -0400)]
tests: remove sav for moles as its execution is no more tested

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

8 years agoexamples/moles: move crazy moles to the contrib folder
Alexis Laferrière [Wed, 12 Aug 2015 18:45:23 +0000 (14:45 -0400)]
examples/moles: move crazy moles to the contrib folder

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

8 years agolib/standard/bytes: Update bytes::to_s for cleaning purposes
Lucas Bajolet [Wed, 12 Aug 2015 18:53:01 +0000 (14:53 -0400)]
lib/standard/bytes: Update bytes::to_s for cleaning purposes

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

8 years agolib/standard/bytes: Added cleaning method on Bytes when converting to String
Lucas Bajolet [Wed, 5 Aug 2015 19:35:53 +0000 (15:35 -0400)]
lib/standard/bytes: Added cleaning method on Bytes when converting to String

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

8 years agoexamples/moles: use a timeout to prevent changing state too fast
Alexis Laferrière [Tue, 11 Aug 2015 19:58:05 +0000 (15:58 -0400)]
examples/moles: use a timeout to prevent changing state too fast

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

8 years agoexamples/moles: apply FIXME with `min` as instructed by past me
Alexis Laferrière [Tue, 11 Aug 2015 19:21:43 +0000 (15:21 -0400)]
examples/moles: apply FIXME with `min` as instructed by past me

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

8 years agoexamples/moles: make `Screen::game` lazy to fix scaling problems on Android
Alexis Laferrière [Tue, 11 Aug 2015 18:47:54 +0000 (14:47 -0400)]
examples/moles: make `Screen::game` lazy to fix scaling problems on Android

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

8 years agoexamples/moles: tweak distances
Alexis Laferrière [Tue, 11 Aug 2015 18:47:10 +0000 (14:47 -0400)]
examples/moles: tweak distances

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

8 years agoexamples/moles: intro new traps; nukes and big cacti disguised as moles
Alexis Laferrière [Sun, 9 Aug 2015 15:00:34 +0000 (11:00 -0400)]
examples/moles: intro new traps; nukes and big cacti disguised as moles

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

8 years agoexamples/moles: add graphical effects; particles and flashes
Alexis Laferrière [Tue, 11 Aug 2015 18:58:20 +0000 (14:58 -0400)]
examples/moles: add graphical effects; particles and flashes

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

8 years agoexamples/moles: update the top UI
Alexis Laferrière [Tue, 11 Aug 2015 13:38:52 +0000 (09:38 -0400)]
examples/moles: update the top UI

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

8 years agoexamples/moles: use a darker background
Alexis Laferrière [Tue, 11 Aug 2015 13:38:34 +0000 (09:38 -0400)]
examples/moles: use a darker background

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

8 years agoexamples/moles: update and add new art
Alexis Laferrière [Tue, 11 Aug 2015 18:51:45 +0000 (14:51 -0400)]
examples/moles: update and add new art

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

8 years agoexamples/moles: avoid tapping the moles in the back first
Alexis Laferrière [Sun, 9 Aug 2015 15:00:05 +0000 (11:00 -0400)]
examples/moles: avoid tapping the moles in the back first

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

8 years agoexamples/moles: extract selection of what appears in holes
Alexis Laferrière [Sun, 9 Aug 2015 14:59:43 +0000 (10:59 -0400)]
examples/moles: extract selection of what appears in holes

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

8 years agoexamples/moles: revamp the hole state logic with HoleContent
Alexis Laferrière [Sun, 9 Aug 2015 13:31:35 +0000 (09:31 -0400)]
examples/moles: revamp the hole state logic with HoleContent

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

8 years agoexamples/moles: update style and doc
Alexis Laferrière [Sun, 9 Aug 2015 13:20:46 +0000 (09:20 -0400)]
examples/moles: update style and doc

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

8 years agoexamples/moles: update Makefile
Alexis Laferrière [Sun, 9 Aug 2015 02:48:48 +0000 (22:48 -0400)]
examples/moles: update Makefile

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

8 years agoexamples/moles: clean up management of `App::screen`
Alexis Laferrière [Sun, 9 Aug 2015 13:23:20 +0000 (09:23 -0400)]
examples/moles: clean up management of `App::screen`

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

8 years agoexamples/moles: update to inkscape_tools instead of the old bash script
Alexis Laferrière [Sun, 9 Aug 2015 02:48:32 +0000 (22:48 -0400)]
examples/moles: update to inkscape_tools instead of the old bash script

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

8 years agoMerge: Markdown fix
Jean Privat [Wed, 12 Aug 2015 14:59:41 +0000 (10:59 -0400)]
Merge: Markdown fix

Fix a small bug in Markdown, in some cases pos could be negative if `skip_spaces` at line 2093 returned -1

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

8 years agoexamples/moles: check android version using adb monkey and an emulator
Alexis Laferrière [Sat, 8 Aug 2015 17:48:16 +0000 (13:48 -0400)]
examples/moles: check android version using adb monkey and an emulator

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

8 years agolib/markdown: Fix a bug in check_link
Lucas Bajolet [Wed, 29 Jul 2015 15:41:20 +0000 (11:41 -0400)]
lib/markdown: Fix a bug in check_link

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

8 years agomongodb: avoid MongoCollection finalization by garbage collection
Alexandre Terrasa [Mon, 10 Aug 2015 22:29:18 +0000 (18:29 -0400)]
mongodb: avoid MongoCollection finalization by garbage collection

Related to #1629

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

8 years agomongodb: fix C warnings
Alexandre Terrasa [Mon, 10 Aug 2015 22:27:37 +0000 (18:27 -0400)]
mongodb: fix C warnings

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

8 years agoMerge: c_tool: reorder CC arguments since the semantic between gcc and clang differs
Jean Privat [Mon, 10 Aug 2015 19:36:23 +0000 (15:36 -0400)]
Merge: c_tool: reorder CC arguments since the semantic between gcc and clang differs

Just a reordering to really silent the warning on osx

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

8 years agolib/standard/text: Updated to_num to support fix ints
Lucas Bajolet [Fri, 7 Aug 2015 17:43:10 +0000 (13:43 -0400)]
lib/standard/text: Updated to_num to support fix ints

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

8 years agoMerge: tests: specific mass-definition of tests marked todo
Jean Privat [Mon, 10 Aug 2015 16:13:02 +0000 (12:13 -0400)]
Merge: tests: specific mass-definition of tests marked todo

The magic string "NOT YET IMPLEMENTED" that is used to mark tests as *todo* are now extendable as new magic strings can be added to the `todo` file (one per line)
Moreover, specific engines and platforms can define additional magic strings in the `todo` files in their `sav` subdirectories.
E.g. `sav/Darwin/todo` for magic strings that will be used only for tests run on max os x.

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

8 years agoMerge: separate_compiler: remove the use of weak symbols.
Jean Privat [Mon, 10 Aug 2015 16:13:00 +0000 (12:13 -0400)]
Merge: separate_compiler: remove the use of weak symbols.

thus always compile stub of methods to avoid unresolved symbols

weak symbols seem to cause issues on some platforms *cough mac os x cough*

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

8 years agoMerge: Clean primitive
Jean Privat [Mon, 10 Aug 2015 16:12:58 +0000 (12:12 -0400)]
Merge: Clean primitive

Cleaning of binary operations on primitive data types:

* `lshift` and `rshift` are replaced by the usual `<<` and `>>`
* `bin_and` is replaced by `&`
* `bin_or` is replaced by `|`
* `bin_not` is replaced by `~`
* `bin_xor` is replaced by `^`

Note: Due to bootstrap issues, `<<` and `>>` are now FFI

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

8 years agoMerge: More abstract classes
Jean Privat [Mon, 10 Aug 2015 16:12:53 +0000 (12:12 -0400)]
Merge: More abstract classes

The current leniency of abstract methods (see #808) make that a lot of concrete classes inherit abstract methods (I counted 5048 cases in the whole code base).
Some trivial cases are classes that just should be abstract.

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

8 years agoMerge: Stricter default arguments
Jean Privat [Mon, 10 Aug 2015 16:12:51 +0000 (12:12 -0400)]
Merge: Stricter default arguments

This change the way that default arguments are handled.

Now, defaults arguments can only follow the used one.
This improve the readability of calls and the association between calls and declarations thus solve a lot of issues of users.

~~~
fun foo(a: nullable Int, b: Int, c: nullable Int) do ...
foo(null,2,null) # OK
foo(null,2) # equivalent
foo(2) # now refused! but previously accepted as equivalent.
~~~

Only exception: the last parameter of an assignment method is always the last argument

~~~
fun foo=(a: nullable Int, b: Int, c: nullable Int, d: nullable Int) do ...
foo(null,2,null) = 0 # OK
foo(null,2) = 0 # equivalent
foo(2) = 0 # now refused! but previously accepted as equivalent
~~~

No specific black magic is added to automatic constructor.
Therefore an optional constructor parameter in a class can becore mandatory in a subclass if a new mandatory attribute is introduced.

~~~
class A
   var a: nullable Int
end
class B
  super A
  var b: Int
end
var a1 = new A(null) # OK
var a2 = new A # equivalent
var b1 = new B(null, 2) # OK
var b2 = new B(2) # now refused! but previously accepted as equivalent
~~~

This issue only required some small adaptation in existing piece of code: nitdoc, sexp, serialization and dom. The latter is PRized independently in #1616 but included here for jenkins.
Most of these changes (first commits) are in fact bugfixes or make the code cleaner so this is an argument in favor of this new stricter specification.

This PR has also the advantage of simplifying the model as the whole policy of the default argument is moved to the typing analysis: it is now just a pure calling convention.

Close #1453

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

8 years agoc_tool: reorder CC arguments since the semantic between gcc and clang difers
Jean Privat [Mon, 10 Aug 2015 16:08:48 +0000 (12:08 -0400)]
c_tool: reorder CC arguments since the semantic between gcc and clang difers

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

8 years agotests: Update sav for legacy tests
Lucas Bajolet [Mon, 10 Aug 2015 15:00:03 +0000 (11:00 -0400)]
tests: Update sav for legacy tests

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

8 years agolib/standard/: Removed bin_and/or/xor/not from math
Lucas Bajolet [Fri, 7 Aug 2015 20:27:58 +0000 (16:27 -0400)]
lib/standard/: Removed bin_and/or/xor/not from math

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

8 years agotests: Darwin special sav for test_regex_check
Jean Privat [Sat, 8 Aug 2015 01:00:50 +0000 (21:00 -0400)]
tests: Darwin special sav for test_regex_check

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

8 years agotests: Darwin skips cocoa, mpi and emscripten
Jean Privat [Sat, 8 Aug 2015 00:59:19 +0000 (20:59 -0400)]
tests: Darwin skips cocoa, mpi and emscripten

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

8 years agotests: add Darwin/todo to mass blacklist some tests
Jean Privat [Fri, 7 Aug 2015 21:21:21 +0000 (17:21 -0400)]
tests: add Darwin/todo to mass blacklist some tests

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

8 years agotests.sh: use `todo` files to store magic strings
Jean Privat [Fri, 7 Aug 2015 21:18:34 +0000 (17:18 -0400)]
tests.sh: use `todo` files to store magic strings

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

8 years agotests: update tests related to default arguments
Jean Privat [Thu, 6 Aug 2015 18:34:40 +0000 (14:34 -0400)]
tests: update tests related to default arguments

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

8 years agoneo: update because no more default param in the model
Jean Privat [Thu, 6 Aug 2015 18:57:41 +0000 (14:57 -0400)]
neo: update because no more default param in the model

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

8 years agomodel: remove things about default parameters
Jean Privat [Thu, 6 Aug 2015 18:33:54 +0000 (14:33 -0400)]
model: remove things about default parameters

Everything is in typing now.

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

8 years agotyping: change specification about default arguments. everything is done here
Jean Privat [Thu, 6 Aug 2015 18:32:14 +0000 (14:32 -0400)]
typing: change specification about default arguments. everything is done here

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

8 years agoseparate_compiler: always compile stub of methods to avoid unresolved symbols
Jean Privat [Fri, 7 Aug 2015 21:00:22 +0000 (17:00 -0400)]
separate_compiler: always compile stub of methods to avoid unresolved symbols

week symbols seem to cause issues on some platforms *couch mac os x couch*

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

8 years agolib/standard: Remove lshift and rshift from Int and Byte
Lucas Bajolet [Fri, 7 Aug 2015 20:26:13 +0000 (16:26 -0400)]
lib/standard: Remove lshift and rshift from Int and Byte

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

8 years agolib/standard/kernel: Use literal bytes in nitunits
Lucas Bajolet [Fri, 7 Aug 2015 19:55:52 +0000 (15:55 -0400)]
lib/standard/kernel: Use literal bytes in nitunits

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

8 years agosrc/interpreter: Clean uses of recvval in interpreter
Lucas Bajolet [Fri, 7 Aug 2015 19:51:20 +0000 (15:51 -0400)]
src/interpreter: Clean uses of recvval in interpreter

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

8 years agoMerge: Prepare qualified identifiers
Jean Privat [Fri, 7 Aug 2015 18:11:03 +0000 (14:11 -0400)]
Merge: Prepare qualified identifiers

First step to solve #1260: do not lose qualifiers in the AST.

This is just a API change without new features. qualifiers are still ignored but now they are in the AST.

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

8 years agoMerge: Own rand seed
Jean Privat [Fri, 7 Aug 2015 15:38:38 +0000 (11:38 -0400)]
Merge: Own rand seed

Inject a basic patform-independent reproducible pseudo-random generator when `srand_form` (thus NIT_SRAND) is used.
This will allows to have more reproductible tests on various architecture.

Related with #1387

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

8 years agoMerge: Benitlux report tool
Jean Privat [Fri, 7 Aug 2015 15:38:33 +0000 (11:38 -0400)]
Merge: Benitlux report tool

Intro a tool to print a pretty report on the availability of beers at the excellent Brasserie Bénélux.

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

8 years agoMerge: UTF-8 byte reading error
Jean Privat [Fri, 7 Aug 2015 15:38:26 +0000 (11:38 -0400)]
Merge: UTF-8 byte reading error

A small bug in char_at and length_of_char_at found their way and up until now did not pose any problem, however on some borderline cases (such as the 0x10FFFF example below) the char was misread as 0xFFFD.

The standard specifies the first byte of a 4 byte sequence to start with a `0b1111_0xxx` form, that the masks used in these methods did not check properly.

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

8 years agoastutil: update nitunit related to AST
Jean Privat [Fri, 7 Aug 2015 00:12:26 +0000 (20:12 -0400)]
astutil: update nitunit related to AST

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

8 years agotests: update sav related to AST
Jean Privat [Fri, 7 Aug 2015 00:09:40 +0000 (20:09 -0400)]
tests: update sav related to AST

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

8 years agosrc: update AST client to handle qualified identifiers (no semantic change)
Jean Privat [Thu, 6 Aug 2015 21:04:12 +0000 (17:04 -0400)]
src: update AST client to handle qualified identifiers (no semantic change)

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

8 years agoparser: regenerate with qualifiers in the AST
Jean Privat [Thu, 6 Aug 2015 21:03:16 +0000 (17:03 -0400)]
parser: regenerate with qualifiers in the AST

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

8 years agogrammar: keep qualified information in the AST. Does not change the CST.
Jean Privat [Thu, 6 Aug 2015 21:02:36 +0000 (17:02 -0400)]
grammar: keep qualified information in the AST. Does not change the CST.

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

8 years agosrc: make AUnaryopExpr abstract
Jean Privat [Fri, 7 Aug 2015 15:25:27 +0000 (11:25 -0400)]
src: make AUnaryopExpr abstract

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

8 years agolib: make some classes abstract
Jean Privat [Fri, 7 Aug 2015 15:25:05 +0000 (11:25 -0400)]
lib: make some classes abstract

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

8 years agotests: update some sav because change in random
Jean Privat [Tue, 30 Jun 2015 20:25:47 +0000 (16:25 -0400)]
tests: update some sav because change in random

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

8 years agoffi: compile extern C files with -Wno-unused-function to avoid warning on C dead...
Jean Privat [Fri, 7 Aug 2015 01:04:50 +0000 (21:04 -0400)]
ffi: compile extern C files with -Wno-unused-function to avoid warning on C dead code

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

8 years agocontrib/benitlux: add a report tool
Alexis Laferrière [Thu, 6 Aug 2015 19:32:06 +0000 (15:32 -0400)]
contrib/benitlux: add a report tool

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

8 years agocontrib/benitlux: add services to list known beers and days
Alexis Laferrière [Thu, 6 Aug 2015 19:30:58 +0000 (15:30 -0400)]
contrib/benitlux: add services to list known beers and days

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

8 years agolib/sepx: provide location to each parsed node
Jean Privat [Thu, 6 Aug 2015 18:59:20 +0000 (14:59 -0400)]
lib/sepx: provide location to each parsed node

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

8 years agonitdoc: explicitly set titles of articles to null in constructor call
Jean Privat [Thu, 6 Aug 2015 15:14:28 +0000 (11:14 -0400)]
nitdoc: explicitly set titles of articles to null in constructor call

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

8 years agoserialization: initialize `keep_going` to null
Jean Privat [Thu, 6 Aug 2015 15:13:45 +0000 (11:13 -0400)]
serialization: initialize `keep_going` to null

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

8 years agoMerge: Cleanup lib/dom
Jean Privat [Thu, 6 Aug 2015 19:00:52 +0000 (15:00 -0400)]
Merge: Cleanup lib/dom

This part was required while developing some change in the spec of default parameter (see #1453)
But this series of commit seems good enough and could be independently useful.
It also remove all warnings in the lib/dom directory

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

8 years agoMerge: Add debug option to compiler
Jean Privat [Thu, 6 Aug 2015 19:00:48 +0000 (15:00 -0400)]
Merge: Add debug option to compiler

Addition of a `-g` option to the compiler, right now it just disables gdb-side optimisation, but it may become more capable in the long run.

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

8 years agoMerge: example: optional attribute with a default value
Jean Privat [Thu, 6 Aug 2015 19:00:36 +0000 (15:00 -0400)]
Merge: example: optional attribute with a default value

This one comes from a discussion with @R4PaSs

I'm not sure I want to really expose it as I still think that current constructors need more love and work.
So at least test the current behavior.

If you people have other alternatives, you can show them.

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

8 years agotests: Added tests for char_at method on borderline cases
Lucas Bajolet [Thu, 6 Aug 2015 18:57:51 +0000 (14:57 -0400)]
tests: Added tests for char_at method on borderline cases

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

8 years agolib/standard: Fix NativeString::length_of_char_at and char_at
Lucas Bajolet [Thu, 6 Aug 2015 18:38:36 +0000 (14:38 -0400)]
lib/standard: Fix NativeString::length_of_char_at and char_at

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

8 years agoshare/man: Update nitc.md for debug option
Lucas Bajolet [Thu, 6 Aug 2015 16:10:15 +0000 (12:10 -0400)]
share/man: Update nitc.md for debug option

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

8 years agocompiler: Add -g option to compiler
Lucas Bajolet [Thu, 6 Aug 2015 14:50:02 +0000 (10:50 -0400)]
compiler: Add -g option to compiler

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