Commit Graph

44 Commits

Author SHA1 Message Date
Andreas Rumpf
4cece52524 Nimscript: fixes #9246 [backport]
(cherry picked from commit 73c306258b)
2018-11-24 12:13:36 +01:00
Timothee Cour
41e2f6b7bc fix #9264 regression (#9265)
(cherry picked from commit 77f836b403)
2018-11-01 17:28:57 +01:00
Andreas Rumpf
86556ebfdb compiler refactoring; use typesafe path handing; docgen: render symbols between modules 2018-09-07 19:21:16 +02:00
Timothee Cour
ed0cb7b85d make config.nims behave like nim.cfg in terms of where these scripts are searched / run (#8682)
* run project config.nims if exists, then inputfile.nims if exists
* ~/.config/nim/config.nims can now be used
* also check in getSystemConfigPath for config.nims
* refactor handleCmdLine for nim and nimsuggest
2018-08-30 13:52:32 +02:00
alaviss
7898f2a785 scriptconfig: register passes once (#8590)
fixes #8235
2018-08-17 11:09:33 +02:00
Andreas Rumpf
dae5450947 WIP: disallow 'nil' for strings and seqs 2018-08-13 11:41:33 +02:00
Andreas Rumpf
826c1e2d78 incremental compilation: implemented basic replay logic 2018-06-02 09:41:27 +02:00
Andreas Rumpf
b92fcacb99 more compiler API cleanups 2018-05-28 23:48:25 +02:00
Andreas Rumpf
382bc34f93 vm now free of global variables 2018-05-28 14:41:49 +02:00
Andreas Rumpf
40ec7be45c refactoring: remove idents.legacy global variable and pass the IdentCache around explicitly 2018-05-27 22:09:15 +02:00
Andreas Rumpf
669a564492 remove more global variables in the Nim compiler 2018-05-27 11:10:56 +02:00
Andreas Rumpf
342e50e26c compiler compiles again; simple programs do work 2018-05-13 08:51:11 +02:00
Andreas Rumpf
61e57cfa13 big refactoring: parser compiles again 2018-05-10 10:49:51 +02:00
Andreas Rumpf
b7116a28ee compiler refactoring, pass config around explicitly 2018-05-05 18:47:29 +02:00
Andreas Rumpf
ee366f1746 .experimental can now be used to enable specific features 2018-04-24 09:34:29 +02:00
Oscar Nihlgård
f6df2d9956 Sub second time resolution (#6978)
* Add deprecation warnings to recently deprecated procs

* Fix bad usage of the times module

* Introduce sub second resolution

* Fix usage of C's time()

* Switch to nanosecond resolution

* Make Time & Duration opaque again and fix some errors

* Change back to TimeInterval for shorthands

* Fix JS test

* Fix build error for windows

* Undeprecate epochTime

* Documentation and minor changes

* Lots of bugfixes and doc comments

* Attempt to make travis & appveyor green

* Fix edge cases for dealing with the local timezone

* Workaround JS backend overflow/underflow bug

* Use better workaround for not knowing the size of time_t

* Use all available timezones for tests

* Fix indentation

* Add procs for accessing the fractional part of a duration

* Order time units from smallest to largest since it makes more sense

* Include months and years in `TimeUnit`

* Review fix
2018-04-13 07:36:30 +02:00
genotrance
f6c8f97fe8 Add a few useful os calls to nimscript (#7442) 2018-04-10 18:50:23 +02:00
cooldome
4790b6d63f Fixes 7283 (#7284) 2018-03-05 19:06:47 +01:00
Araq
77d56aaff6 cleanup times.nim 2017-12-21 10:11:45 +01:00
Lynn C. Rees
8fbe37b2d8 Show nimscript configuration files during compilation (#6750) 2017-11-28 14:16:59 +01:00
Andreas Rumpf
0895064983 getEnv now supports a 'default' parameter; refs #6019 2017-10-30 17:21:05 +01:00
Arne Döring
92c2a51bf7 removed compiler internal list implementation (#5371) 2017-02-22 17:33:12 +01:00
nigredo-tori
4c4f6541d9 Don't prepend project path to absolute filenames passed to setCommand (#5341) 2017-02-06 08:06:37 +01:00
Andreas Rumpf
f04d21f279 refactoring: explict config state instead of globals 2017-02-01 23:39:40 +01:00
Araq
54bd728c13 some progress on #5228 2017-01-20 13:17:45 +01:00
Araq
52bb696cd4 make tests green again 2016-11-06 18:59:49 +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
6a1b8e691f fixes #4764, fixes #4731, fixes #4724 2016-09-14 19:59:32 +02:00
Andreas Rumpf
e92a7fd508 nimsuggest improvements 2016-08-29 15:47:38 +02:00
Andreas Rumpf
8882b062e1 added selfExe and selfExec for NimScript support 2016-08-05 20:19:15 +02:00
Andreas Rumpf
0867c62ded patchFile: support properly 2016-07-14 10:54:31 +02:00
Araq
6dddb3e68e nimscript.patchFile supports $lib and stuff 2016-07-14 01:40:12 +02:00
Andreas Rumpf
d7e172a6bc make tests green again 2016-07-10 01:17:08 +02:00
Andreas Rumpf
2247ddd12d make hint/warning work properly after Nimscript execution 2016-07-09 22:45:55 +02:00
Andreas Rumpf
5e82ffc8d5 Nimscript: added support for 'patchFile' 2016-07-09 14:26:00 +02:00
Andreas Rumpf
e2267ef5c9 Nimscript supports hint() and warning() procs; refs #3688 2016-07-08 22:24:28 +02:00
Andreas Rumpf
bcc91a319c Nimscript knows about the command line defines 2016-05-24 23:35:39 +02:00
Araq
d80f163384 NimScript: --define works as expected 2015-09-30 11:02:42 +02:00
Araq
1b7d8246c1 NimScript: setCommand takes an optional project filename 2015-09-29 20:44:12 +02:00
Araq
a480bebfce Nimscript: documented; 'exec' now produces output immediately 2015-09-07 12:31:35 +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
9659540b18 preparations for Nimble NimScript integrations; minor cleanups 2015-08-18 14:01:40 +02:00
Araq
69b32637b1 implements experimental new config system based on NimScript 2015-08-16 13:41:30 +02:00