nit.git
10 years agonitg: Modified compilation routine to avoid use of String contructors
Lucas Bajolet [Thu, 29 Aug 2013 20:03:44 +0000 (16:03 -0400)]
nitg: Modified compilation routine to avoid use of String contructors

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

10 years agoStdlib: Removed all references to String constructors in nit stdlib and tests.
Lucas Bajolet [Thu, 29 Aug 2013 21:23:14 +0000 (17:23 -0400)]
Stdlib: Removed all references to String constructors in nit stdlib and tests.

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

10 years agotests: include skipped tests in XML
Jean Privat [Wed, 21 Aug 2013 16:25:10 +0000 (12:25 -0400)]
tests: include skipped tests in XML

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

10 years agotests: provide a better classname for XML
Jean Privat [Wed, 21 Aug 2013 16:24:36 +0000 (12:24 -0400)]
tests: provide a better classname for XML

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

10 years agoMerge remote-tracking branch 'alexis/lib/sqlite3'
Jean Privat [Wed, 21 Aug 2013 14:48:37 +0000 (10:48 -0400)]
Merge remote-tracking branch 'alexis/lib/sqlite3'

10 years agotests: marks tests with no sav as skipped
Jean Privat [Wed, 21 Aug 2013 14:28:16 +0000 (10:28 -0400)]
tests: marks tests with no sav as skipped

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

10 years agotests: really display the compile log, on all case, if not empty
Jean Privat [Wed, 21 Aug 2013 14:27:52 +0000 (10:27 -0400)]
tests: really display the compile log, on all case, if not empty

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

10 years agolib/sqlite3: adds fallback for sqlite3_errstr in case it is unsupported
Alexis Laferrière [Wed, 21 Aug 2013 01:44:13 +0000 (21:44 -0400)]
lib/sqlite3: adds fallback for sqlite3_errstr in case it is unsupported

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

10 years agoMerge remote-tracking branch 'alexis/sort_downloads'
Jean Privat [Wed, 21 Aug 2013 01:13:48 +0000 (21:13 -0400)]
Merge remote-tracking branch 'alexis/sort_downloads'

Conflicts:
lib/standard/collection/abstract_collection.nit
tests/testfull.sh

10 years agotests: add compile.log to the XML in case of failure
Jean Privat [Wed, 21 Aug 2013 01:03:24 +0000 (21:03 -0400)]
tests: add compile.log to the XML in case of failure

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

10 years agotests: invert diff order (sav->out)
Jean Privat [Wed, 21 Aug 2013 01:02:39 +0000 (21:02 -0400)]
tests: invert diff order (sav->out)

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

10 years agocontrib/sort_downloads: adds script to testfull.sh and sav
Alexis Laferrière [Tue, 20 Aug 2013 19:36:06 +0000 (15:36 -0400)]
contrib/sort_downloads: adds script to testfull.sh and sav

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

10 years agocontrib/sort_downloads: adds confirmation of configuration to run
Alexis Laferrière [Tue, 20 Aug 2013 19:33:47 +0000 (15:33 -0400)]
contrib/sort_downloads: adds confirmation of configuration to run

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

10 years agolib: clean up error codes in sqlite3
Alexis Laferrière [Tue, 20 Aug 2013 05:01:11 +0000 (01:01 -0400)]
lib: clean up error codes in sqlite3

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

10 years agolib: simplifies sqlite3
Alexis Laferrière [Tue, 20 Aug 2013 04:55:40 +0000 (00:55 -0400)]
lib: simplifies sqlite3

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

10 years agolib: use more than one classe in sqlite3
Alexis Laferrière [Tue, 20 Aug 2013 04:52:21 +0000 (00:52 -0400)]
lib: use more than one classe in sqlite3

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

10 years agolib: use Sqlite3 return codes
Alexis Laferrière [Mon, 19 Aug 2013 22:35:33 +0000 (18:35 -0400)]
lib: use Sqlite3 return codes

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

10 years agolib: intro of the sqlite3 module
Alexis Laferrière [Wed, 14 Aug 2013 22:18:16 +0000 (18:18 -0400)]
lib: intro of the sqlite3 module

Created by Guillaume Auger for nitcorn.

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

10 years agotests: enable XML output compatible with junit/jenkins
Jean Privat [Tue, 20 Aug 2013 15:22:33 +0000 (11:22 -0400)]
tests: enable XML output compatible with junit/jenkins

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

10 years agotests: update nitdocs
Jean Privat [Tue, 20 Aug 2013 13:44:18 +0000 (09:44 -0400)]
tests: update nitdocs

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

