summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* implicit generics types as return types. removed the error message for ↵Zahary Karadjov2012-04-213-57/+59
| | | | capturing incorrect uses of ``proc``
* produce errors on proc types with implicit empty param lists.Zahary Karadjov2012-04-201-6/+8
|
* allow the use of built-in type constraints in type sectionsZahary Karadjov2012-04-201-34/+27
|
* made built-in types primary expressions to allow infix operators to be used ↵Zahary Karadjov2012-04-203-54/+52
| | | | with them
* fixed incorrect C++ code generation for sequences. more revealing type names ↵Zahary Karadjov2012-04-181-5/+16
| | | | in the generated code
* grammar: the built-in type classes are now valid expressionsZahary Karadjov2012-04-181-62/+34
|
* more Objective-C and C keywords are now escapedZahary Karadjov2012-04-182-7/+15
|
* compiler finally supports 'object {.pragma.}' syntaxAraq2012-04-162-1/+6
|
* bugfix: 'error' statement pragma works as expected againAraq2012-04-161-7/+11
|
* fixes #105Araq2012-04-161-2/+4
|
* Merge branch 'master' of github.com:Araq/NimrodAraq2012-04-1515-239/+421
|\
| * Merge branch 'master' of github.com:Araq/Nimrod into upstreamZahary Karadjov2012-04-151-14/+20
| |\
| * | 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
* | | @ is a sigil-like operatorAraq2012-04-152-129/+49
| |/ |/|
* | Merge branch 'master' of github.com:Araq/NimrodAraq2012-04-1318-80/+202
|\|
| * 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
| |\
| * | 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
* | | performance improvements for ropesAraq2012-04-131-14/+20
| |/ |/|
* | fixed another docgen bug; initial mongodb wrapperAraq2012-04-061-1/+5
|/
* 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
| |\