Jean Privat [Thu, 4 Apr 2013 15:52:39 +0000 (11:52 -0400)]
fix initialization order of attributes
Explicitly use the linearization order.
All engines where broken; quite an exploit.
Reported-by: Nathan Heu <nathan.heu@gmail.com>
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 3 Apr 2013 15:52:50 +0000 (11:52 -0400)]
Merge branch 'var_null'
Jean Privat [Wed, 3 Apr 2013 13:23:36 +0000 (09:23 -0400)]
tests: add base_var_null2
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 3 Apr 2013 07:36:49 +0000 (03:36 -0400)]
nitg&i: accepts 'var x = null'
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 3 Apr 2013 07:36:12 +0000 (03:36 -0400)]
nitc: accepts 'var x = null'
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 2 Apr 2013 20:41:51 +0000 (16:41 -0400)]
Merge remote-tracking branch 'alexandre/benches'
Jean Privat [Mon, 25 Mar 2013 18:36:22 +0000 (14:36 -0400)]
Merge remote-tracking branch 'lucas/string'
Jean Privat [Mon, 25 Mar 2013 18:36:11 +0000 (14:36 -0400)]
Merge branch 'debugger'
Jean Privat [Fri, 22 Mar 2013 02:42:30 +0000 (22:42 -0400)]
tests: update nit.sav
Signed-off-by: Jean Privat <jean@pryen.org>
Lucas Bajolet [Fri, 22 Mar 2013 14:42:31 +0000 (10:42 -0400)]
nitdbg: Documented method untrace_variable to precise the role of the returned Bool
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Lucas BAJOLET [Wed, 6 Mar 2013 20:15:23 +0000 (15:15 -0500)]
nitdbg: Added command to print a stack trace at will
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas Bajolet [Thu, 14 Mar 2013 21:01:59 +0000 (17:01 -0400)]
nitdbg: Added function to continue execution automatically with -c option
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Tue, 5 Mar 2013 23:53:45 +0000 (18:53 -0500)]
nitdbg: Added missing documentation on commited functions
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Tue, 5 Mar 2013 23:44:04 +0000 (18:44 -0500)]
nitdbg: Added documentation for the trace and untrace functions
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
R4PaSs [Tue, 5 Mar 2013 22:46:22 +0000 (17:46 -0500)]
nitdbg: The untrace function can now be called via the interactive shell
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
R4PaSs [Tue, 5 Mar 2013 22:45:46 +0000 (17:45 -0500)]
nitdbg: Added command to untrace a variable
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
R4PaSs [Tue, 5 Mar 2013 22:44:55 +0000 (17:44 -0500)]
nitdbg: Trace function, auto adds an object to trace when encountering a traced object in a funciton call
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
R4PaSs [Tue, 5 Mar 2013 22:44:02 +0000 (17:44 -0500)]
nitdbg: Added the trace detection in main loop
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
R4PaSs [Tue, 5 Mar 2013 22:43:12 +0000 (17:43 -0500)]
nitdbg: Added function to add a variable to the trace list
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
R4PaSs [Tue, 5 Mar 2013 23:26:53 +0000 (18:26 -0500)]
nitdbg: Added function to trace a variable and all its super definitions
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Tue, 5 Mar 2013 22:39:49 +0000 (17:39 -0500)]
nitdbg: Seeks an argument in the specified frame to see if the variable is an argument in the function definition
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Tue, 5 Mar 2013 22:38:29 +0000 (17:38 -0500)]
nitdbg: Added function to parse a command and get only its identifiers
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Tue, 5 Mar 2013 22:37:09 +0000 (17:37 -0500)]
nitdbg: Added function to strip arguments from a function call or definition
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Tue, 5 Mar 2013 22:35:18 +0000 (17:35 -0500)]
stdlib: Char, added functions is_alpha and is_alphanumeric (used for several operations in debugger)
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas Bajolet [Thu, 14 Mar 2013 20:31:41 +0000 (16:31 -0400)]
nitdbg: Added class containing the trace information for a variable and the frame involved for this variable
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas Bajolet [Tue, 19 Mar 2013 18:06:26 +0000 (14:06 -0400)]
nitdbg: Added function to stop execution and input commands before program crash.
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
R4PaSs [Tue, 5 Mar 2013 23:20:36 +0000 (18:20 -0500)]
nitdbg: Added condition to avoid breaking on non-statements (ABlockExpr)
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Fri, 22 Feb 2013 20:10:08 +0000 (15:10 -0500)]
nitdbg: Added documentation for the features of the debugger
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
R4PaSs [Tue, 5 Mar 2013 23:19:56 +0000 (18:19 -0500)]
nitdbg: Added command to modify variables at runtime
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Fri, 22 Feb 2013 19:55:01 +0000 (14:55 -0500)]
nitdbg: Added function to modify a variable nested in a complex object instance
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Fri, 22 Feb 2013 19:54:17 +0000 (14:54 -0500)]
nitdbg: Added function to modify the state of a variable in the current frame
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Fri, 22 Feb 2013 19:51:40 +0000 (14:51 -0500)]
nitdbg: Added function that returns a new instance for any type and value
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Fri, 22 Feb 2013 19:48:54 +0000 (14:48 -0500)]
nitdbg: Added function to create a bool instance with its value
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Fri, 22 Feb 2013 19:48:35 +0000 (14:48 -0500)]
nitdbg: Added function to create a char instance with its value
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Fri, 22 Feb 2013 19:48:13 +0000 (14:48 -0500)]
nitdbg: Added function to create a float instance with its value
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Fri, 22 Feb 2013 19:47:22 +0000 (14:47 -0500)]
nitdbg: Added function to generate a Int instance with its value
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
R4PaSs [Tue, 5 Mar 2013 23:14:44 +0000 (18:14 -0500)]
nitdbg: Added command to print the content of any SequenceRead collection
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Fri, 22 Feb 2013 19:06:30 +0000 (14:06 -0500)]
nitdbg: Added function to print a collection recursively
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas Bajolet [Thu, 14 Mar 2013 20:07:14 +0000 (16:07 -0400)]
nitdbg: Removes the braces of a string and returns an array of string containing indexes or ranges for further processing
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Fri, 22 Feb 2013 19:04:13 +0000 (14:04 -0500)]
nitdbg: Gets a collection nested in a MutableInstance
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Fri, 22 Feb 2013 19:03:39 +0000 (14:03 -0500)]
nitdbg: Added an index parser returning the indexes of a range or int contained in a String
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Fri, 22 Feb 2013 19:17:21 +0000 (14:17 -0500)]
nitdbg: Added function to get the real length of a collection
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
R4PaSs [Tue, 5 Mar 2013 23:12:00 +0000 (18:12 -0500)]
nitdbg: Added aliases
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Thu, 21 Feb 2013 23:42:44 +0000 (18:42 -0500)]
nitdbg: Added the command to place a temporary breakpoint
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas Bajolet [Thu, 14 Mar 2013 19:55:08 +0000 (15:55 -0400)]
nitdbg: Added counter to Breakpoint class + documentation
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Thu, 21 Feb 2013 23:22:19 +0000 (18:22 -0500)]
nitdbg: Added command to list all commands available
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Thu, 21 Feb 2013 23:08:02 +0000 (18:08 -0500)]
nitdbg: Can remove breakpoints
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas Bajolet [Thu, 14 Mar 2013 19:51:37 +0000 (15:51 -0400)]
nitdbg: Can break on a breakpoint
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Thu, 21 Feb 2013 22:59:38 +0000 (17:59 -0500)]
nitdbg: Can place a breakpoint on a line of a file
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Thu, 21 Feb 2013 22:58:16 +0000 (17:58 -0500)]
nitdbg: Placed foundations for Breakpoints, can search in a HashMap if the breakpoint exists
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas Bajolet [Mon, 18 Mar 2013 19:16:25 +0000 (15:16 -0400)]
nitdbg: Added module and class Breakpoint
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Thu, 21 Feb 2013 22:28:27 +0000 (17:28 -0500)]
nitdbg: Added step-in function
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Thu, 21 Feb 2013 22:27:42 +0000 (17:27 -0500)]
nitdbg: Added possibility to step-out of a function
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Thu, 21 Feb 2013 22:15:10 +0000 (17:15 -0500)]
nitdbg: Added comments to separate the code into regions
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Thu, 21 Feb 2013 22:11:14 +0000 (17:11 -0500)]
nitdbg: Added the possibility to continue the execution without stopping on each statement
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas Bajolet [Mon, 18 Mar 2013 19:09:59 +0000 (15:09 -0400)]
nitdbg: Added the possibility to step over an instruction
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Lucas Bajolet [Tue, 19 Mar 2013 17:57:36 +0000 (13:57 -0400)]
nitdbg: Added function to process commands
Added command print/p to print a variable
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Wed, 13 Feb 2013 20:19:14 +0000 (15:19 -0500)]
stdlib: Corrected comments for function has_substring in Strings
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas Bajolet [Mon, 18 Mar 2013 20:03:03 +0000 (16:03 -0400)]
stdlib: Strings, modified concatenation operations (avoids creating a useless buffer)
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas Bajolet [Tue, 19 Mar 2013 17:21:26 +0000 (13:21 -0400)]
stdlib: Modified strings for performances with substring operations
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Thu, 21 Feb 2013 20:56:37 +0000 (15:56 -0500)]
nitdbg: Added function to print the value of a variable
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas Bajolet [Thu, 14 Mar 2013 19:00:29 +0000 (15:00 -0400)]
nitdbg: Added function to seek a variable in the specified frame
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Thu, 21 Feb 2013 20:46:28 +0000 (15:46 -0500)]
nitdbg: Added function to get a variable in the selected frame by its name
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas Bajolet [Thu, 14 Mar 2013 18:57:40 +0000 (14:57 -0400)]
nitdbg: Added function to get a specific variable in a MutableInstance (recursively)
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Thu, 21 Feb 2013 20:31:54 +0000 (15:31 -0500)]
nitdbg: Added a new function to get an attribute in a MutableInstance (Complex Object)
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas Bajolet [Thu, 14 Mar 2013 18:55:57 +0000 (14:55 -0400)]
nitdbg: Added capacity to interpret with debugger in nit.nit
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas Bajolet [Thu, 14 Mar 2013 18:48:25 +0000 (14:48 -0400)]
nitdbg: Added module debugger
Signed-off-by: Lucas BAJOLET <r4pass@hotmail.com>
Lucas BAJOLET [Mon, 18 Feb 2013 22:10:56 +0000 (17:10 -0500)]
stdlib: Strings, added tests for is_numeric function
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Lucas Bajolet [Mon, 18 Mar 2013 19:04:04 +0000 (15:04 -0400)]
stdlib: AbstractString, added function is_numeric
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Sat, 16 Mar 2013 02:17:23 +0000 (22:17 -0400)]
Merge branch 'extern_class'
Jean Privat [Wed, 20 Feb 2013 15:16:50 +0000 (10:16 -0500)]
test: add base_ni
Jean Privat [Sat, 16 Mar 2013 02:01:03 +0000 (22:01 -0400)]
model: Error on attempt to define attribute in an extern class
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 15 Mar 2013 01:01:37 +0000 (21:01 -0400)]
Merge remote-tracking branch 'at/nitmetrics'
Conflicts:
.gitignore
Jean Privat [Fri, 15 Mar 2013 00:33:37 +0000 (20:33 -0400)]
Merge remote-tracking branch 'alexis/syntastic'
Jean Privat [Thu, 14 Mar 2013 20:29:21 +0000 (16:29 -0400)]
tests: add test_string2.nit
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 14 Mar 2013 18:45:11 +0000 (14:45 -0400)]
nitc: do not warn on isa related on formal
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 14 Mar 2013 18:36:00 +0000 (14:36 -0400)]
oldmm: add MMtype#has_formal
Signed-off-by: Jean Privat <jean@pryen.org>
Alexis Laferrière [Tue, 5 Mar 2013 16:23:58 +0000 (11:23 -0500)]
misc: update vim syntastic plugin to latest specification
Config moved in a directory and was renamed, as per specification, with
an added bonus of making room for other engines. Also adds new standard
functions.
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Thu, 14 Mar 2013 12:50:21 +0000 (08:50 -0400)]
tests: add args to nitg.nit
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 14 Mar 2013 09:32:30 +0000 (05:32 -0400)]
tests: add post-args to nitc
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 14 Mar 2013 09:29:34 +0000 (05:29 -0400)]
tests: add post-args execution
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 14 Mar 2013 09:28:45 +0000 (05:28 -0400)]
tests: add a basic interpretation
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 14 Mar 2013 08:55:31 +0000 (04:55 -0400)]
niti: add extern method atof
Signed-off-by: Jean Privat <jean@pryen.org>
Alexandre Terrasa [Mon, 18 Feb 2013 17:32:29 +0000 (12:32 -0500)]
benches: added C# to gen micro benches
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 14 Feb 2013 21:26:02 +0000 (16:26 -0500)]
benches: added Scala to gen micro benches
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Fri, 8 Mar 2013 02:34:11 +0000 (21:34 -0500)]
nitg: remove VISITOR in ANode
76689bac6d03c89abcdb8236163dc867e95a6c3a added the virtual type
VISITOR in ANode. This make no sense
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 8 Mar 2013 01:53:27 +0000 (20:53 -0500)]
tests: really removed generic tree option from Makefile
b5ff62c6b16023f77ff163539c8fa9fa7611e17c forgot to remove the
invocation of the rule `nitg-s-tree` in `all`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 7 Mar 2013 21:17:24 +0000 (16:17 -0500)]
nitg: add missing final new-line
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 7 Mar 2013 21:16:33 +0000 (16:16 -0500)]
nitg: reintroduce
61f51486b07b14 (method supercall)
Jean Privat [Thu, 7 Mar 2013 21:15:53 +0000 (16:15 -0500)]
nitg: reintroduce
12d65b1df22 (use lookup_first_definition)
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 7 Mar 2013 21:14:50 +0000 (16:14 -0500)]
layout: temporally rename method linearize_mclasses to avoid conflict
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 7 Mar 2013 21:13:17 +0000 (16:13 -0500)]
Merge remote-tracking branch 'alexandre/master' into master
The merge discard the modification on global_compiled of the commits
12d65b1df223f86679d85f528f9ad76053dd90b7 and
61f51486b07b14f29532ff3fee726f36096d18a9 (those related to
lookup_*_definition and supercall).
Because of this separate_compiler does not compile.
They will be reintroduced in a future commit.
Conflicts:
src/global_compiler.nit
Alexandre Terrasa [Wed, 6 Mar 2013 20:48:26 +0000 (15:48 -0500)]
layout_builders: optimization of PropertyBMizer using linearization
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 6 Mar 2013 20:28:02 +0000 (15:28 -0500)]
layout_builders: replaced property extraction in specialized methods by redefintion of virtual types
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 6 Mar 2013 20:24:28 +0000 (15:24 -0500)]
layout_builders: introduced PropertyBMizer
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 6 Mar 2013 19:56:55 +0000 (14:56 -0500)]
layout_builders: modified nitg-s & nitg-e to use PropertyLayoutBuilderInterface
Removed old CLPropertyLayoutBuilder
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 6 Mar 2013 18:50:45 +0000 (13:50 -0500)]
layout_builders: Introduced interface PropertyLayoutBuilder (for future refactoring)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Tue, 5 Mar 2013 23:08:24 +0000 (18:08 -0500)]
layout_builders: Introduced interface ResolutionLayoutBuilder
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Tue, 5 Mar 2013 23:02:18 +0000 (18:02 -0500)]
layout_builders: Introduced ResolutionHasher (for future refactoring)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Tue, 5 Mar 2013 22:56:01 +0000 (17:56 -0500)]
layout_builders: Moved routines from CLResolutionLayoutBuilder into ResolutionColorer (for future refactoring)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>