Commit Graph

2524 Commits

Author SHA1 Message Date
Zahary Karadjov
299cefdc98 make the current PContext accessible through TCandidate
the goal here is to remove all the hacks from ParamTypeMatch and to handle
all type matching in typeRel (the context there is required to evaluate any static
params and to run the compilation tests of user-defined type classes)
2013-12-25 00:58:22 +02:00
Zahary Karadjov
952dbc4b8f documented static params 2013-12-25 00:32:53 +02:00
Zahary Karadjov
027f30610e static params: expr[T] is now static[T]
This introduces tyStatic and successfully bootstraps and handles
few simple test cases.  Static params within macros are no longer
treated as PNimrodNodes - they are now equivalent to constants
of the designated type.
2013-12-19 01:06:38 +02:00
Zahary Karadjov
7120491d05 in successful compilations with verbosity:0, all output is suppressed (useful for combing with --run) 2013-12-10 01:49:30 +02:00
Zahary Karadjov
14dd3113a2 fix computed dynlib names; fixes #718 2013-12-09 23:06:11 +02:00
Grzegorz Adam Hankiewicz
9486670e93 Merge pull request #727 from gradha/pr_recovers_windows_code
Revert "removed windows". Refs #698.
2013-12-09 09:29:49 -08:00
Grzegorz Adam Hankiewicz
8468e2af3a Revert "removed windows". Refs #698.
This reverts commit 5ab3d66144.
2013-12-09 18:28:11 +01:00
Zahary Karadjov
95a6e01ea8 Merge branch 'master' of github.com:Araq/Nimrod into upstream 2013-12-09 00:26:04 +02:00
Zahary Karadjov
de3b7cd413 progress towards adding negative type classes
[unittest bugfixes]
the block form of check now allows comments
errors when inspecting the arguments of var-accepting procs
2013-12-09 00:09:03 +02:00
Grzegorz Adam Hankiewicz
7e9f158494 Merge pull request #721 from gradha/pr_doc_fixes
Doc fixes
2013-12-08 13:45:48 -08:00
Grzegorz Adam Hankiewicz
89215ba6d0 Updates configuration for recent lib removals. Refs #698. 2013-12-08 21:18:06 +01:00
Grzegorz Adam Hankiewicz
410fcf7f52 Fixes strutils reference in macro tutorial. 2013-12-08 18:33:19 +01:00
Grzegorz Adam Hankiewicz
2c315690f2 Merge pull request #717 from gradha/pr_fixes_minor_doc_mistakes
Fixes minor doc mistakes.
2013-12-08 03:56:00 -08:00
Grzegorz Adam Hankiewicz
8526d29365 Adds missing `s` to sligthly odd sentence. 2013-12-08 12:52:54 +01:00
Grzegorz Adam Hankiewicz
53c0012a83 Fixes link to manual in bold section.
Nested inline markup is not possible at the moment, see
http://stackoverflow.com/a/9645684/172690. Maybe this would be a useful
extension to have in nimrod's custom rst engine?
2013-12-08 12:49:21 +01:00
Andreas Rumpf
5cdfa4b1af Merge pull request #702 from zielmicha/master
Make quoteIfContainsWhite quote argument, so it can be safely passed to shell.
2013-12-07 13:59:50 -08:00
Michał Zieliński
e7e8c77062 Make quoteIfContainsWhite quote argument, so it can be safely passed to shell.
On Windows put it in double quotes and escape double quotes using backslash.
On Posix put it in single quotes and escape single quotes using '"'"'.

