nit.git
12 years agoMerge branch 'fix-vt' into wip
Jean Privat [Fri, 25 Nov 2011 16:59:12 +0000 (11:59 -0500)]
Merge branch 'fix-vt' into wip

12 years agotest: add new test base_virtual_type_check.nit
Jean Privat [Fri, 25 Nov 2011 14:19:02 +0000 (09:19 -0500)]
test: add new test base_virtual_type_check.nit

This test verify explicit and implicit type checks on virtual types.

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

12 years agoicode: add automatic tests for virtual type parameters in methods
Jean Privat [Fri, 25 Nov 2011 14:17:30 +0000 (09:17 -0500)]
icode: add automatic tests for virtual type parameters in methods

Tests are added by the method generate_empty_iroutine of MMSignature
Not that tests are systematic even in the safe case (call on self).

Some unsafe places remain, like parameters in closure definitions or
in unsafe assignments.

test_variance_params is updated to reflect the fix.

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

12 years agocompile: better types checks on virtual type
Jean Privat [Fri, 25 Nov 2011 15:31:50 +0000 (10:31 -0500)]
compile: better types checks on virtual type

Two new TableElt are added for each global property of a virtual type,
one (TableEltVTClassColor) is used to store the color of the class of
the bound and the other (TableEltVTClassId) is for the identifier.

The C generation of ITypeCheck is therefore updated to use theses when
the static type is a virtual type.

Note that generics is still erased and that type checks on formal type
parameter is blindly (and wrongly) performed on the bound.

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

12 years agoicode: ITypeCheck requires a receiver
Jean Privat [Fri, 25 Nov 2011 15:07:49 +0000 (10:07 -0500)]
icode: ITypeCheck requires a receiver

For complex type checks that involve virtual types or generics,
a receiver is required.

For instance, with T a virtual type and x a variable
   x isa T
is in fact
   x isa self.T

This patch transforms the ITypeCheck from a ICode1 to a ICode2,
where expr1 is the receiver of the type and expr2 is the variable to test.

Clients of ITypeCheck are updated without change of behaviour.
Note that, strangely, during the icode_generation, the register that hold
self is lost, a new attribute is therefore added in A2IContext to store it.

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

12 years agoMerge remote branch 'origin/pu/nitdoc-graph' into wip
Jean Privat [Tue, 18 Oct 2011 13:52:16 +0000 (09:52 -0400)]
Merge remote branch 'origin/pu/nitdoc-graph' into wip

12 years agonitdoc: improve what classes to put in main summary
Jean Privat [Tue, 18 Oct 2011 02:09:48 +0000 (22:09 -0400)]
nitdoc: improve what classes to put in main summary

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

12 years agonitdoc: add summary of modules
Matthieu Auger [Tue, 17 May 2011 17:31:16 +0000 (19:31 +0200)]
nitdoc: add summary of modules

Signed-off-by: Matthieu Auger <matthieu.auger@gmail.com>
Signed-off-by: Jean Privat <jean@pryen.org>

12 years agonitdoc: show the module hierarchy
Matthieu Auger [Tue, 17 May 2011 17:31:16 +0000 (19:31 +0200)]
nitdoc: show the module hierarchy

Signed-off-by: Matthieu Auger <matthieu.auger@gmail.com>
Signed-off-by: Jean Privat <jean@pryen.org>

12 years agonitdoc: do not repeat entries in the index.
Matthieu Auger [Tue, 17 May 2011 17:31:16 +0000 (19:31 +0200)]
nitdoc: do not repeat entries in the index.

Signed-off-by: Matthieu Auger <matthieu.auger@gmail.com>
Signed-off-by: Jean Privat <jean@pryen.org>

12 years agoMerge branch 'pu/qualified-modules' into wip
Jean Privat [Thu, 13 Oct 2011 01:31:20 +0000 (21:31 -0400)]
Merge branch 'pu/qualified-modules' into wip

Conflicts:
src/compiling/compiling_global.nit
src/parser/parser_nodes.nit
src/syntax/mmbuilder.nit
src/parser/parser.nit
tests/sav/test_parser_args1.sav

12 years agoMerge branch 'alexandre/at-various-fixes' into wip
Jean Privat [Thu, 13 Oct 2011 01:06:23 +0000 (21:06 -0400)]
Merge branch 'alexandre/at-various-fixes' into wip

Conflicts:
tests/sav/base_init_linext2_alt2.sav
tests/sav/base_init_linext2_alt4.sav

