nit.git
12 years agoc_src: fix last update, _nitni.h s were referring to _nit.h from Nit src
Alexis Laferrière [Fri, 24 Feb 2012 18:53:47 +0000 (13:53 -0500)]
c_src: fix last update, _nitni.h s were referring to _nit.h from Nit src

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

12 years agoicode: do not visit non-existant instanciation iroutines of extern classes
Alexis Laferrière [Mon, 27 Feb 2012 17:21:51 +0000 (12:21 -0500)]
icode: do not visit non-existant instanciation iroutines of extern classes

Fixes global compilation of programs using extern constructors.

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

12 years agoni: fix allowing to rename parameters for redef as extern method
Alexis Laferrière [Fri, 24 Feb 2012 14:50:54 +0000 (09:50 -0500)]
ni: fix allowing to rename parameters for redef as extern method

Is actually used by nits to generated expected names. Will but more
useful with inline interface.

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

12 years agoni: minor code correction in ni_metamodel.nit
Alexis Laferrière [Thu, 3 Nov 2011 02:56:55 +0000 (22:56 -0400)]
ni: minor code correction in ni_metamodel.nit

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

12 years agoni: use special mangled name in ni generated code to support extern classes
Alexis Laferrière [Tue, 14 Feb 2012 01:06:19 +0000 (20:06 -0500)]
ni: use special mangled name in ni generated code to support extern classes

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

12 years agoc_src: update
Jean Privat [Thu, 16 Feb 2012 18:33:48 +0000 (13:33 -0500)]
c_src: update

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

12 years agotests: update nitdoc (because of the merge)
Jean Privat [Wed, 15 Feb 2012 21:32:10 +0000 (16:32 -0500)]
tests: update nitdoc (because of the merge)

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

12 years agoMerge branch 'ni' into wip
Jean Privat [Wed, 15 Feb 2012 21:07:31 +0000 (16:07 -0500)]
Merge branch 'ni' into wip

Conflict: use c_src of ni

12 years agoMerge branch 'nitdoc2' into wip
Jean Privat [Wed, 15 Feb 2012 21:06:09 +0000 (16:06 -0500)]
Merge branch 'nitdoc2' into wip

Conflicts:
lib/standard/file.nit
src/nitdoc.nit

12 years agomm: force inheritance when selectioning local property
Jean Privat [Tue, 14 Feb 2012 19:39:34 +0000 (14:39 -0500)]
mm: force inheritance when selectioning local property

Because of some optimizations, the inheritance is not always performed
on classes. The selection of a local property is not aware of that and
access thing event if the inheritance is not computed.

This patch force the inheritance if the global property is not found.

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

12 years agotests: improve the ls portability
Jean Privat [Wed, 15 Feb 2012 19:40:57 +0000 (14:40 -0500)]
tests: improve the ls portability

use /bin/ls to exclude shell aliases
force LANG to avoid variable sorting

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

12 years agotests: clean the write directory for tests with arguments
Jean Privat [Wed, 15 Feb 2012 20:46:52 +0000 (15:46 -0500)]
tests: clean the write directory for tests with arguments

This is the #1 cause of failed tests of the nitdoc.

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

12 years agoMerge branch 'lib' into wip
Jean Privat [Wed, 15 Feb 2012 20:09:38 +0000 (15:09 -0500)]
Merge branch 'lib' into wip

12 years agoMerge branch 'tools2' into wip
Jean Privat [Wed, 15 Feb 2012 20:09:22 +0000 (15:09 -0500)]
Merge branch 'tools2' into wip

12 years agotools: remove remaining POSIX_C_SOURCE
Jean Privat [Tue, 14 Feb 2012 19:11:46 +0000 (14:11 -0500)]
tools: remove remaining POSIX_C_SOURCE

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

12 years agotests: add new nitdoc options to test
Jean Privat [Wed, 15 Feb 2012 19:38:57 +0000 (14:38 -0500)]
tests: add new nitdoc options to test

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

12 years agoni: native_interface/frontier and its clients use syntax stuff
Jean Privat [Tue, 14 Feb 2012 19:17:21 +0000 (14:17 -0500)]
ni: native_interface/frontier and its clients use syntax stuff

Add the import the please to compiler.
However, maybe it should be removed.

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

