summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2605 from jyapayne/develAndreas Rumpf2015-04-262-2/+2
|\ | | | | Fixed the paths of nimfix and nimsuggest to be relative.
| * Fixed the paths of nimfix and nimsuggest to be relative.Joey Payne2015-04-252-2/+2
| |
* | fixes regression: overloading by 'var'Araq2015-04-251-2/+3
| |
* | marshalling can be done at compile-timeAraq2015-04-254-13/+346
| |
* | fixes #2600Araq2015-04-251-5/+5
| |
* | fixes #2551; fixes #2212; breaks bootstrapping in debug mode; bootstrap with ↵Araq2015-04-253-12/+13
| | | | | | | | -d:release
* | fixes #2372Araq2015-04-251-1/+1
|/
* Merge pull request #2598 from jyapayne/develAndreas Rumpf2015-04-241-1/+1
|\ | | | | Added explicit imports for compiler modules to fix compiling nimsuggest on it's own.
| * Removed explicit imports in compiler/nimfix/*.nim and added cfg path ↵Joey Payne2015-04-244-10/+6
| | | | | | | | modification
| * Added explicit imports for compiler modules to fix compiling nimsuggest.Joey Payne2015-04-243-5/+9
| | | | | | | | See https://github.com/nim-lang/nimsuggest/issues/1
* | cleanups for underscores in tuple unpackingAraq2015-04-242-10/+15
| |
* | finishes #2566Araq2015-04-241-2/+2
| |
* | fixes #2533Araq2015-04-241-1/+1
| |
* | fixes #2335Araq2015-04-241-2/+9
| |
* | fixes #2524Araq2015-04-241-1/+1
| |
* | Merge pull request #2566 from nanoant/parser-diagnostic-locationAndreas Rumpf2015-04-243-4/+11
|\ \ | | | | | | Parser: Fix location (line, col) for diagnostics
| * | Parser: Fix location (line, col) for diagnosticsAdam Strzelecki2015-04-212-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously parser was using lexMessage which was taking location from current buffer position which was pointing after recently consumed token. But since parser shows diagnostics about that token it should point to the location where token starts. This makes diagnostics like: `test.nim(2, 2) Error: ':' expected` point properly at the beginning of the wrong token.
| * | msg: Output column numbers starting from 1Adam Strzelecki2015-04-211-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | Most of editors/IDEs expect column numbers to start from 1, so (1, 1) means beginning of the file. This change applies only to diagnostics output, however Nim will still internally number columns starting from 0.
* | | Merge pull request #2437 from Araq/underscore-tuple-unpackAndreas Rumpf2015-04-242-2/+13
|\ \ \ | | | | | | | | Implements #2154.
| * | | Add sfGenSym for (_).Dominik Picheta2015-04-231-0/+2
| | | |
| * | | Merge branch 'devel' into underscore-tuple-unpackDominik Picheta2015-04-2353-2448/+2853
| |\ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: compiler/semstmts.nim
| * | | | Get rid of tkUnderscore. Map _ to tkSymbol.Dominik Picheta2015-04-083-13/+6
| | | | |
| * | | | Rewrite in order to not introduce a new node kind.Dominik Picheta2015-04-055-8/+9
| | | | |
| * | | | Implements #2154.Dominik Picheta2015-03-317-6/+21
| | | | | | | | | | | | | | | | | | | | | | | | | When unpacking tuples in var/let declarations a part of the tuple can now be discarded using a single underscore.
* | | | | system.locals is now a plugin for educationAraq2015-04-247-35/+61
| | | | |
* | | | | fixes #2569Araq2015-04-233-155/+96
| | | | |
* | | | | fixes #2589Araq2015-04-231-1/+1
| |/ / / |/| | |
* | | | fix #2585 properlyAraq2015-04-221-1/+3
| | | |
* | | | fixes #2585Araq2015-04-222-5/+7
| | | |
* | | | fixes #2447Araq2015-04-222-2/+3
| | | |
* | | | fixed nil.add for JSAraq2015-04-221-1/+1
| | | |
* | | | added '..^' and '..<' operators; 'nil' is allowed for 'len'; added plugin ↵Araq2015-04-228-16/+75
| | | | | | | | | | | | | | | | system to the compiler
* | | | fixes #2581Araq2015-04-221-9/+16
| | | |
* | | | cleaned up some magics to make room for new magics; added '..<' and '..^' ↵Araq2015-04-225-18/+9
| | | | | | | | | | | | | | | | templates
* | | | fixes #2550Araq2015-04-221-9/+13
| | | |
* | | | Merge pull request #2565 from nanoant/parser-consistencyAndreas Rumpf2015-04-221-22/+11
|\ \ \ \ | |_|/ / |/| | | Parser consistency
| * | | Parser: Make exprList() not comsume endTokenAdam Strzelecki2015-04-201-14/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes use single comcol or eat for multiple cases. Also this makes exprList responsible for consuming only list of expressions, nothing else which is more logical. As a side-effect compiler is now more consistent about errors, eg.: try # <- missing something echo "try" finally: echo "finally" Triggers: test.nim(2, 6) Error: ':' expected try: echo "try" finally # <- missing something echo "finally" Previously triggered: test.nim(4, 6) Error: invalid indentation But now we got: Error: ':' expected - same as in 1st case
| * | | Parser: Use colcom(...) when possibleAdam Strzelecki2015-04-201-8/+4
| | | | | | | | | | | | | | | | This make parsing obligatory colon more consistent across the parser's code.
* | | | fixes #2520Araq2015-04-211-0/+3
| | | |
* | | | attempt to fix JS codegen regressionAraq2015-04-201-1/+1
| | | |
* | | | fixes #2505, fixes #1853, fixes #2522Araq2015-04-206-6/+15
| | | |
* | | | fixes serious codegen regression; C++ target works againAraq2015-04-201-1/+7
|/ / /
* | | Merge branch 'devel' of https://github.com/Araq/Nim into develAraq2015-04-206-18/+66
|\ \ \
| * \ \ Merge pull request #2503 from ReneSac/arrowLikeAndreas Rumpf2015-04-151-1/+2
| |\ \ \ | | | | | | | | | | Restrict arrow-like operators to those ending with `->`, `~>` or `=>`
| | * | | Minor fixes for arrow like change patchReneSac2015-04-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't use ^ operator yet for compatibility with older compilers. Moved arrow like explanation, and fix precedence description on the text in the manual. Fixed typo in news.
| | * | | Changing the rule for arrow like operators again.ReneSac2015-04-101-1/+1
| | | | |
| | * | | Restrict arrow-like operators to start with - or =ReneSac2015-04-091-1/+2
| | | | |
| * | | | Merge pull request #2549 from fowlmouth/patch-2Andreas Rumpf2015-04-151-1/+3
| |\ \ \ \ | | | | | | | | | | | | fixes for macros.getType()
| | * | | | concept types are represented with getType()fowlmouth2015-04-131-1/+3
| | | | | |
| * | | | | importing of C++ nested generics like std::vector<T>::iterator, using the ↵Zahary Karadjov2015-04-134-16/+61
| | | | | | | | | | | | | | | | | | | | | | | | apostrophe operator