12 years agoMerge branch 'pu/class_name' into wip
Jean Privat [Thu, 13 Oct 2011 00:24:33 +0000 (20:24 -0400)]
Merge branch 'pu/class_name' into wip

12 years agoMerge branch 'pu/parameter-names' into wip
Jean Privat [Wed, 12 Oct 2011 20:34:13 +0000 (16:34 -0400)]
Merge branch 'pu/parameter-names' into wip

Conflicts:
src/syntax/mmbuilder.nit
tests/sav/base_init_linext2_alt2.sav
tests/sav/base_init_linext2_alt4.sav
tests/sav/base_for_custom_alt3.sav
tests/sav/base_for_custom_alt4.sav
tests/sav/test_parser_args1.sav
tests/sav/test_parser_args2.sav

12 years agomm: moves up declaration of AMethid::name to syntax_base
Alexis Laferrière [Mon, 14 Mar 2011 01:27:46 +0000 (21:27 -0400)]
mm: moves up declaration of AMethid::name to syntax_base

This attribute will be used to generate the extern name
at the syntax level.

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

12 years agomm: changes to_s of signatures to include param names and corrects tests
Alexis Laferrière [Wed, 17 Aug 2011 17:13:47 +0000 (13:13 -0400)]
mm: changes to_s of signatures to include param names and corrects tests

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

12 years agomm: adds param name to signatures
Alexis Laferrière [Tue, 9 Aug 2011 18:59:24 +0000 (14:59 -0400)]
mm: adds param name to signatures

This extra information can be used in error messages, auto doc
and by the stub genrator of the native interface.

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

12 years agomisc: corrects some typos and according tests
Alexis Laferrière [Wed, 17 Aug 2011 17:07:16 +0000 (13:07 -0400)]
misc: corrects some typos and according tests

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

12 years agomisc: removes package from keywords in gtk syntax highlighting.
Alexis Laferrière [Tue, 22 Mar 2011 14:21:43 +0000 (10:21 -0400)]
misc: removes package from keywords in gtk syntax highlighting.

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

12 years agotool: remove some gcc warnings in gccx
Jean Privat [Mon, 27 Jun 2011 14:51:37 +0000 (10:51 -0400)]
tool: remove some gcc warnings in gccx

These two warnings seem to appear in gcc 4.6

-Wno-array-bounds: because, in generated code, local variables are stored in
a 1-length tail array.

-Wno-unused-but-set-variable: because unused parameters in Nit lead to
unused but initialized registers

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

12 years agoMerge branch 'better-locate' into wip
Jean Privat [Mon, 27 Jun 2011 14:45:40 +0000 (10:45 -0400)]
Merge branch 'better-locate' into wip

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

12 years agogc: remove unused local variable
Jean Privat [Mon, 27 Jun 2011 13:47:46 +0000 (09:47 -0400)]
gc: remove unused local variable

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

12 years agoparser: factorize goto
Jean Privat [Sat, 25 Jun 2011 00:58:43 +0000 (20:58 -0400)]
parser: factorize goto

Factorize the _goto attribute and constructors of subclasses of
ReduceAction.

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

12 years agoparser: fix and add tests to test_parser.nit
Jean Privat [Sat, 30 Apr 2011 00:44:04 +0000 (20:44 -0400)]
parser: fix and add tests to test_parser.nit

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

12 years agoparser: locate errors with locations in ANode
Jean Privat [Sat, 30 Apr 2011 00:25:01 +0000 (20:25 -0400)]
parser: locate errors with locations in ANode

Locate declarations of modules, classes and properties on their identifier.

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

12 years agosyntax: better message for signature errors
Jean Privat [Fri, 29 Apr 2011 23:54:10 +0000 (19:54 -0400)]
syntax: better message for signature errors

Locate the error on the erroneous parameter or return type.

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

12 years agoparser: display colored lines with error messages
Jean Privat [Fri, 29 Apr 2011 21:40:52 +0000 (17:40 -0400)]
parser: display colored lines with error messages

Lines are located during the lexical analysis then printed on error.
A --no-color option is added to remove the line display.

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

13 years agoparser: new class SourceFile
Jean Privat [Fri, 29 Apr 2011 21:29:33 +0000 (17:29 -0400)]
parser: new class SourceFile

This class is used to feed the lexer and to give a more precise information
to the Location.

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

13 years agolib : Add class name support
Alexandre Terrasa [Fri, 29 Apr 2011 18:26:14 +0000 (14:26 -0400)]
lib : Add class name support