10 years agoMerge remote-tracking branch 'alexandre/fix_nitdoc'
Jean Privat [Mon, 19 Aug 2013 20:26:23 +0000 (16:26 -0400)]
Merge remote-tracking branch 'alexandre/fix_nitdoc'

10 years agonitdoc: fixed shared files with ni_nitdoc.
Alexandre Terrasa [Mon, 19 Aug 2013 20:02:34 +0000 (16:02 -0400)]
nitdoc: fixed shared files with ni_nitdoc.

Each engine now have its own share folder, the old one will be deleted whan ni_nitdoc will become nitdoc.

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

10 years agotests: add base_covar_int2.nit and base_virtual_int2.nit
Jean Privat [Mon, 19 Aug 2013 16:46:04 +0000 (12:46 -0400)]
tests: add base_covar_int2.nit and base_virtual_int2.nit

But new compilers are broken since they do the type-adaptation before the
covariance check.

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

10 years agotests: update sav/base_covar_int and sav/base_virtual_int because kernel has changed
Jean Privat [Mon, 19 Aug 2013 16:39:41 +0000 (12:39 -0400)]
tests: update sav/base_covar_int and sav/base_virtual_int because kernel has changed

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

10 years agoMerge branch 'nitunit'
Jean Privat [Sat, 17 Aug 2013 20:33:14 +0000 (16:33 -0400)]
Merge branch 'nitunit'

10 years agolib: add some examples/unit tests
Jean Privat [Sat, 17 Aug 2013 20:32:14 +0000 (16:32 -0400)]
lib: add some examples/unit tests

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

10 years agolib: fix implem of Range::has_only
Jean Privat [Sat, 17 Aug 2013 20:31:30 +0000 (16:31 -0400)]
lib: fix implem of Range::has_only

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

10 years agomake: add nitunit to makefiles
Jean Privat [Sat, 17 Aug 2013 04:10:26 +0000 (00:10 -0400)]
make: add nitunit to makefiles

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

10 years agotests: add tests for nitunit.nit
Jean Privat [Sat, 17 Aug 2013 04:07:40 +0000 (00:07 -0400)]
tests: add tests for nitunit.nit

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

10 years agogitignore: add .nitunit
Jean Privat [Sat, 17 Aug 2013 04:04:14 +0000 (00:04 -0400)]
gitignore: add .nitunit

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

10 years agotool: new program nitunit.nit
Jean Privat [Sat, 17 Aug 2013 03:56:51 +0000 (23:56 -0400)]
tool: new program nitunit.nit

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

10 years agolibhtml: escape attributes keys and values
Jean Privat [Sat, 17 Aug 2013 03:55:53 +0000 (23:55 -0400)]
libhtml: escape attributes keys and values

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

10 years agolibhtml: add HTMLTag#save
Jean Privat [Fri, 16 Aug 2013 17:45:47 +0000 (13:45 -0400)]
libhtml: add HTMLTag#save

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

10 years agomarkdown: add hook to allow additional processing of code in doc
Jean Privat [Sat, 17 Aug 2013 04:19:52 +0000 (00:19 -0400)]
markdown: add hook to allow additional processing of code in doc

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

10 years agoMerge branch 'markdown'
Jean Privat [Fri, 16 Aug 2013 10:13:13 +0000 (06:13 -0400)]
Merge branch 'markdown'

10 years agosrc: fix example for String::unescape_nit
Jean Privat [Fri, 16 Aug 2013 10:11:58 +0000 (06:11 -0400)]
src: fix example for String::unescape_nit

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

10 years agoarray: fix Array::swap_at
Jean Privat [Fri, 16 Aug 2013 10:05:17 +0000 (06:05 -0400)]
array: fix Array::swap_at

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

10 years agolib: improve examples in documentation
Jean Privat [Fri, 16 Aug 2013 10:04:51 +0000 (06:04 -0400)]
lib: improve examples in documentation

Instead of

    #     bla # -> res

Use

    #     assert bla   == res

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

10 years agolib: remove duplicated documentation in string
Jean Privat [Fri, 16 Aug 2013 09:08:42 +0000 (05:08 -0400)]
lib: remove duplicated documentation in string

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

10 years agotests: sav/test_markdown.res
Jean Privat [Fri, 16 Aug 2013 08:40:26 +0000 (04:40 -0400)]
tests: sav/test_markdown.res

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

10 years agosrc: add new program test_markdown.nit
Jean Privat [Fri, 16 Aug 2013 08:38:49 +0000 (04:38 -0400)]
src: add new program test_markdown.nit

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

