Lucas Bajolet [Wed, 4 Jun 2014 20:38:26 +0000 (16:38 -0400)]
lib/standard/ropes: Bases of RopeString class.
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Lucas Bajolet [Wed, 4 Jun 2014 20:36:40 +0000 (16:36 -0400)]
lib/standard/ropes: Added basic structure for Ropes.
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Lucas Bajolet [Wed, 4 Jun 2014 20:31:54 +0000 (16:31 -0400)]
lib/standard/ropes: Nodes for Ropes.
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Lucas Bajolet [Wed, 4 Jun 2014 20:30:21 +0000 (16:30 -0400)]
lib/standard: Removal of all of ropes.nit content for complete rewrite.
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Tue, 3 Jun 2014 20:37:29 +0000 (16:37 -0400)]
Merge: Improve mdoc & markdown
Various small improvement on the mdoc and markdown side
more important stuff in no particular order:
* MDoc::original_mentity gives context
* README documents mgroups
* markdown need 4 spaces (not 5) for code-block and trims them
* most parts of test_markdown are refreshed
See examples in http://nitlanguage.org/code/test-markdown.html ; it just lists entities in an <h?> tag followed by its documentation
Pull-Request: #477
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Tue, 3 Jun 2014 18:56:40 +0000 (14:56 -0400)]
Merge: Typing gets its context from the model, not the AST
This replace some usage of AST nodes with model entities in the signature of some services in modelbuilder and typing.
This simplifies the clients that can now think less about the AST.
But the main objective is to permit, in some reasonable future, to feed arbitrary piece of code to the phase system.
Eg. of concrete future use: safe and clean analysis of pieces of code in documentation.
Pull-Request: #476
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Tue, 3 Jun 2014 13:09:56 +0000 (09:09 -0400)]
modelbuilder: considers that mentities outside the modelbuilder are safe
When playing with injected code, a specific modelbuilder should only bother
to recursively build its knowledge
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 3 Jun 2014 12:42:56 +0000 (08:42 -0400)]
typing: TypeVisitor need mmodule and mpropdef, not aclassdef
This will help to analyze code with a injected context
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 2 Jun 2014 19:21:49 +0000 (15:21 -0400)]
modelize_property: remove usage of `nclassdef`
nclassdef are less needed, so just not use them when possible.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 2 Jun 2014 19:09:57 +0000 (15:09 -0400)]
modelbuilder: `resolve_mtype` require a MClassDef instead of a AClassdef
This also simplify some the clients.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 2 Jun 2014 18:43:24 +0000 (14:43 -0400)]
typing: promote `TV::mmodule` and `TV::anchor` to attributes
Also teach function to use them instead going trough `nclassdef`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 3 Jun 2014 15:47:10 +0000 (11:47 -0400)]
tests: update test_markdown
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 3 Jun 2014 14:34:01 +0000 (10:34 -0400)]
test_markdown: refine href in MEntities to match the generated HTML
I am not sure this is the way to go ; maybe, a better API could be
to have to kind of double dispatch between the Higliter and the MEntity
so that a specific highliting behavior could be done by creating a subclass
of HighlightVisitor.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 3 Jun 2014 14:03:38 +0000 (10:03 -0400)]
test_markdown: --full also document projects and groups
Currently, there is no way to document projects, but groups have the new
`README` feature
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 3 Jun 2014 14:02:22 +0000 (10:02 -0400)]
test_markdown: rewrite core method
Because used services are in the model
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 3 Jun 2014 14:01:54 +0000 (10:01 -0400)]
test_markdown: use more css and js from highlight
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 3 Jun 2014 13:47:59 +0000 (09:47 -0400)]
highlight: do not add html classes to unresolved local variables
Eg. this avoid highlighting to only highlight the fist occurrence of `x`
in the following AST if no semantic analysis is run
~~~
var x = 5
print x
~~~
Now, either none, or both `x` are identified as variables according to how
mush semantic analysis is performed.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 3 Jun 2014 13:06:10 +0000 (09:06 -0400)]
highlight: factorizes css and js requirements
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 3 Jun 2014 13:05:21 +0000 (09:05 -0400)]
highlight: "display: block" and "line" only make sense in <pre> tags
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 3 Jun 2014 12:52:22 +0000 (08:52 -0400)]
markdown: code-block is detected with 3 spaces
So a total of 4 including the space that follows the #
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 3 Jun 2014 12:49:33 +0000 (08:49 -0400)]
markdown: trim indenting spaces from code-blocks in MDoc
So there is no more useless margin if code block is indented with 6 or more
spaces.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 3 Jun 2014 12:45:59 +0000 (08:45 -0400)]
modelbuilder: build MDoc of MGroup from README files
This is a crazy idea form lunch-time; let's see if it catches.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 3 Jun 2014 12:44:46 +0000 (08:44 -0400)]
model: add optional MDoc::original_mentity
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 2 Jun 2014 18:30:03 +0000 (14:30 -0400)]
Merge: Check class kind
Enforce that the specialization conforms the rules.
This solve a old, undocumented, and forgotten TODO in the new engine.
Pull-Request: #475
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Mon, 2 Jun 2014 15:36:44 +0000 (11:36 -0400)]
Merge: Nitlightrapbox: nitlight + infobox + bootstrap + astutil
before: http://nitlanguage.org/code/highlight.html
after: http://nitlanguage.org/code2/highlight.html
Pull-Request: #474
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Mon, 2 Jun 2014 15:04:11 +0000 (11:04 -0400)]
tests: add base_error_class_kind
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 2 Jun 2014 15:03:24 +0000 (11:03 -0400)]
model: check if specialization is allowed between class kinds
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 2 Jun 2014 15:02:47 +0000 (11:02 -0400)]
model: `extern_kind` is "extern class", not just "extern"
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 2 Jun 2014 12:55:30 +0000 (08:55 -0400)]
tests: update test_parser ; no more column numbered 0
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 31 May 2014 02:55:20 +0000 (22:55 -0400)]
parser_util: parse_somethig behave correclty when the first token is an error
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 31 May 2014 01:02:28 +0000 (21:02 -0400)]
tests: update test_markdown because the new highligther
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 31 May 2014 01:01:30 +0000 (21:01 -0400)]
astutil: do not crash if the AST is just a token
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 31 May 2014 00:59:07 +0000 (20:59 -0400)]
parser_util: drop injected tokens
Do not locate them so they are excluded by the parser.
Remove parents in the result of parse_something so injected tokens
become unaccesible.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 31 May 2014 00:56:54 +0000 (20:56 -0400)]
parser: do not crash on tokens without location
Do not insert them in the linked lis of tokens
Do not use them to compute locations on productions
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 30 May 2014 20:24:58 +0000 (16:24 -0400)]
tests: update nitlight
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 30 May 2014 20:15:31 +0000 (16:15 -0400)]
nitlight: enable boostrap in generated pages
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 30 May 2014 20:12:19 +0000 (16:12 -0400)]
highlight: rewrite using astutil and with infoboxes
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 30 May 2014 20:05:05 +0000 (16:05 -0400)]
nitlight: add a title on the html document
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 30 May 2014 19:57:45 +0000 (15:57 -0400)]
lib/html: `HTMLTag::add` returs self for fluent programming
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 30 May 2014 20:00:13 +0000 (16:00 -0400)]
lib/html: add `HTMLTag::open`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 30 May 2014 15:06:16 +0000 (11:06 -0400)]
Merge: more feature for the AST
New services for client of the AST who care about the real text representation of the code (eg. highlighter or pretty-printers).
A better nitlighter should follow once this is reviewed and accepted.
The two first commits move some code in new modules.
The folowing commits add some features and nitpickfixes
The last commit introduces a new module, `astutil`, that will be used by the new highlighter (instead of the current ugly double cursor mechanism).
The method `astutil::ANode::to_xml` is not that useful but presents an exemple of a basic implementation of the targeted clients.
Pull-Request: #473
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Fri, 30 May 2014 15:02:56 +0000 (11:02 -0400)]
tests: update highlight and cie because `.` is no more an operator
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 29 May 2014 12:46:30 +0000 (08:46 -0400)]
src: new module astutil.nit
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 29 May 2014 06:40:13 +0000 (02:40 -0400)]
parser: dot dotdot and dotdotdot are not operators
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 28 May 2014 15:28:23 +0000 (11:28 -0400)]
parser: add `Token::blank_before`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 28 May 2014 13:03:33 +0000 (09:03 -0400)]
parser: `ANode::debug` outputs on stderr instead of stdin
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 28 May 2014 13:02:58 +0000 (09:02 -0400)]
parser: add some basic tree services in ANode
* `ANode::root` to get the root node
* `ANode::common_parent` to get the smallest common parent of two nodes
* `ANode::depth` to get the distance beween root and self
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 28 May 2014 13:00:29 +0000 (09:00 -0400)]
parser: add `SourceFile::first_token` and `SourceFile::last_token`
This helps to manipulate the token list.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 27 May 2014 18:06:23 +0000 (14:06 -0400)]
parser: move stable content of `lexer.nit` into `lexer_work.nit
What is still generated is thus even more minimal.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 27 May 2014 17:55:19 +0000 (13:55 -0400)]
parser: move stable content of `parser.nit` into `parser_work.nit
What is still generated is thus more minimal.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 29 May 2014 01:47:52 +0000 (21:47 -0400)]
Merge: nitg: use a portable macro PRINT_ERROR instead of fprintf
Outputs to stderr on Linux and to logcat on Android.
The macro is defined both in the C internal to the compiled Nt program and to each FFI files which are separated from the internals.
Pull-Request: #417
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Jean Privat <jean@pryen.org>
Alexis Laferrière [Wed, 28 May 2014 21:52:13 +0000 (17:52 -0400)]
tests: fix savs for nitg-g to reorder output on stderr
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 28 May 2014 21:40:39 +0000 (17:40 -0400)]
src: use macro PRINT_ERROR for deferred method error
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 28 May 2014 21:49:40 +0000 (17:49 -0400)]
Merge branch 'master' into portable-errors
Alexis Laferrière [Wed, 28 May 2014 21:48:51 +0000 (17:48 -0400)]
tests: fix sav for error_annot_c_compiler
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Wed, 28 May 2014 19:48:51 +0000 (15:48 -0400)]
Merge: Geometry module
Will be used by QuadTrees, Bentley-Ottman and gammit.
For each geometric concept there is an interface beginning with 'A' and an implementation. Such as the abstract APoint and concrete class Point.
Pull-Request: #442
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Chanoir <chanoir.romain@courrier.uqam.ca>
Alexis Laferrière [Wed, 28 May 2014 17:31:38 +0000 (13:31 -0400)]
tests: fix nitg-e fixme files with changes to kernel
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 18 Apr 2014 22:00:13 +0000 (18:00 -0400)]
lib: intro the geometry module
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Signed-off-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 23 May 2014 15:26:15 +0000 (11:26 -0400)]
lib: add nitunits to Numeric::value_of
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Wed, 28 May 2014 14:15:45 +0000 (10:15 -0400)]
Merge: nitunit: fix verbose display
Minor fix:
`tc.attrs["name"]}` already contains the class namespace
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Pull-Request: #471
Jean Privat [Wed, 28 May 2014 12:57:39 +0000 (08:57 -0400)]
Merge: Funnier dino
- Improve Dino hit box (and show it with a shadow)
- The difference in the Dino image move it up by a few pixels.
Pull-Request: #437
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 28 May 2014 03:40:45 +0000 (23:40 -0400)]
nitunit: fix verbose display
`tc.attrs["name"]}` already contains the class namespace
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexis Laferrière [Tue, 27 May 2014 21:53:48 +0000 (17:53 -0400)]
dino: update to use app.nit
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Mon, 14 Apr 2014 19:28:05 +0000 (15:28 -0400)]
dino: add a more precise hit box to the dino
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Mon, 14 Apr 2014 19:27:49 +0000 (15:27 -0400)]
dino: add a shadow to dino
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 8 Apr 2014 19:53:11 +0000 (15:53 -0400)]
dino: make code base more redefable
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 26 Apr 2014 00:47:56 +0000 (20:47 -0400)]
dino: use project annotations in dino
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Fri, 23 May 2014 12:36:09 +0000 (08:36 -0400)]
Merge: Clean some inits
Yet anoner step toward new inits.
In this PR, just some updates on existing constructors to simplify the transition.
Pull-Request: #468
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Tue, 20 May 2014 18:27:28 +0000 (14:27 -0400)]
parser: drop useless named constructor `empty_init`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 20 May 2014 18:15:05 +0000 (14:15 -0400)]
lib/ropes: use `redef` for inherited named constructors
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 20 May 2014 18:14:21 +0000 (14:14 -0400)]
lib/privileges: drop class `OptionDropPrivileges`
And use the commented named constructor instead.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 20 May 2014 18:13:04 +0000 (14:13 -0400)]
lib/opts: clean constructors and prepare for new constructors
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 20 May 2014 14:30:06 +0000 (10:30 -0400)]
lib/exec: rationalize constructors
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Tue, 20 May 2014 13:25:38 +0000 (09:25 -0400)]
lib/strings: Buffers are allocated without capacity.
Wait the fist `append` to allocate things.
Also, this avoids an anonymous init to call a named init.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 22 May 2014 23:28:01 +0000 (19:28 -0400)]
Merge: nitg: Added PNaCl support for Nit
Added pnacl_platform.nit in order to generate all minimum files when compiling the nit.
Added pnacl.nit, it's the module providing the tools for PNaCl support in Nit.
Modified nitg.nit to register the pnacl_platform.
Modified abstract_compiler.nit for a specific main generation and to add an option.
Signed-off-by: Djomanix <johan.kayser@viacesi.fr>
Pull-Request: #416
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Wed, 21 May 2014 18:55:29 +0000 (14:55 -0400)]
Merge: Intro of app.nit and extract features from mnit_android to android
Rename modules and reorganize their features.
Pull-Request: #467
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Chanoir <chanoir.romain@courrier.uqam.ca>
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 21 May 2014 15:14:57 +0000 (11:14 -0400)]
Merge: Improve doc and intro Process::kill as asked by the community
Should close many open issues.
Pull-Request: #462
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexis Laferrière [Fri, 2 May 2014 02:30:28 +0000 (22:30 -0400)]
lib: add log features from mnit_app::android_app to ::android
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 2 May 2014 10:39:44 +0000 (06:39 -0400)]
lib/android: move platform declaration to a submodule
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 1 May 2014 15:56:47 +0000 (11:56 -0400)]
android: imports app.nit
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 1 May 2014 15:54:46 +0000 (11:54 -0400)]
lib: move android.nit to a project ::android
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 1 May 2014 15:49:33 +0000 (11:49 -0400)]
lib: mnit_app use app.nit
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 1 May 2014 15:42:36 +0000 (11:42 -0400)]
lib: intro app.nit with logging methods
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 16 May 2014 12:44:01 +0000 (08:44 -0400)]
lib/signals: fix for nitg-g
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Djomanix [Tue, 20 May 2014 18:51:03 +0000 (14:51 -0400)]
Modified the generated Makefile for some options,
and added a kind of hack for poll.
Signed-off-by: Djomanix <johan.kayser@viacesi.fr>
Alexis Laferrière [Sat, 3 May 2014 13:24:30 +0000 (09:24 -0400)]
tests: add example converter to tests (and not pnacl)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 2 May 2014 21:47:44 +0000 (17:47 -0400)]
examples/pnacl: add server option to Makefile
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 2 May 2014 21:41:13 +0000 (17:41 -0400)]
example/pnacl: remove copiler args that are no more necessary
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 3 May 2014 12:02:35 +0000 (08:02 -0400)]
pnacl: compile each compilation unit before linking
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 3 May 2014 12:02:00 +0000 (08:02 -0400)]
pnacl: generate all files right in .nit_compile
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 3 May 2014 12:00:06 +0000 (08:00 -0400)]
pnacl: disable clang warnings on generated code
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Mon, 12 May 2014 14:16:08 +0000 (10:16 -0400)]
nitg/pnacl: automate option no_main
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Fri, 16 May 2014 01:47:56 +0000 (21:47 -0400)]
Merge: Improve the bootstrap
The objective of the seires is to simplify the boostrap by using `nith` with some optimizations to do the job.
To achieve this objective:
* commit 1. Fix nith to produce a functional nitg by removing a usage of advanced FFI
* commis 2-4 : Fix option `--direct-call-monomorph` by avoiding lose of typing information in AST transformation
* commit 5: use a partial nitg before a final nitg ; `nith` -> `nitg_0` -> `nitg`
* commit 6: use nith in c_src
Pull-Request: #465
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Fri, 16 May 2014 00:34:14 +0000 (20:34 -0400)]
Merge: Android release compilation mode
The --release option could also be used by pnacl.
Will need to specify usage in the Android and Nit manual. The resulting apk still needs to be signed and aligned before deployment.
Maybe add also suffix the package by ".debug". For now it can be done at the user level.
Pull-Request: #464
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 15 May 2014 22:51:03 +0000 (18:51 -0400)]
tests: update error_needed_method_alt1.reserror_needed_method_alt1.res
Because the CallSite is now correctly identified at typing.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 15 May 2014 22:47:13 +0000 (18:47 -0400)]
Merge: Java FFI: support inner classes and use of JavaObject across the FFI
Minor incremental improvements to the Java FFI
Pull-Request: #463
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexis Laferrière [Sun, 4 May 2014 18:33:12 +0000 (14:33 -0400)]
android: use the release option to set type of compilation
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 4 May 2014 18:32:27 +0000 (14:32 -0400)]
nitg: intro the release option
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 15 May 2014 18:59:40 +0000 (14:59 -0400)]
lib/signals: use `do end` in empty methods of signals
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 14 May 2014 19:00:46 +0000 (15:00 -0400)]
lib/posix: add doc to posix (fix #174)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>