Andreas Rumpf
51c45c7201
symbol files: introduce more switches for debugging
2018-01-07 12:21:42 +01:00
Andreas Rumpf
da90657317
make the new --genDeps feature optional since it makes compilations slower
2017-12-21 17:14:31 +01:00
Andreas Rumpf
5516fee1a7
Merge branch 'compile-deps' of https://github.com/pyokagan/Nim into pyokagan-compile-deps
2017-12-21 17:00:54 +01:00
Andreas Rumpf
a4d40d137e
'nim doc' is now using version 2 of the documentation generator
2017-11-16 12:53:36 +01:00
Dmitry Atamanov
870567d083
WIP: Add a advanced compiler command 'ctags' ( #6654 )
2017-11-15 22:07:22 +01:00
Andreas Rumpf
7aad0d6544
added 'nim jsonscript' feature
2017-09-23 16:29:05 +02:00
Paul Tan
b06c0f97a4
writeDepsFile: write included files as well
...
`writeDepsFile()` does not list files which were included with the
`include` statement, e.g, with:
import file1
include file2
`file1` will be written to the deps file, while `file2` would not.
Fix this by modifying `writeDepsFile()` to write included files as well.
Now, both `file1` and `file2` in the above example will be written to
the deps file.
2017-08-25 17:45:33 +08:00
Paul Tan
1a50442c13
Generate deps file during C compilation
...
The "genDepend" command was previously taught how to generate a "deps"
file in 4910a87c6 (gendepend improvements; refs #5144 ). Such a deps file
is useful in integrating the Nim compiler with an external build system
or watch daemon, such that it's possible to only run the Nim compiler
when any of the source files are modified.
It's also useful to generate the deps file in the nimcache directory
during C compilation, without needing to re-run the compilation passes
with "genDepend". This would thus reduce overall project build times.
2017-08-25 17:45:33 +08:00
def
ab31b776ef
Fix typo
2017-03-23 21:29:10 +01:00
Arne Döring
92c2a51bf7
removed compiler internal list implementation ( #5371 )
2017-02-22 17:33:12 +01:00
Andreas Rumpf
f04d21f279
refactoring: explict config state instead of globals
2017-02-01 23:39:40 +01:00
Andreas Rumpf
9753782f96
memory allocator hotfix: do not allocate tremendous amounts of memory
2017-01-13 12:07:37 +01:00
Araq
4910a87c6f
gendepend improvements; refs #5144
2017-01-06 13:11:17 +01:00
Araq
7148f6f104
make gendepend work again
2016-12-29 14:08:20 +01:00
Araq
843ae830d3
Merge branch 'devel' into sighashes
2016-12-14 01:31:02 +01:00
Araq
aedafb9978
Nim compiler generates nimcache/proj.json for easier interop with external build tools
2016-12-14 01:27:44 +01:00
Araq
ba38b83dd5
refactoring: C codegen with fewer global variables
2016-12-05 12:14:24 +01:00
Araq
9e6fb3f696
new dependency tracking for nimsuggest
2016-11-05 01:19:23 +01:00
Araq
29db0d8585
refactoring complete: explicit ident cache
2016-10-31 19:47:20 +01:00
Araq
773d17cd14
big refactoring: step 1
2016-10-31 15:34:44 +01:00
Andreas Rumpf
813828f690
the Nim compiler supports the jsondoc2 command
2016-07-13 01:06:33 +02:00
Andreas Rumpf
893be3a5a4
changed the compiler's path handling; fixes #546
2016-05-31 03:04:45 +02:00
Andreas Rumpf
e00f15aa2a
Nim check defines 'nimcheck' conditional symbol
2016-05-24 00:07:59 +02:00
Andreas Rumpf
35567a1eb9
first version of an PHP codegen
2016-02-06 15:39:56 +01:00
Adam Strzelecki
acb6a36656
msgs: One msgWriteln with optional flags
...
Instead of msgWriteln, outWriteln and stdoutWriteln doing essentially the same.
2015-10-22 22:09:15 +02:00
Araq
2fda95a4d6
added getOrDefault; bootstrapping works again
2015-10-13 03:03:05 +02:00
Araq
178275f494
split os into os and ospaths parts; ospaths is available for NimScript; better NimScript support
2015-09-04 12:22:23 +02:00
Araq
a2bb7d4c71
simplify nimscript.nim
2015-08-21 01:34:46 +02:00
Araq
d634da775d
cleanup destructor building for arrays; still doesn't work
2015-08-18 13:57:37 +02:00
Araq
69b32637b1
implements experimental new config system based on NimScript
2015-08-16 13:41:30 +02:00
def
db5f8d6755
Reset terminal colors before running compiled program
2015-07-10 00:48:11 +02:00
Andreas Rumpf
1ad729ee3b
Merge pull request #3020 from flaviut/rename-crc-to-hash
...
CRC -> Hash
2015-07-05 00:41:13 +02:00
Flaviu Tamas
62b55592e8
CRC -> Hash
2015-07-03 10:13:45 -04:00
Adam Strzelecki
14e6ff6780
Introduce NotesVerbosity defining verbosity levels
...
This solves two issues:
1. Some notes were enabled explicitly for some verbosity levels, so
--hintName:on has no effect if verbosity level was too low.
2. Verbosity level for notes is not longer scattered across the source code,
instead if now lives in msgs.nim NotesVerbosity array
3. Individual note settings have stronger effect than verbosity setting,
so --hintName:off will disable hint regardless of high verbosity setting,
and vice-versa --hintName:on will enable hint even on low verbosity setting.
2015-07-03 12:37:42 +02:00
Araq
841a179d28
fixes #2633
2015-07-03 01:57:00 +02:00
def
def61c9fcd
Clean up stdin file reading of compiler.
...
Uses "stdinfile" as the module identifier now, which prevents problems
with - colliding with the minus operator. This fixes #2422 and #2702 .
2015-05-16 12:38:53 +02:00
def
07351d5f37
Initialize c compiler variables later ...
...
... so that symbols such as "cpp" are defined
Fixes #1460
2015-03-28 15:07:55 +01:00
Araq
aa175e9e57
fixes #1868
2015-03-12 12:17:08 +01:00
def
c37e8035ea
When compiling from stdin write binary to stdinfile
2015-02-28 23:35:35 +01:00
Araq
53f4c7758b
fixes #1601
2015-02-05 13:12:20 +01:00
Araq
8710a37384
nimsuggest: sane dirty buffer handling
2015-01-29 03:08:41 +01:00
Araq
26b853923c
nimsuggest: first version
2015-01-27 01:36:19 +01:00
Andreas Rumpf
5bd2889267
Merge pull request #1889 from ramnes/devel
...
Happy new year!
2015-01-07 14:14:43 +01:00
Araq
b907fac5f9
minor cleanups
2015-01-07 02:41:50 +01:00
Guillaume Gelin
3119fe087d
Happy new year!
2015-01-06 15:26:33 +01:00
Araq
e65c296bcc
implemented mixed mode codegen
2014-10-03 01:21:35 +02:00
Dominik Picheta
d28088f0f5
Fix 'doc' command.
2014-09-13 16:09:54 +01:00
Araq
569fbe8c37
'pretty' command does not exist anymore; improvements for nimfix
2014-09-10 02:19:46 +02:00
Araq
490371977e
some improvements for nimfix
2014-09-09 21:31:34 +02:00
Araq
7f7b13a45f
nimfix handles helloworld
2014-09-06 00:50:53 +02:00