This commit changes what quoteIfContainsWhite does, but before that change it
was used incorrectly all over standard library, which caused security issues.
2013-12-07 22:56:02 +01:00
Zahary Karadjov
208924b929 fixes #708
It's unclear to me why for variables were treated as globals.
This is likely to cause many problems, but in this particular case
it was breaking the unittest/insepectArgs recursive function (the
for loop variable has a different value in each stack frame)
2013-12-07 21:23:22 +02:00
Zahary Karadjov
1e26047c3b adding some provisions for writing lower-level unit tests targeting specific sub-systems of the compiler
see sigmatch as an example.
tests are compiled only when the compiler is compiled with -d:selftest
to execute them, just run the resulting binary without arguments
2013-12-07 20:30:44 +02:00
Grzegorz Adam Hankiewicz
ed760c0397 Merge pull request #706 from hiteshjasani/master
Add docs for connecting to postgres with keyword/value connection.
2013-12-04 14:25:03 -08:00
Hitesh Jasani
20661c9c46 Add docs for connecting to postgres with keyword/value connection
strings.
2013-12-04 14:01:25 -05:00
Andreas Rumpf
2264875237 Merge pull request #698 from fowlmouth/smallstdlib
removed x11
2013-12-04 07:52:22 -08:00
Araq
32d2327be0 don't use memset for temps unless necessary 2013-12-03 13:30:58 +01:00
fowlmouth
5ab3d66144 removed windows 2013-12-03 00:14:20 -06:00
fowlmouth
dc27f87257 removed deprecated libraries from nimrod.cfg 2013-12-02 23:48:22 -06:00
fowlmouth
4f0eeaa55e fixes compiler.lists.bringToFront 2013-12-02 23:47:56 -06:00
Araq
5cb60ffbe0 Merge branch 'master' of github.com:Araq/Nimrod 2013-12-03 01:59:59 +01:00
Araq
fe983b1309 fixes a regression where memset was used without including <string.h> 2013-12-03 01:59:38 +01:00
Grzegorz Adam Hankiewicz
0628d85a6a Merge pull request #676 from gradha/pr_expands_macro_tutorial
Expands tutorial macro section with step by step guide.
2013-12-02 15:15:09 -08:00
Grzegorz Adam Hankiewicz
a195e94e88 Merge pull request #687 from gradha/pr_documents_tuple_unpacking
Adds to tutorial info about unpacking tuples.
2013-12-02 15:14:31 -08:00
Grzegorz Adam Hankiewicz
6e451d4f33 Merge pull request #695 from gradha/pr_adds_htmlparser_example
Adds an example to htmlparser showing how to save changes.
2013-12-02 15:13:40 -08:00
onionhammer
b5ac234771 Renamed nimrod.cfg to nimrod.nimrod.cfg 2013-12-02 23:57:47 +01:00
Erik O'Leary
e145231a1d Updated cfg file processing
No longer look at deprecated file.cfg, compiler will only look at
file.nimrod.cfg
2013-12-02 23:57:47 +01:00
Grzegorz Adam Hankiewicz
ed0cb19909 Merge pull request #703 from gradha/pr_fixes_htmlparser_whitespace
Makes htmlparser handle whitespace. Refs #694.
2013-12-02 14:39:22 -08:00
Grzegorz Adam Hankiewicz
dc9e17503e Makes htmlparser handle whitespace. Refs #694.
Without the flag, htmlparser will ignore some significant whitespace in
HTML files. A more correct fix would be to not reuse the xml parser
since the rules for HTML are slightly different, but this will do for
the moment.
2013-12-02 20:55:55 +01:00
fowlmouth
6577093d2d Removed lua, python, tcl, cairo 2013-12-01 21:19:32 -06:00
fowlmouth
0b4805f366 Removed opengl 2013-12-01 21:17:50 -06:00
fowlmouth
ee520689d7 removed gtk2 2013-12-01 21:15:48 -06:00
fowlmouth
944b4685b9 removed x11 2013-12-01 21:10:06 -06:00
Grzegorz Adam Hankiewicz
d1284ff33d Mentions tuple unpacking only works in var/let blocks. 2013-12-01 21:07:50 +01:00
Araq
5dcfa97fb9 fixes #696 2013-12-01 17:02:56 +01:00
Araq
387b7d857d Merge branch 'master' of github.com:Araq/Nimrod 2013-12-01 14:04:29 +01:00
Araq
f59e502382 better error message for implicitly available modules 2013-12-01 14:04:15 +01:00
Andreas Rumpf
5bf395040f Merge pull request #684 from gradha/pr_clarifies_docs
Clarifies wording of newSeq proc docstrings.
2013-11-30 16:25:44 -08:00
Grzegorz Adam Hankiewicz
f91a34c9e6 Adds an example to htmlparser showing how to save changes. 2013-11-30 21:03:41 +01:00
Araq
0d193a446b updated fsmonitor module 2013-11-30 03:28:31 +01:00
Araq
b3d759ca6d fixes #681 2013-11-30 03:15:14 +01:00
Araq
2dcbc6493a fixes #686 2013-11-29 20:42:12 +01:00
Araq
f10a23e669 removed 'system.eval' 2013-11-27 09:44:53 +01:00
Grzegorz Adam Hankiewicz
0a953de3a8 Adds to tutorial info about unpacking tuples. 2013-11-26 13:34:54 +01:00