- module kernel : Add output_class_name method to Object that display the object class name in console (debug only)
- module String : Add native_class_name method to Object (refinement) that return the class name in NativeString format
- module String : Add class_name method to Object (refinement) that return the class name in String format using native_class_name

Signed-off-by: Alexandre Terrasa <alexandre@moz-concept.com>

13 years agoMerge branch 'alexamdre/various-fixes' into next
Jean Privat [Mon, 18 Apr 2011 16:28:23 +0000 (12:28 -0400)]
Merge branch 'alexamdre/various-fixes' into next

13 years agosrc: fix "constrctor" typo in error messages
Alexandre Terrasa [Fri, 15 Apr 2011 13:19:41 +0000 (09:19 -0400)]
src: fix "constrctor" typo in error messages

* Replace "constrctor" by "constructor" in error messages
* Change tests to fit replacement

Signed-off-by: Alexandre Terrasa <alexandre@moz-concept.com>
Signed-off-by: Jean Privat <jean@pryen.org>

13 years agosrc & doc: change all remaining occurences of "special" by "super" keyword
Alexandre Terrasa [Thu, 14 Apr 2011 20:45:12 +0000 (16:45 -0400)]
src & doc: change all remaining occurences of "special" by "super" keyword

Signed-off-by: Alexandre Terrasa <alexandre@moz-concept.com>
Signed-off-by: Jean Privat <jean@pryen.org>

13 years agosrc: Add arity check on INative constructor
Alexandre Terrasa [Thu, 14 Apr 2011 21:26:12 +0000 (17:26 -0400)]
src: Add arity check on INative constructor

Signed-off-by: Alexandre Terrasa <alexandre@moz-concept.com>

13 years agosrc: Minor fixes in error messages
Alexandre Terrasa [Thu, 14 Apr 2011 21:02:20 +0000 (17:02 -0400)]
src: Minor fixes in error messages

- Replace "constrctor" by "constructor" in error messages
- Change tests to fit replacement

Signed-off-by: Alexandre Terrasa <alexandre@moz-concept.com>

13 years agosrc & doc: change all remaining occurences of "special" by "super" keyword
Alexandre Terrasa [Thu, 14 Apr 2011 20:45:12 +0000 (16:45 -0400)]
src & doc: change all remaining occurences of "special" by "super" keyword

Signed-off-by: Alexandre Terrasa <alexandre@moz-concept.com>

13 years agoparser: add qualified module names
Jean Privat [Wed, 4 Aug 2010 14:35:27 +0000 (09:35 -0500)]
parser: add qualified module names

modules names are usable in module declaration and importations.
Syntax is the following: '::'? (id '::')* id

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

13 years agocompile: cnames for classes and modules
Jean Privat [Fri, 23 Jul 2010 08:08:41 +0000 (04:08 -0400)]
compile: cnames for classes and modules

Allow the compilation of programs with class name conflicts and submodule name conflicts.

note: fix valgrind script to inlude new name mangling

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

13 years agotools: remove the method import_supers_modules
Jean Privat [Thu, 24 Jun 2010 08:18:06 +0000 (04:18 -0400)]
tools: remove the method import_supers_modules

It is simplier to call tc.get_module and tc.add_module by hand.

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

13 years agoMerge branches 'fix_doc', 'general_for' and 'mmbuilder_fixes_and_tests' into wip
Jean Privat [Fri, 1 Apr 2011 14:05:11 +0000 (10:05 -0400)]
Merge branches 'fix_doc', 'general_for' and 'mmbuilder_fixes_and_tests' into wip

13 years agoexample: add int_list.nit
Jean Privat [Fri, 1 Apr 2011 14:02:46 +0000 (10:02 -0400)]
example: add int_list.nit

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

13 years agodoc: minor corrections on "developpez en Nit"
Alexandre Terrasa [Mon, 28 Mar 2011 18:36:33 +0000 (14:36 -0400)]
doc: minor corrections on "developpez en Nit"

Thanks to Guy Tremblay.

Signed-off-by: Alexandre Terrasa <alexandre@moz-concept.com>
Signed-off-by: Jean Privat <jean@pryen.org>

13 years agodoc: typo and small fixes in nitreference
Jean Privat [Thu, 24 Feb 2011 15:35:54 +0000 (10:35 -0500)]
doc: typo and small fixes in nitreference

Thanks to Guy Tremblay.

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

13 years agosyntax: remove AbsSyntaxVisitor::type_collection
Jean Privat [Fri, 25 Mar 2011 01:41:53 +0000 (21:41 -0400)]
syntax: remove AbsSyntaxVisitor::type_collection

