summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | | | VM: minor fixes to make lexim workAraq2015-04-204-67/+75
| | | |
* | | | parse 'of' branches for macros properlyAraq2015-04-191-2/+9
| | | |
* | | | fixes a serious codegen bug that caused to emit wrong barriers in rare casesAraq2015-04-191-13/+17
| | | |
* | | | fixes #2476Araq2015-04-191-13/+22
| | | |
* | | | implements .goto support for variablesAraq2015-04-193-4/+37
|/ / /
* | | fixes #2498Araq2015-04-111-2/+0
| | |
* | | fixes #1658Araq2015-04-111-1/+1
| | |
* | | fixes #1691Araq2015-04-112-7/+17
| | |
* | | fixes #2509Araq2015-04-114-2/+14
| | |
* | | fixes #2508Araq2015-04-111-10/+10
| | |
* | | re-enable git hash compiler infoAraq2015-04-111-3/+3
|/ /
* | fixes #2448Araq2015-04-101-4/+10
| |
* | fixes #2481Araq2015-04-103-4/+8
| |
* | minor lexer cleanups; fixes #2504Araq2015-04-102-20/+9
| |
* | fixes #2500Araq2015-04-101-4/+6
| |
* | Merge pull request #2493 from arnetheduck/more-comp-ropesAndreas Rumpf2015-04-101-67/+62
|\ \ | |/ |/| More comp ropes
| * compiler_ropes: more lib_ropes portingJacek Sieka2015-04-081-67/+62
| |
* | Merge pull request #2491 from ReneSac/strongSpacesFixAndreas Rumpf2015-04-091-6/+7
|\ \ | | | | | | Apply strongSpaces to keyword operators too. Fix #1894.
| * | Refactored getPrecedence() after last changeReneSac2015-04-081-11/+11
| | | | | | | | | | | | The considerStrongSpaces() is now applied to almost all results, so it is better to do it at the end.
| * | Consider #!strongSpaces for keyword operators too.ReneSac2015-04-081-4/+5
| | | | | | | | | | | | | | | When #!strongSpaces is on, every operator affected by it gains priority higher than any operator not affected by it. This includes comparison operators, addition, etc. It seems that counting spaces for keywords operators don't break anything in the parser. Of course, they can't have 0 spaces between their operands, but at least their precedence will work accordingly to their 1+ spaces.
* | | Merge pull request #2496 from BlaXpirit/js-header-commaAndreas Rumpf2015-04-091-1/+1
|\ \ \ | | | | | | | | Fix JS codegen: proc header with compiletime arguments
| * | | Don't add a comma too soonOleh Prypin2015-04-091-1/+1
| | | | | | | | | | | | | | | | Fixes #2495
* | | | Merge pull request #2499 from JosephTurner/fix-uint-segvAndreas Rumpf2015-04-091-1/+1
|\ \ \ \ | | | | | | | | | | Fixes #1986 when calling sameConstant on uint
| * | | | Fixes #1986 when calling sameConstant on uintJoseph Turner2015-04-091-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem was saveConstant only checked the range `nkCharLit..nkInt64Lit`, but not up to UInt. This lead to the sonsLen method being called, where sons was never declared. This commit changes it to `nkCharLit..nkUint64Lit`, to match the case statements in the type definition of TNode, in ast.nim.
* | | | Merge pull request #2426 from def-/fix-1460Andreas Rumpf2015-04-093-2/+3
|\ \ \ \ | |/ / / |/| | | Fix #1460
| * | | Fix installer path for nim.nim.cfgdef2015-03-281-1/+1
| | | |
| * | | Initialize c compiler variables later ...def2015-03-282-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | ... so that symbols such as "cpp" are defined Fixes #1460