10 years agolibthml: add HTMLTag::add_raw_html
Jean Privat [Fri, 16 Aug 2013 08:36:56 +0000 (04:36 -0400)]
libthml: add HTMLTag::add_raw_html

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

10 years agoni_nitdoc: add css for nitdoc elements
Jean Privat [Fri, 16 Aug 2013 07:56:11 +0000 (03:56 -0400)]
ni_nitdoc: add css for nitdoc elements

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

10 years agoni_nitdoc: display doc in <div>, not in <pre>
Jean Privat [Fri, 16 Aug 2013 02:27:52 +0000 (22:27 -0400)]
ni_nitdoc: display doc in <div>, not in <pre>

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

10 years agoni_nitdoc: use the module markdown
Jean Privat [Fri, 16 Aug 2013 02:26:08 +0000 (22:26 -0400)]
ni_nitdoc: use the module markdown

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

10 years agosrc: new module markdown.nit to convert ADoc to HTML
Jean Privat [Fri, 16 Aug 2013 02:25:15 +0000 (22:25 -0400)]
src: new module markdown.nit to convert ADoc to HTML

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

10 years agoMerge branch 'betterdoc'
Jean Privat [Thu, 15 Aug 2013 20:09:44 +0000 (16:09 -0400)]
Merge branch 'betterdoc'

10 years agotests: update sav/base_covar_int and sav/base_virtual_int
Jean Privat [Thu, 15 Aug 2013 20:09:03 +0000 (16:09 -0400)]
tests: update sav/base_covar_int and sav/base_virtual_int

because lines in kernel.nit has changed

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

10 years agoMerge branch 'libhtml'
Jean Privat [Thu, 15 Aug 2013 18:36:16 +0000 (14:36 -0400)]
Merge branch 'libhtml'

10 years agonit tools: fix typo and style in documentation
Jean Privat [Thu, 15 Aug 2013 18:16:06 +0000 (14:16 -0400)]
nit tools: fix typo and style in documentation

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

10 years agoparser: fix typo and style in documentation
Jean Privat [Thu, 15 Aug 2013 18:16:24 +0000 (14:16 -0400)]
parser: fix typo and style in documentation

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

10 years agomodel: fix typo and style in documentation
Jean Privat [Thu, 15 Aug 2013 18:30:06 +0000 (14:30 -0400)]
model: fix typo and style in documentation

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

10 years agolib: fix typo and style in documentation
Jean Privat [Thu, 15 Aug 2013 18:15:01 +0000 (14:15 -0400)]
lib: fix typo and style in documentation

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

10 years agolibhtml: more efficiency way to render HTML
Jean Privat [Thu, 15 Aug 2013 15:36:01 +0000 (11:36 -0400)]
libhtml: more efficiency way to render HTML

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

10 years agolibhtml: `HTMLTag.append` add a text-child node
Jean Privat [Thu, 15 Aug 2013 15:07:35 +0000 (11:07 -0400)]
libhtml: `HTMLTag.append` add a text-child node

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

10 years agoparser: add ToolContext#parse_something
Jean Privat [Fri, 2 Aug 2013 07:31:49 +0000 (03:31 -0400)]
parser: add ToolContext#parse_something

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

10 years agolexer: `get_token` is now protected
Jean Privat [Wed, 14 Aug 2013 15:04:31 +0000 (11:04 -0400)]
lexer: `get_token` is now protected

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

10 years agotests: add ni_nitdoc.args
Jean Privat [Thu, 15 Aug 2013 01:19:56 +0000 (21:19 -0400)]
tests: add ni_nitdoc.args

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

10 years agotests: update sav/nitdoc_args1
Jean Privat [Thu, 15 Aug 2013 00:58:38 +0000 (20:58 -0400)]
tests: update sav/nitdoc_args1

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

10 years agoMerge branch 'mmnitdoc' of https://github.com/Morriar/nit
Jean Privat [Wed, 14 Aug 2013 14:34:12 +0000 (10:34 -0400)]
Merge branch 'mmnitdoc' of https://github.com/Morriar/nit

10 years agoni_nitdoc: generate doc/newmodel with it
Jean Privat [Wed, 14 Aug 2013 09:52:29 +0000 (05:52 -0400)]
ni_nitdoc: generate doc/newmodel with it

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

10 years agoni_nitdoc: add in bin as bin/nitdocx
Jean Privat [Wed, 14 Aug 2013 09:43:38 +0000 (05:43 -0400)]
ni_nitdoc: add in bin as bin/nitdocx

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

10 years agoni_nitdoc: rethinked mmodule page.
Alexandre Terrasa [Wed, 14 Aug 2013 01:10:26 +0000 (21:10 -0400)]
ni_nitdoc: rethinked mmodule page.