12 years agoni: move default_extern_name and friendly_extern_name to primitive_info
Jean Privat [Tue, 14 Feb 2012 19:14:18 +0000 (14:14 -0500)]
ni: move default_extern_name and friendly_extern_name to primitive_info

Maybe it should be moved to metamodel?

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

12 years agoni: use MMMethod#global.is_init instead of MMMethod#is_init
Jean Privat [Tue, 14 Feb 2012 19:13:26 +0000 (14:13 -0500)]
ni: use MMMethod#global.is_init instead of MMMethod#is_init

The latter is in fact a syntax thing, the former is a metamodel thing.
This naming is just ugly

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

12 years agonitdoc: generate docs with foot-text and overview-text
Jean Privat [Wed, 15 Feb 2012 19:27:10 +0000 (14:27 -0500)]
nitdoc: generate docs with foot-text and overview-text

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

12 years agoanalysis: mark all extern methods as reachable and adds according test
Alexis Laferrière [Wed, 15 Feb 2012 16:15:42 +0000 (11:15 -0500)]
analysis: mark all extern methods as reachable and adds according test

This allows use and compiling of hybrid modules with unused native methods.

Before this patch, Nit methods explicitly called by an uncalled native method
might not be compiled to C. However, the C implmentation of the uncalled native
method cannot be pruned. Therefore, without the referenced Nit method, the
uncalled native method cannot be compiled.

TODO: Replace this solution by generating stubs for explicitly called Nit methods
referenced only by uncalled native methods.

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

12 years agoanalysis: fix analysis with native interface for global compilation
Alexis Laferrière [Wed, 15 Feb 2012 16:17:42 +0000 (11:17 -0500)]
analysis: fix analysis with native interface for global compilation

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

12 years agoicode: implements icode for explicit imports
Alexis Laferrière [Wed, 15 Feb 2012 14:57:02 +0000 (09:57 -0500)]
icode: implements icode for explicit imports

Will be used by static analysis. Also does not compile explicit extern calls.

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

12 years agonitdoc: useless # in show_source
Jean Privat [Wed, 15 Feb 2012 19:01:59 +0000 (14:01 -0500)]
nitdoc: useless # in show_source

old Ruby reflex maybe...

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

12 years agonitdoc: fix missing spaces between modules names and following text
Alexandre Terrasa [Wed, 15 Feb 2012 05:35:58 +0000 (00:35 -0500)]
nitdoc: fix missing spaces between modules names and following text

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

12 years agonitdoc: add --overview-text et --footer-text options
Morriar [Wed, 15 Feb 2012 05:32:43 +0000 (00:32 -0500)]
nitdoc: add --overview-text et --footer-text options

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

12 years agolib: update the documentation
Jean Privat [Tue, 14 Feb 2012 19:49:19 +0000 (14:49 -0500)]
lib: update the documentation

Add some examples and fix some spelling issues

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

12 years agonitdoc: include the help in the menubar
Jean Privat [Tue, 14 Feb 2012 16:29:43 +0000 (11:29 -0500)]
nitdoc: include the help in the menubar

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

12 years agoNitDoc: Add help file.
Morriar [Mon, 13 Feb 2012 19:46:23 +0000 (14:46 -0500)]
NitDoc: Add help file.

Signed-off-by: Morriar <alexandre.terrasa@gmail.com>

12 years agonitdoc: changes class name used within dot graphs
Alexis Laferrière [Tue, 14 Feb 2012 04:53:22 +0000 (23:53 -0500)]
nitdoc: changes class name used within dot graphs

Avoids conflicts with classes named Edge.

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

12 years agonitdoc: sets destination of Overview link to "index.html" instead of "./"
Alexis Laferrière [Tue, 14 Feb 2012 04:52:24 +0000 (23:52 -0500)]
nitdoc: sets destination of Overview link to "index.html" instead of "./"

Allows better use in local file-system.

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

12 years agolib: promote replace, html_escape and simplify_path to the lib
Jean Privat [Tue, 14 Feb 2012 16:10:30 +0000 (11:10 -0500)]
lib: promote replace, html_escape and simplify_path to the lib

These function are generic ans useful enough to be included in the
standard library.

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

12 years agonitdoc: handle vararg in signature
Jean Privat [Mon, 13 Feb 2012 21:30:58 +0000 (16:30 -0500)]
nitdoc: handle vararg in signature

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

