summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* avoid duplicated variable names in unrolled loopsZahary Karadjov2012-04-152-2/+7
|
* fix threading testsZahary Karadjov2012-04-152-4/+10
|
* fixes #20 properlyZahary Karadjov2012-04-154-38/+36
|
* fix the usage of definedInScope in pegs.=~Zahary Karadjov2012-04-141-1/+1
| | | | | | | | | | | | | | | | template `=~`*(s: string, pattern: TPeg): bool = when not definedInScope(matches): var matches: array[0..maxSubpatterns-1, string] It seems that this never worked as intended. I discovered it now, because when variables' names are preserved, multiple variables named `matches` were created. The reason this happens is that when the template is used as an if condition, the if scope is already entered, but the variables end up in the outer scope. This patch is consistent with how `expr` templates work, but makes the definition of a variable injection template like := a bit harder, yet still possible. (note that if foo := bar(): is still not creating properly scoped variable prior to the patch)
* experimental support for preserving local variable names in the generated codeZahary Karadjov2012-04-136-22/+146
|
* Proper C scopes for if, try and case statementsZahary Karadjov2012-04-122-77/+97
| | | | | | | | | even thought the setjmp implementation for try statement won't be used in C++, using properly scoped variables for them is beneficial, because we'll be able to establish a 1:1 relation between nimrod scopes and C scopes. Once we have that, we'll be able to keep the original names of local variables to greatly improve the debugging experience (i.e. watch expressions and hover tooltips will work).
* C variables are created in their enclosing block instead of their enclosing ↵Zahary Karadjov2012-04-128-151/+180
| | | | function
* re-enable rodfiles tests; fixes #91Zahary Karadjov2012-04-112-2/+8
|
* Merge branch 'master' of github.com:Araq/Nimrod into upstreamZahary Karadjov2012-04-101-1/+5
|\
| * fixed another docgen bug; initial mongodb wrapperAraq2012-04-061-1/+5
| |
* | proper order of initialization for .global. variablesZahary Karadjov2012-04-103-2/+10
| |
* | completing the "types as first class values" reformZahary Karadjov2012-04-064-40/+50
| |
* | the foundations of a type traits module; better error messages for expr, ↵Zahary Karadjov2012-04-068-12/+65
| | | | | | | | typedesc and typeclasses params
* | when expressions, proper rendering for nkDo and nkLambda and parser support ↵Zahary Karadjov2012-04-055-18/+53
| | | | | | | | for x.type and x.addr
* | Added ``global`` pragma that can be used to introduce new global variables ↵Zahary Karadjov2012-04-055-10/+20
|/ | | | from within procs
* Merge branch 'master' of github.com:Araq/Nimrod into upstreamZahary Karadjov2012-03-3116-69/+80
|\
| * implemented support for the AVR CPU and standalone OSAraq2012-03-312-5/+17
| |
| * tests tcnstseq and tcnstseq3 work againAraq2012-03-282-2/+5
| |
| * bugfix #100 againAraq2012-03-285-12/+11
| |
| * attempt to fix a bug concerning implicit type conversions in case statementsAraq2012-03-273-29/+24
| |
| * fixes #102Araq2012-03-231-0/+1
| |
| * bugfix: GC marker procs; making tests green againAraq2012-03-232-2/+8
| |
| * some bugfixes for symbolfilesAraq2012-03-233-19/+14
| |
* | typedesc and expr paramsZahary Karadjov2012-03-3112-45/+166
| | | | | | | | | | | | | | | | | | | | | | | | types are now valid proc/template/macro params and you can overload over them: proc foo(T: typedesc) # accept any type proc foo(T: typedesc{int}) # overload specifically for int proc foo(T: typedesc{int or float or Callable}) # overload for any type matching the constraints expr{type} is a param expecting compile time value of the designated type (or type class). when typedesc or expr params are used with a proc, the proc will be instantiated once for each unique type/value used as parameter.
* | genSym support for hygienic macros and templates.Zahary Karadjov2012-03-265-70/+22
| | | | | | | | | | | | | | | | | | example: template hygienic(val: expr) = var `*x` = val echo `*x` *x was chosen as mnemonic for "opposite of public" and thus private
* | generic types can be used like type classes. distinct can be applied to type ↵Zahary Karadjov2012-03-258-76/+88
| | | | | | | | classes.
* | tyOrdinal now means "integral types". tyTypeClass created to take care of ↵Zahary Karadjov2012-03-227-30/+43
|/ | | | type constraints
* expr params implemented for procs; paving the way for type classesZahary Karadjov2012-03-224-28/+74
|
* Merge branch 'master' of github.com:Araq/NimrodAraq2012-03-213-19/+17
|\
| * untyped proc/template/macro params default to exprZahary Karadjov2012-03-202-17/+15
| |
| * making tests green againZahary Karadjov2012-03-201-2/+2
| |
* | implemented marker procs for the GC resulting in huge speedupsAraq2012-03-212-4/+138
| |
* | Merge branch 'master' of github.com:Araq/NimrodAraq2012-03-1915-155/+238
|\|
| * missed file from the previous commitZahary Karadjov2012-03-191-0/+7
| |
| * merged branch overloading-for-macrosZahary Karadjov2012-03-1915-155/+231
| |\
| | * the test suite is mostly green againZahary Karadjov2012-03-163-32/+15
| | |
| | * fix for template redefinition. test cases added.Zahary Karadjov2012-03-153-9/+17
| | |
| | * allowing definitions of procs and templates to be overridden in local scopesZahary Karadjov2012-03-143-7/+20
| | |
| | * allowing multiple definitions of templatesZahary Karadjov2012-03-142-12/+13
| | |
| | * bootstraps fine with overloadable templatesZahary Karadjov2012-03-1412-132/+219
| | |
* | | preparations for marker procs generationAraq2012-03-191-15/+18
|/ /
* | clean separation of PNimrodNode and tyExprAraq2012-03-164-16/+27
| |
* | implemented 'static'; macros do not work anymoreAraq2012-03-156-6/+59
| |
* | first steps for cleaner static/const distinctionAraq2012-03-1310-47/+135
|/
* vars can be 'compileTime'; shallow introduced weird string aliasing bugAraq2012-03-112-3/+3
|
* attempt to make tests green againAraq2012-03-114-21/+32
|
* fixes #100Araq2012-03-102-1/+3
|
* win64 is a supported target; bugfix: nimrod c -r on windows; stdlib uses ↵Araq2012-03-043-4/+12
| | | | wide char versions of the WinAPI
* c2nim, pas2nim compile againAraq2012-02-292-4/+4
|
* ERecoverableError exception contains the error messageAraq2012-02-254-18/+16
|