Module page now displays intro classes, redef classes and refined classes (in this order)
Added a side bar block to quick list classes (sorted by kind)
Nested modules are always dislayed
Modified comment display for better readability

Also cleaned trailing spaces in main.css

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

10 years agoni_nitdoc: added "more results" entry in quicksearch.
Alexandre Terrasa [Thu, 8 Aug 2013 17:31:49 +0000 (13:31 -0400)]
ni_nitdoc: added "more results" entry in quicksearch.

Whenever the number of results for quicksearch reach 10, an entry is added to the quicksearch to show that more results exist and allow user to clic and go to the Search page

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

10 years agoni_nitdoc: fixed duplicates in properties columns
Alexandre Terrasa [Thu, 8 Aug 2013 15:54:12 +0000 (11:54 -0400)]
ni_nitdoc: fixed duplicates in properties columns

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

10 years agoni_nitdoc: renamed Full Index page into "Search"
Alexandre Terrasa [Thu, 8 Aug 2013 15:43:50 +0000 (11:43 -0400)]
ni_nitdoc: renamed Full Index page into "Search"

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

10 years agoni_nitdoc: added fast copy past utility to signatures.
Alexandre Terrasa [Wed, 14 Aug 2013 13:46:36 +0000 (09:46 -0400)]
ni_nitdoc: added fast copy past utility to signatures.

The "copy signature" button is added by JS. Copy to clipboard functionality is provided by the Zeroclipboard JS lib.

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

10 years agoMerge branch 'transform_ast'
Jean Privat [Wed, 14 Aug 2013 00:40:15 +0000 (20:40 -0400)]
Merge branch 'transform_ast'

Conflicts:
src/nit.nit

Update:
src/nitdbg_commons.nit

10 years agotests: update cast-failed runtime error
Jean Privat [Tue, 13 Aug 2013 19:03:01 +0000 (15:03 -0400)]
tests: update cast-failed runtime error

Since location in kernel.nit has changed.

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

10 years agoniti: implements extern method native_int_to_s
Jean Privat [Tue, 13 Aug 2013 18:58:04 +0000 (14:58 -0400)]
niti: implements extern method native_int_to_s

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

10 years agoMerge remote-tracking branch 'lucas/int_boost'
Jean Privat [Tue, 13 Aug 2013 18:44:00 +0000 (14:44 -0400)]
Merge remote-tracking branch 'lucas/int_boost'

10 years agotests: add sav/netdbg.res
Jean Privat [Wed, 14 Aug 2013 00:37:52 +0000 (20:37 -0400)]
tests: add sav/netdbg.res

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

10 years agoniti: --help and no arguments exits the program
Jean Privat [Tue, 13 Aug 2013 18:13:49 +0000 (14:13 -0400)]
niti: --help and no arguments exits the program

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

10 years agoMerge remote-tracking branch 'lucas/netdbg_wip'
Jean Privat [Tue, 13 Aug 2013 18:11:17 +0000 (14:11 -0400)]
Merge remote-tracking branch 'lucas/netdbg_wip'

Conflicts:
src/Makefile
src/nit.nit

Updated:
src/nitdbg_commons.nit

10 years agotests: update sav/error_needed_method
Jean Privat [Mon, 12 Aug 2013 18:45:09 +0000 (14:45 -0400)]
tests: update sav/error_needed_method

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

10 years agoKernel : Int, optimization on the digit count method for Base 10 numbers.
Lucas Bajolet [Tue, 13 Aug 2013 18:01:33 +0000 (14:01 -0400)]
Kernel : Int, optimization on the digit count method for Base 10 numbers.

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

10 years agonew modules astbuilder, astvalidation, astprinter, and transform
Jean Privat [Mon, 12 Aug 2013 18:44:20 +0000 (14:44 -0400)]
new modules astbuilder, astvalidation, astprinter, and transform

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

10 years agotyping: the static type of a blockexpr is the one of the last expression
Jean Privat [Tue, 13 Aug 2013 16:27:04 +0000 (12:27 -0400)]
typing: the static type of a blockexpr is the one of the last expression

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

10 years agoparser: no public setter for parent
Jean Privat [Tue, 13 Aug 2013 13:27:03 +0000 (09:27 -0400)]
parser: no public setter for parent

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

10 years agocache: assigning parent is no more required
Jean Privat [Tue, 13 Aug 2013 13:26:26 +0000 (09:26 -0400)]
cache: assigning parent is no more required

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