12 years agonitdoc: use resource file from share/nitdoc
Jean Privat [Mon, 13 Feb 2012 21:29:14 +0000 (16:29 -0500)]
nitdoc: use resource file from share/nitdoc

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

12 years agonitdoc: Add shared files (imgs, styles and scripts)
Morriar [Sat, 11 Feb 2012 03:24:30 +0000 (22:24 -0500)]
nitdoc: Add shared files (imgs, styles and scripts)

Signed-off-by: Morriar <alexandre.terrasa@gmail.com>

12 years agoupdate NOTICE and LICENSE
Jean Privat [Mon, 13 Feb 2012 21:02:07 +0000 (16:02 -0500)]
update NOTICE and LICENSE

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

12 years agotools: add nits to .gitignore
Jean Privat [Tue, 14 Feb 2012 15:35:23 +0000 (10:35 -0500)]
tools: add nits to .gitignore

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

12 years agotests: fix test_parser
Jean Privat [Tue, 14 Feb 2012 15:24:02 +0000 (10:24 -0500)]
tests: fix test_parser

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

12 years agotests: removes incomplete and duplicate tests for native interface
Alexis Laferrière [Mon, 13 Feb 2012 20:07:03 +0000 (15:07 -0500)]
tests: removes incomplete and duplicate tests for native interface

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

12 years agotests: adds sav for test_ni_cast_extra
Alexis Laferrière [Mon, 13 Feb 2012 20:04:05 +0000 (15:04 -0500)]
tests: adds sav for test_ni_cast_extra

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

12 years agoni: fix isa checks with new module names and updates c_src accordingly
Alexis Laferrière [Mon, 13 Feb 2012 19:14:34 +0000 (14:14 -0500)]
ni: fix isa checks with new module names and updates c_src accordingly

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

12 years agolib: adds hypotenuse to math module as Float::hypot
Alexis Laferrière [Fri, 11 Nov 2011 17:08:34 +0000 (12:08 -0500)]
lib: adds hypotenuse to math module as Float::hypot

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

12 years agolib: adds String::file_extension to retreive extension from a path
Alexis Laferrière [Thu, 9 Feb 2012 20:02:52 +0000 (15:02 -0500)]
lib: adds String::file_extension to retreive extension from a path

ex: "my.file.txt".file_extension == "txt"

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

12 years agolib: adds Collection::rand to get a random element from a collection
Alexis Laferrière [Mon, 6 Jun 2011 17:35:13 +0000 (13:35 -0400)]
lib: adds Collection::rand to get a random element from a collection

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

12 years agolib: adds swap_at to arrays
Alexis Laferrière [Sun, 3 Apr 2011 15:57:20 +0000 (11:57 -0400)]
lib: adds swap_at to arrays

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

12 years agolib: adds abs function to Int
Alexis Laferrière [Thu, 31 Mar 2011 23:11:13 +0000 (19:11 -0400)]
lib: adds abs function to Int

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

12 years agolib: remove some depreciated methods in Map
Jean Privat [Fri, 10 Feb 2012 16:44:04 +0000 (11:44 -0500)]
lib: remove some depreciated methods in Map

Known clients are updated.

The only remaining depreciated method is has_key.

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

12 years agolib: removals on Map are done on the views (keys and values)
Jean Privat [Fri, 10 Feb 2012 17:13:55 +0000 (12:13 -0500)]
lib: removals on Map are done on the views (keys and values)

Thus depreciate some methods in Map
remove_at -> keys.remove
remove -> values.remove
remove_all -> values.remove_all

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

12 years agolib: for on maps require two parameters
Jean Privat [Mon, 13 Feb 2012 19:01:25 +0000 (14:01 -0500)]
lib: for on maps require two parameters

Existing clients require to adapts existing loops on map:

    for v in my_map do

has to be rewrite to

    for k, v in my_map do

or

    for v in my_map.values do

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

12 years agolib: add 'keys' and 'values' methods in Map
Jean Privat [Fri, 10 Feb 2012 16:24:45 +0000 (11:24 -0500)]
lib: add 'keys' and 'values' methods in Map

Make a bunch of method in Map depreciated and implement them by using
a delegation trough keys or values.

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

12 years agolib: MapIterator is no more an Iterator
Jean Privat [Fri, 10 Feb 2012 16:32:35 +0000 (11:32 -0500)]
lib: MapIterator is no more an Iterator