With the new for, Collection is no more a primitive class.

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

13 years agosyntax: enable a generalized for with iterate
Jean Privat [Fri, 25 Mar 2011 00:56:52 +0000 (20:56 -0400)]
syntax: enable a generalized for with iterate

Allow a generalized for syntax

    for i, j, k in e do ...

that is set to be equivalent to

    e.iterate !each i, j, k do ...

Previous constraint on Collection is removed.

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

13 years agotests: add error_type_unk
Jean Privat [Wed, 30 Mar 2011 16:58:59 +0000 (12:58 -0400)]
tests: add error_type_unk

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

13 years agotests: add base_upcast
Jean Privat [Wed, 30 Mar 2011 16:53:55 +0000 (12:53 -0400)]
tests: add base_upcast

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

13 years agotests: add error_redef.nit and error_redef2.nit
Jean Privat [Fri, 25 Mar 2011 15:02:37 +0000 (11:02 -0400)]
tests: add error_redef.nit and error_redef2.nit

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

13 years agotests: new combinatorial tests
Jean Privat [Fri, 25 Mar 2011 14:57:29 +0000 (10:57 -0400)]
tests: new combinatorial tests

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

13 years agotyping: move redef class check before inheritance
Jean Privat [Sat, 26 Mar 2011 01:03:15 +0000 (21:03 -0400)]
typing: move redef class check before inheritance

And move accept_class_verifier in AClassdef.
Thus:
1- avoid crashing on class arity missmatch;
2- avoid illegal super-classes in refinement.

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

13 years agotyping: do not crash on inherited invalid signature
Jean Privat [Fri, 25 Mar 2011 21:01:35 +0000 (17:01 -0400)]
typing: do not crash on inherited invalid signature

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

13 years agonitc: add option --stop-on-first-error
Jean Privat [Fri, 25 Mar 2011 20:30:14 +0000 (16:30 -0400)]
nitc: add option --stop-on-first-error

This option is used nitc in case of crashing because of a stored but not
displayed error.

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

13 years agolib: Pattern is an interface
Jean Privat [Thu, 31 Mar 2011 14:49:57 +0000 (10:49 -0400)]
lib: Pattern is an interface

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

13 years agoversion: v0.4.1-git
Jean Privat [Fri, 18 Feb 2011 22:49:47 +0000 (17:49 -0500)]
version: v0.4.1-git

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

13 years agoversion: v0.4 v0.4
Jean Privat [Fri, 18 Feb 2011 21:16:14 +0000 (16:16 -0500)]
version: v0.4

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

13 years agoc_src: update for 0.4
Jean Privat [Fri, 18 Feb 2011 21:14:07 +0000 (16:14 -0500)]
c_src: update for 0.4

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

13 years agodoc: use lmodern in nitreference
Jean Privat [Fri, 18 Feb 2011 20:28:43 +0000 (15:28 -0500)]
doc: use lmodern in nitreference

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

13 years agodoc: forgot to add doc/git-get-version.sh
Jean Privat [Fri, 18 Feb 2011 20:26:42 +0000 (15:26 -0500)]
doc: forgot to add doc/git-get-version.sh

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

13 years agodoc: add README
Jean Privat [Fri, 18 Feb 2011 15:48:31 +0000 (10:48 -0500)]
doc: add README

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

13 years agoMerge branch 'doc' into wip
Jean Privat [Thu, 17 Feb 2011 18:55:40 +0000 (13:55 -0500)]
Merge branch 'doc' into wip

13 years agodoc: add a nitversion in generated document
Jean Privat [Thu, 17 Feb 2011 15:46:23 +0000 (10:46 -0500)]
doc: add a nitversion in generated document

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

13 years agodoc: Makefile and README
Jean Privat [Thu, 17 Feb 2011 15:27:17 +0000 (10:27 -0500)]
doc: Makefile and README

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

13 years agomisc: update NOTICE
Jean Privat [Thu, 17 Feb 2011 15:22:01 +0000 (10:22 -0500)]
misc: update NOTICE

* update dates
* add Alexandre Terrasa

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

13 years agodoc: french doc "développez en Nit"
Alexandre Terrasa [Thu, 17 Feb 2011 15:04:58 +0000 (10:04 -0500)]
doc: french doc "développez en Nit"

Signed-off-by: Alexandre Terrasa <alexandre@moz-concept.com>
Signed-off-by: Jean Privat <jean@pryen.org>