10 years agoparser: add setters for non-list attributes
Jean Privat [Tue, 13 Aug 2013 02:48:32 +0000 (22:48 -0400)]
parser: add setters for non-list attributes

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

10 years agoparser: use ANodes instead of List
Jean Privat [Tue, 13 Aug 2013 02:39:32 +0000 (22:39 -0400)]
parser: use ANodes instead of List

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

10 years agostdlib: Strings, optimized to_s for Int.
Lucas Bajolet [Tue, 13 Aug 2013 17:59:46 +0000 (13:59 -0400)]
stdlib: Strings, optimized to_s for Int.

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

10 years agotests: simplify test_refinement.nit
Jean Privat [Mon, 12 Aug 2013 18:39:40 +0000 (14:39 -0400)]
tests: simplify test_refinement.nit

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

10 years agonitg: compile AIntExpr and ACharExpr from the value
Jean Privat [Mon, 12 Aug 2013 16:04:08 +0000 (12:04 -0400)]
nitg: compile AIntExpr and ACharExpr from the value

TODO: AFloatExpr cannot be implemented correctly yen since there
is no to_s method that do not loose precision in the std libraby.

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

10 years agotyping: marks ADebugTypeExpr as typed
Jean Privat [Mon, 12 Aug 2013 15:49:26 +0000 (11:49 -0400)]
typing: marks ADebugTypeExpr as typed

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

10 years agonitg/i: extends frontend to avoid some nitc linex issues
Jean Privat [Mon, 12 Aug 2013 15:48:58 +0000 (11:48 -0400)]
nitg/i: extends frontend to avoid some nitc linex issues

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

10 years agoREADME: update
Jean Privat [Sat, 10 Aug 2013 02:13:16 +0000 (22:13 -0400)]
README: update

10 years agomodelbuilder: error when using `intrude' on classes and properties
Jean Privat [Sat, 10 Aug 2013 02:06:33 +0000 (22:06 -0400)]
modelbuilder: error when using `intrude' on classes and properties

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

10 years agonitdbg : Added remote debugger to nit standard make program.
Lucas Bajolet [Fri, 9 Aug 2013 21:36:46 +0000 (17:36 -0400)]
nitdbg : Added remote debugger to nit standard make program.
Factorized common code between nit.nit and netdbg.nit under nitdbg_commons.nit.

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

10 years agonitg/i: implement the `if` as an expression
Jean Privat [Fri, 9 Aug 2013 20:24:48 +0000 (16:24 -0400)]
nitg/i: implement the `if` as an expression

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

10 years agonitg/i: implements var assignment as an expression
Jean Privat [Fri, 9 Aug 2013 20:24:09 +0000 (16:24 -0400)]
nitg/i: implements var assignment as an expression

The returned value is the right value

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

10 years agotyping: toggle ASuperExpr::is_typed
Jean Privat [Fri, 9 Aug 2013 19:31:05 +0000 (15:31 -0400)]
typing: toggle ASuperExpr::is_typed

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

10 years agoparser: do not lose location in case of replacement
Jean Privat [Fri, 9 Aug 2013 16:53:25 +0000 (12:53 -0400)]
parser: do not lose location in case of replacement

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

10 years agoparser: hide ANode::replace_child, add ANode::detach
Jean Privat [Fri, 9 Aug 2013 16:51:46 +0000 (12:51 -0400)]
parser: hide ANode::replace_child, add ANode::detach

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

10 years agoparser: `Visitor::visit` does not accepts `null`
Jean Privat [Fri, 9 Aug 2013 15:37:41 +0000 (11:37 -0400)]
parser: `Visitor::visit` does not accepts `null`

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

10 years agoparser: clean, intent and comment parser_nodes
Jean Privat [Fri, 9 Aug 2013 15:24:48 +0000 (11:24 -0400)]
parser: clean, intent and comment parser_nodes

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

10 years agoparser: move things from parser_prod to parser_nodes
Jean Privat [Fri, 9 Aug 2013 13:41:13 +0000 (09:41 -0400)]
parser: move things from parser_prod to parser_nodes

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

10 years agonitg/i: can use a ABlockExpr as an expression
Jean Privat [Thu, 8 Aug 2013 14:25:28 +0000 (10:25 -0400)]
nitg/i: can use a ABlockExpr as an expression

This will be useful when AST transformations will be more used
as a single expression could be transformed as a sequence of statements.

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

10 years agotests: update error_needed_method_alt6 and error_needed_method_alt7
Jean Privat [Fri, 9 Aug 2013 17:00:13 +0000 (13:00 -0400)]
tests: update error_needed_method_alt6 and error_needed_method_alt7

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