One more step to detach Map from the Collection hierarchy.

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

12 years agolib: Map is no more a Collection
Jean Privat [Fri, 10 Feb 2012 14:52:20 +0000 (09:52 -0500)]
lib: Map is no more a Collection

Many methods of Collection are copied to ensure compatibility but
they will be depreciated soon.

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

12 years agoc_src: update
Jean Privat [Fri, 10 Feb 2012 14:50:02 +0000 (09:50 -0500)]
c_src: update

The objective of the update is to handle the generalized "for".
It is required

12 years agolib: HashCollection is no more a Collection
Jean Privat [Fri, 10 Feb 2012 14:17:27 +0000 (09:17 -0500)]
lib: HashCollection is no more a Collection

This change is completely unharmful since HashCollection is a private
class. The subclasses HashMap and HashSet are already a Collection (via
Map and Set).

The point of the patch is to prepare suppression of the specialization
between Map and Collection.

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

12 years agolib: remove specialization link between Map and Sequence
Jean Privat [Fri, 10 Feb 2012 14:08:43 +0000 (09:08 -0500)]
lib: remove specialization link between Map and Sequence

IndexedIterator#key and Sequence#has_key are not maintained

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

12 years agolib: removes explicit super declaration of Pointer as it is now implicit
Alexis Laferrière [Fri, 10 Feb 2012 22:18:04 +0000 (17:18 -0500)]
lib: removes explicit super declaration of Pointer as it is now implicit

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

12 years agoc_src: updates c_src for extern classes to be special of Pointer
Alexis Laferrière [Sat, 11 Feb 2012 20:27:55 +0000 (15:27 -0500)]
c_src: updates c_src for extern classes to be special of Pointer

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

12 years agomm: moves class type detection to class building analysis
Alexis Laferrière [Sat, 13 Aug 2011 15:54:48 +0000 (11:54 -0400)]
mm: moves class type detection to class building analysis

This allows knowing the class kind when analysing super-classes.
Will be used to set default super-class of extern classes as Pointer.

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

12 years agotools: put libs after objects
Alexis Laferrière [Fri, 10 Feb 2012 20:35:22 +0000 (15:35 -0500)]
tools: put libs after objects

Extern libs (given by --cc-lib-name) should also appears after the objects.

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

12 years agocompile: intro of option files for modules with special needs
Alexis Laferrière [Mon, 1 Aug 2011 17:29:10 +0000 (13:29 -0400)]
compile: intro of option files for modules with special needs

This allows the user to specify compiler arguments for each module with files.
To do so for a given module "json", the user inputs the args for the compiler
in a file named json.nit.args. As example, the content of the file could be
"--cc-lib-name json", which asks to link with a native library when using this
module. Theses args will be interpreted as those given on the command line.

The args allowed are limited to C compilation options, as others don't seam
to be of any use in this way.

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

12 years agotools: adds nits, a compiler of help files to use the native interface
Alexis Laferrière [Thu, 18 Aug 2011 20:57:13 +0000 (16:57 -0400)]
tools: adds nits, a compiler of help files to use the native interface

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

12 years agotests: adds native interface tests
Alexis Laferrière [Thu, 18 Aug 2011 18:15:58 +0000 (14:15 -0400)]
tests: adds native interface tests

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

12 years agocompile: fix references to generated files from frontier for global
Alexis Laferrière [Tue, 11 Oct 2011 17:54:09 +0000 (13:54 -0400)]
compile: fix references to generated files from frontier for global

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

12 years agoni: intro of frontier files between nit code and extern code
Alexis Laferrière [Fri, 2 Dec 2011 03:15:11 +0000 (22:15 -0500)]
ni: intro of frontier files between nit code and extern code

These files contains wrappers for extern methods implementation
and for all methods callable from C code.

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

12 years agoni: adds MMModule::is_extern_hybrid
Alexis Laferrière [Mon, 15 Aug 2011 15:09:46 +0000 (11:09 -0400)]
ni: adds MMModule::is_extern_hybrid

This information will be used to generate frontier files
with extern if necessary and also by the stub generator.

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

12 years agocompile: makes compile_separate_module public
Alexis Laferrière [Tue, 9 Aug 2011 18:14:25 +0000 (14:14 -0400)]
compile: makes compile_separate_module public

This allows it to be redefined in other modules. Will be used by
native interface and seperate options later.

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