13 years agoexample: add circular_list.nit
Jean Privat [Thu, 17 Feb 2011 10:23:49 +0000 (05:23 -0500)]
example: add circular_list.nit

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

13 years agoexample: add clock.nit and clock_mode.nit
Jean Privat [Wed, 16 Feb 2011 18:22:25 +0000 (13:22 -0500)]
example: add clock.nit and clock_mode.nit

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

13 years agodoc: first real reference for the Nit language
Jean Privat [Sat, 12 Feb 2011 02:09:43 +0000 (21:09 -0500)]
doc: first real reference for the Nit language

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

13 years agobug: undetected uninitialized attr because of generic
Jean Privat [Mon, 14 Feb 2011 20:12:19 +0000 (15:12 -0500)]
bug: undetected uninitialized attr because of generic

in alt1, A[Int]::e is statically typed by Int.
Therefore is should be catched as uninitialized.

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

13 years agotests: add libs/*.nit to tests
Jean Privat [Fri, 11 Feb 2011 21:14:58 +0000 (16:14 -0500)]
tests: add libs/*.nit to tests

This will avoid the surprise break of a unused library.

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

13 years agoMerge branch 'update_syntax' into next
Jean Privat [Tue, 15 Feb 2011 13:53:29 +0000 (08:53 -0500)]
Merge branch 'update_syntax' into next

13 years agoMerge branch 'various-fixes' into next
Jean Privat [Tue, 15 Feb 2011 13:52:54 +0000 (08:52 -0500)]
Merge branch 'various-fixes' into next

13 years agoparser: remove warning about useless cast
Jean Privat [Sat, 12 Feb 2011 02:30:38 +0000 (21:30 -0500)]
parser: remove warning about useless cast

Old c_src was not able to infer that result is not null.

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

13 years agoparser: use break and infinite loops
Jean Privat [Sat, 12 Feb 2011 02:24:07 +0000 (21:24 -0500)]
parser: use break and infinite loops

Because of the new c_src we can use them.

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

13 years agolib: fix NaiveCollection::length
Jean Privat [Sat, 12 Feb 2011 02:10:32 +0000 (21:10 -0500)]
lib: fix NaiveCollection::length

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

13 years agometamodel: rename 'universal' to 'enum'
Jean Privat [Sat, 12 Feb 2011 08:11:28 +0000 (03:11 -0500)]
metamodel: rename 'universal' to 'enum'

In the identifiers used in the metamodel and in the error messages.

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

13 years agomisc: update syntax file with module and enum
Jean Privat [Wed, 9 Feb 2011 18:23:11 +0000 (13:23 -0500)]
misc: update syntax file with module and enum

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

13 years agotests: use enum instead of universal
Jean Privat [Fri, 11 Feb 2011 21:11:30 +0000 (16:11 -0500)]
tests: use enum instead of universal

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

13 years agometamodel: rename 'universal' to 'enum'
Jean Privat [Wed, 9 Feb 2011 16:34:23 +0000 (11:34 -0500)]
metamodel: rename 'universal' to 'enum'

In the identifiers used in the metamodel and in the error messages.

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

13 years agoparser: rename 'enum' to 'universal'
Jean Privat [Fri, 11 Feb 2011 21:07:30 +0000 (16:07 -0500)]
parser: rename 'enum' to 'universal'

In fact, both are synonymous until 'universal' is completely removed.

Also rename some identifiers.

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

13 years agolib: change identifier enum to values
Jean Privat [Wed, 9 Feb 2011 15:16:41 +0000 (10:16 -0500)]
lib: change identifier enum to values

The keyword universal will be renamed to enum.

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

13 years agodoc: use 'module' instead of 'package' in comments
Jean Privat [Wed, 9 Feb 2011 18:22:49 +0000 (13:22 -0500)]
doc: use 'module' instead of 'package' in comments

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

13 years agotests: use module instead of package
Jean Privat [Wed, 9 Feb 2011 16:44:44 +0000 (11:44 -0500)]
tests: use module instead of package

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

13 years agoparser: comment why !nopar is required in some place
Jean Privat [Wed, 9 Feb 2011 14:50:20 +0000 (09:50 -0500)]
parser: comment why !nopar is required in some place

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

13 years agotests: more documentation to tests_icode.sh
Jean-Sebastien Gelinas [Thu, 3 Feb 2011 18:18:03 +0000 (13:18 -0500)]
tests: more documentation to tests_icode.sh

it was not really clear what it was doing :$

Signed-off-by: Jean-Sebastien Gelinas <calestar@gmail.com>
Signed-off-by: Jean Privat <jean@pryen.org>

13 years agotool: gccx use long version of the redirection
Jean-Sebastien Gelinas [Tue, 8 Feb 2011 20:44:42 +0000 (15:44 -0500)]
tool: gccx use long version of the redirection

MacOS does not like the short one.

Signed-off-by: Jean-Sebastien Gelinas <calestar@gmail.com>
Signed-off-by: Jean Privat <jean@pryen.org>

13 years agoc_src: update
Jean Privat [Sat, 29 Jan 2011 03:14:36 +0000 (22:14 -0500)]
c_src: update

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

13 years agoMerge branch 'll-and-gg-operators' into wip
Jean Privat [Sat, 29 Jan 2011 02:20:37 +0000 (21:20 -0500)]
Merge branch 'll-and-gg-operators' into wip

13 years agotests: add << and >> in test_operators.nit
Jean Privat [Sat, 29 Jan 2011 02:01:54 +0000 (21:01 -0500)]
tests: add << and >> in test_operators.nit

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

13 years agoparser: add << and >> operators
Jean Privat [Fri, 28 Jan 2011 21:26:48 +0000 (16:26 -0500)]
parser: add << and >> operators

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

13 years agoMerge branch 'package2module' into wip
Jean Privat [Fri, 28 Jan 2011 21:17:53 +0000 (16:17 -0500)]
Merge branch 'package2module' into wip

Conflicts:
  src/program.nit
  src/abstracttool.nit
  analysis/inline_get_and_set.nit

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

13 years agoMerge branch 'beef-up-gccx' into wip
Jean Privat [Fri, 28 Jan 2011 20:40:48 +0000 (15:40 -0500)]
Merge branch 'beef-up-gccx' into wip

13 years agomisc: gccx does not accept more than 2 Vs (-vv), make sure we don't generate more...
Jean-Sebastien Gelinas [Fri, 28 Jan 2011 20:15:34 +0000 (15:15 -0500)]
misc: gccx does not accept more than 2 Vs (-vv), make sure we don't generate more than two Vs

A better way of handling this would be to make gccx smarter !

Signed-off-by: Jean-Sebastien Gelinas <calestar@gmail.com>

13 years agotool: use ccache in gccx, if available
Jean Privat [Fri, 28 Jan 2011 20:14:41 +0000 (15:14 -0500)]
tool: use ccache in gccx, if available

This improves the compile-time of the hot-compilation case.

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

13 years agoMerge branch 'alexis/various-fixes' into wip
Jean Privat [Tue, 25 Jan 2011 02:35:09 +0000 (21:35 -0500)]
Merge branch 'alexis/various-fixes' into wip

13 years agocompile: Check the validity of module filename before parsing.
Alexis Laferrière [Sat, 25 Sep 2010 13:49:57 +0000 (09:49 -0400)]
compile: Check the validity of module filename before parsing.

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

13 years agolib: adds methods to tell if Char is a lower, upper, letter and digit
Alexis Laferrière [Mon, 24 Jan 2011 20:42:44 +0000 (15:42 -0500)]
lib: adds methods to tell if Char is a lower, upper, letter and digit

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Signed-off-by: Jean Privat <jean@pryen.org>

13 years agoMerge remote branch 'pu/new-style_attributes' into wip
Jean Privat [Tue, 25 Jan 2011 01:07:30 +0000 (20:07 -0500)]
Merge remote branch 'pu/new-style_attributes' into wip

Conflicts:
src/parser/parser_tables.nit
src/parser/table_nit.c

13 years agoMerge branch 'pu/parser_tables_in_c' into wip
Jean Privat [Tue, 25 Jan 2011 01:03:31 +0000 (20:03 -0500)]
Merge branch 'pu/parser_tables_in_c' into wip

13 years agocompile: remove hackish optimization of Array::add
Jean Privat [Mon, 24 Jan 2011 22:01:00 +0000 (17:01 -0500)]
compile: remove hackish optimization of Array::add

This optimization was useful with the parsing tables in Nit.

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

13 years agoparser: update README
Jean Privat [Mon, 24 Jan 2011 21:57:46 +0000 (16:57 -0500)]
parser: update README

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

13 years agoparser: use C tables in parser
Jean Privat [Mon, 24 Jan 2011 21:47:40 +0000 (16:47 -0500)]
parser: use C tables in parser

Also remove all remainings of the old parser_tables.nit since it is
no more needed.

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