summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* hotfix: --noNimblePath wasn't working when in a config fileAndreas Rumpf2016-05-311-0/+3
|
* changed the compiler's path handling; fixes #546Andreas Rumpf2016-05-315-12/+23
|
* fixes #786Andreas Rumpf2016-05-311-0/+2
|
* fixes #765Andreas Rumpf2016-05-311-2/+4
|
* fixes #1262Andreas Rumpf2016-05-311-10/+12
|
* fixes #1713Andreas Rumpf2016-05-305-11/+32
|
* refactoringsAndreas Rumpf2016-05-301-42/+55
|
* Merge branch 'patch/fix-3496-generic-tmpl-args' of ↵Andreas Rumpf2016-05-292-5/+57
|\ | | | | | | https://github.com/nanoant/Nim into nanoant-patch/fix-3496-generic-tmpl-args
| * fixes #3496Adam Strzelecki2015-10-292-5/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem comes from the fact that macroOrTmpl[...] is transformed by semSubscript which is trying to evaluate macroOrTmpl identifier in place. This is okay for non-generic macros or templates, but wrong for generic ones, that do not have a chance to receive their generic arguments explicitly specified in brackets. Solution: 1. macroOrTmpl[...] where macroOrTmpl is non-generic macro or template, then macroOrTmpl is evaluated before applying brackets. (as before) 2. macroOrTmpl[...] where macroOrTmpl is generic macro or template, then if: a. It comes from macroOrTmpl[...](...) call expr (efInCall), then macroOrTmpl is turned into a symbol (efNoEvaluate) rather than evaluating it in place, then whole bracket expr is returned to semIndirectOp which transforms it to proper generic macro or template call with explicit generic arguments. b. macroOrTmpl[...] does not come from call expr, as above macroOrTmpl is transformed to symbol, then it is transformed into proper generic macro or template call with explicit generic arguments and no normal arguments.
* | fixes #4177Andreas Rumpf2016-05-281-2/+4
| |
* | fixes #3882Andreas Rumpf2016-05-281-3/+7
| |
* | cleanup of #4113Andreas Rumpf2016-05-282-30/+30
| |
* | Merge pull request #4113 from jcosborn/gettypeinstAndreas Rumpf2016-05-283-38/+172
|\ \ | | | | | | getTypeInst
| * | getTypeInst and getTypeImpl mostly working now and added testJames Osborn2016-05-043-32/+123
| | |
| * | changed getTypeInst handling for distinct typesJames Osborn2016-05-041-5/+15
| | |
| * | added getTypeInst which includes generic parametersJames Osborn2016-05-043-23/+56
| | |
* | | fixes #2159Andreas Rumpf2016-05-284-1/+18
| | | | | | | | | | | | Hints and warnings are only emitted for the main package that is compiled
* | | fixes critical 'do' parsing bugAndreas Rumpf2016-05-281-2/+3
| | |
* | | Fix issue #4001: invalid pragma {. hint[]: off .}Andrei Formiga2016-05-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bug was in processNote, module pragmas. The code assumed that a nkBracketExpr AST node always had two children (without testing this), and tried to access elements with index 0 and 1 in the sons array of the nkBracketExpr node. The code that triggered the bug was just {. hint[]: off .} by itself in a module; in this case the nkBracketExpr has only one children in the sons array, so the code in processNote caused an out-of-bounds array access. This commit also adds a test to guarantee that this pragma is rejected, as is.
* | | remove funny debug outputAndreas Rumpf2016-05-271-1/+0
| | |
* | | fixes #4225Andreas Rumpf2016-05-271-1/+1
| | |
* | | fixes #4227Andreas Rumpf2016-05-274-7/+8
| | |
* | | improve error messages for mismatched templates involving 'untyped' and stmtsAndreas Rumpf2016-05-271-3/+5
| | |
* | | Fixes #4222Yuriy Glukhov2016-05-261-4/+4
| | |
* | | Nimscript knows about the command line definesAndreas Rumpf2016-05-242-4/+4
| | |
* | | allow to check verbosity level via compileOptionAndreas Rumpf2016-05-241-0/+1
| | |
* | | Merge pull request #4083 from vegansk/vm_readfileAndreas Rumpf2016-05-241-31/+37
|\ \ \ | | | | | | | | Add ``readFile`` implementation for nimvm
| * | | Add ``readFile`` implementation for nimvmAnatoly Galiulin2016-04-131-31/+37
| | | |
* | | | Nim check defines 'nimcheck' conditional symbolAndreas Rumpf2016-05-241-0/+1
| | | |
* | | | Merge branch 'prim-gc' into develAndreas Rumpf2016-05-221-1/+1
|\ \ \ \
| * | | | GC with primitive MSAndreas Rumpf2016-05-161-1/+1
| | | | |
| * | | | refactoring: flags instead of boolsAndreas Rumpf2016-05-156-25/+31
| | | | |
* | | | | 4066 fixupYuriy Glukhov2016-05-191-1/+1
| | | | |
* | | | | fixes #4066Andreas Rumpf2016-05-183-6/+9
| | | | |
* | | | | refactoring: flags instead of boolsAndreas Rumpf2016-05-186-25/+31
|/ / / /
* | | | PHP codegen improvementsAndreas Rumpf2016-05-131-1/+1
| | | |
* | | | fixes #4148Andreas Rumpf2016-05-121-2/+2
| | | |
* | | | fixes #4146Andreas Rumpf2016-05-121-24/+24
| | | |
* | | | fixes #4147Andreas Rumpf2016-05-121-1/+1
| | | |
* | | | fixes #3763Andreas Rumpf2016-05-121-17/+21
| | | |
* | | | fixes #950Andreas Rumpf2016-05-121-2/+2
| | | |
* | | | fixes #4145Andreas Rumpf2016-05-111-1/+2
| | | |
* | | | fixes #3992Andreas Rumpf2016-05-111-0/+2
| | | |
* | | | fixes #3956Andreas Rumpf2016-05-111-4/+5
| | | |
* | | | fixes #4110Andreas Rumpf2016-05-112-2/+3
| | | |
* | | | fixes #4034Andreas Rumpf2016-05-112-1/+3
| | | |
* | | | fixes #4040Andreas Rumpf2016-05-111-1/+8
| | | |
* | | | fixes #4070Andreas Rumpf2016-05-111-0/+1
| | | |
* | | | fixes #177Andreas Rumpf2016-05-112-5/+18
| | | |
* | | | fixes #4144Andreas Rumpf2016-05-111-24/+16
| | | |