12 years agogrammar: allows constructors in extern classes
Alexis Laferrière [Thu, 18 Aug 2011 19:09:14 +0000 (15:09 -0400)]
grammar: allows constructors in extern classes

Such constructors can ben used to create an instance of an extern
class. It must be implemented externally.

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

12 years agomm: extracts extern name creation in separate function
Alexis Laferrière [Thu, 18 Aug 2011 17:51:51 +0000 (13:51 -0400)]
mm: extracts extern name creation in separate function

Will be used to generate variable name depending on type of method
such as external constructors.

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

12 years agomm: implements metamodel for basic explicit casts
Alexis Laferrière [Sun, 14 Aug 2011 19:12:01 +0000 (15:12 -0400)]
mm: implements metamodel for basic explicit casts

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

12 years agomm: adds is_extern to MMMethods and use extern_name in extern methods only
Alexis Laferrière [Tue, 9 Aug 2011 19:22:12 +0000 (15:22 -0400)]
mm: adds is_extern to MMMethods and use extern_name in extern methods only

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

12 years agomm: adds basic explicit imports to metamodel and typing
Alexis Laferrière [Tue, 9 Aug 2011 15:37:45 +0000 (11:37 -0400)]
mm: adds basic explicit imports to metamodel and typing

Also adds support for future new explicit import formats.

Alows the user to specify a precise type to be used in the
native signature instead of it being the class where the
property was introduced.

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

12 years agoni: makes pointer default super-class of all extern classes
Alexis Laferrière [Tue, 9 Aug 2011 19:37:39 +0000 (15:37 -0400)]
ni: makes pointer default super-class of all extern classes

This logicaly links all the extern equivalent types of
extern classes to be void*.

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

12 years agolib: updates lib to use extern classes
Alexis Laferrière [Wed, 17 Aug 2011 15:39:32 +0000 (11:39 -0400)]
lib: updates lib to use extern classes

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

12 years agogrammar: adds extern class kind for extern classes such as Pointer
Alexis Laferrière [Wed, 17 Aug 2011 15:29:07 +0000 (11:29 -0400)]
grammar: adds extern class kind for extern classes such as Pointer

Extern classes can specialize one another and interfaces. No
other kind of classes can specialize and extern class.

Extern classes are associated directly to an extern type and
thus cannot contain var.

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

12 years agogrammar: adds syntax for explicit extern calls and updates c_src
Alexis Laferrière [Wed, 17 Aug 2011 15:16:47 +0000 (11:16 -0400)]
grammar: adds syntax for explicit extern calls and updates c_src

Extern calls are declared with every extern methods to identify the
behavior in extern code. This includes method call from native code,
casts and constructors.

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

12 years agomakefile: adapts makefile for gcc 4.5.2
Alexis Laferrière [Sat, 15 Oct 2011 04:11:35 +0000 (00:11 -0400)]
makefile: adapts makefile for gcc 4.5.2

This version of gcc needs libraries to be listed after .o's.

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

12 years agonitdoc: uptate tests
Jean Privat [Thu, 9 Feb 2012 20:15:28 +0000 (15:15 -0500)]
nitdoc: uptate tests

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

12 years agonitdoc: update Makefile
Jean Privat [Thu, 9 Feb 2012 20:02:00 +0000 (15:02 -0500)]
nitdoc: update Makefile

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

12 years agotools: put -lm after objects
Jean Privat [Mon, 6 Feb 2012 20:27:48 +0000 (15:27 -0500)]
tools: put -lm after objects

As requested by some linkers that use by default --as-needed, libraries
must appears after objects that use them.

The problem was first noticed with Ubuntu 11.10 but some other systems
may use it soon or latter.

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

12 years agotool: fix pipe in nc
Jean Privat [Fri, 3 Feb 2012 21:44:41 +0000 (16:44 -0500)]
tool: fix pipe in nc

The bug was introduced in d03a40b23e420834fe95b07c62a57e328be90b06

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

12 years agoupdate README
Jean Privat [Fri, 3 Feb 2012 16:10:03 +0000 (11:10 -0500)]
update README

12 years agonitdoc: add the option --private
Jean Privat [Wed, 8 Feb 2012 21:15:25 +0000 (16:15 -0500)]
nitdoc: add the option --private

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

12 years agonitdoc: add --no-dot to skip graph generation
Jean Privat [Wed, 8 Feb 2012 20:16:55 +0000 (15:16 -0500)]
nitdoc: add --no-dot to skip graph generation

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

12 years agonitdoc: Handle correctly method with < or > in names
Jean Privat [Wed, 8 Feb 2012 19:53:07 +0000 (14:53 -0500)]
nitdoc: Handle correctly method with < or > in names

Instead of overriding the Symbol::to_s method, create a html_name method
and use it at the right places.

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

12 years agonitdoc: escape html chars in documentation
Jean Privat [Wed, 8 Feb 2012 19:26:08 +0000 (14:26 -0500)]
nitdoc: escape html chars in documentation

This is useful for doc block and title stuff.

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

12 years agonitdoc: simplify filenames
Jean Privat [Wed, 8 Feb 2012 16:20:11 +0000 (11:20 -0500)]
nitdoc: simplify filenames

This avoid some ugly path and html warnings.

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

12 years agonitdoc: add title to links with signature and documentation
Jean Privat [Mon, 6 Feb 2012 19:43:55 +0000 (14:43 -0500)]
nitdoc: add title to links with signature and documentation

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

12 years agonitdoc: clean generated html
Alexandre Terrasa [Tue, 7 Feb 2012 03:50:44 +0000 (22:50 -0500)]
nitdoc: clean generated html

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

12 years agonitdoc: complete rewrite
Jean Privat [Fri, 3 Feb 2012 21:26:17 +0000 (16:26 -0500)]
nitdoc: complete rewrite

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

12 years agosyntax: try to produce an error message for local property conflict
Jean Privat [Fri, 3 Feb 2012 20:30:49 +0000 (15:30 -0500)]
syntax: try to produce an error message for local property conflict

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

12 years agometamodel: give the burden of value conflict to the MMContext
Jean Privat [Fri, 3 Feb 2012 19:13:10 +0000 (14:13 -0500)]
metamodel: give the burden of value conflict to the MMContext

The idea is that the compiler or the doc can decide how to report the error.

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

12 years agonit: restrict some module visibility
Jean Privat [Wed, 1 Feb 2012 20:52:59 +0000 (15:52 -0500)]
nit: restrict some module visibility

Thanks to the new nitdoc, some unneeded visibility is easier to spot.

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

12 years agosyntax: error on hidden module gives the right module
Jean Privat [Wed, 25 Jan 2012 16:15:11 +0000 (11:15 -0500)]
syntax: error on hidden module gives the right module

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

12 years agosyntax: use attributes names for parameters in implicit inits
Jean Privat [Fri, 20 Jan 2012 01:22:10 +0000 (20:22 -0500)]
syntax: use attributes names for parameters in implicit inits

Use the name of the attributes as the name of the parameters for the
implicit inits.
Also take care of removing the first '_' (old style) or '@' (new style)
used to name attributes.

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

12 years agoMerge branch 'tools' into wip
Jean Privat [Thu, 5 Jan 2012 12:10:21 +0000 (07:10 -0500)]
Merge branch 'tools' into wip

12 years agoMerge zeta.labunix.uqam.ca:prog/nit/zeta-wip into tools
Jean Privat [Thu, 5 Jan 2012 01:40:21 +0000 (20:40 -0500)]
Merge zeta.labunix.uqam.ca:prog/nit/zeta-wip into tools

12 years agolib: remove macro definition _POSIX_C_SOURCE
Jean Privat [Thu, 5 Jan 2012 01:28:20 +0000 (20:28 -0500)]
lib: remove macro definition _POSIX_C_SOURCE

They where initially added to please --pedantic but cause some ugly portability issues.

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

12 years agotools: remove all option to the compiler
Jean Privat [Thu, 5 Jan 2012 01:26:12 +0000 (20:26 -0500)]
tools: remove all option to the compiler

Also use cc instead of gcc.

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

12 years agotools: fix or assume some bashism
Jean Privat [Thu, 5 Jan 2012 01:24:00 +0000 (20:24 -0500)]
tools: fix or assume some bashism

Remove some bashsims in git-gen-version.sh and nc.
Change the #! in showerr.sh to bash.

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

12 years agoparser: drop sed and use perl
Jean Privat [Thu, 5 Jan 2012 01:20:56 +0000 (20:20 -0500)]
parser: drop sed and use perl

sed is too much unportable.

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