Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fixes #20 properly | Zahary Karadjov | 2012-04-15 | 4 | -38/+36 |
| | |||||
* | fix the usage of definedInScope in pegs.=~ | Zahary Karadjov | 2012-04-14 | 1 | -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 code | Zahary Karadjov | 2012-04-13 | 6 | -22/+146 |
| | |||||
* | Proper C scopes for if, try and case statements | Zahary Karadjov | 2012-04-12 | 3 | -83/+103 |
| | | | | | | | | | 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 Karadjov | 2012-04-12 | 8 | -151/+180 |
| | | | | function | ||||
* | re-enable rodfiles tests; fixes #91 | Zahary Karadjov | 2012-04-11 | 7 | -6/+25 |
| | |||||
* | Merge branch 'master' of github.com:Araq/Nimrod into upstream | Zahary Karadjov | 2012-04-10 | 32 | -455/+12019 |
|\ | |||||
| * | documentation improvements; higher level Mongodb wrapper | Araq | 2012-04-09 | 15 | -683/+1106 |
| | | |||||
| * | C sources rebuilt for BSD | Araq | 2012-04-07 | 0 | -0/+0 |
| | | |||||
| * | yet attempt to fix realpath for BSD | Araq | 2012-04-07 | 1 | -1/+1 |
| | | |||||
| * | bugfix: expandFilename for BSD | Araq | 2012-04-06 | 1 | -2/+2 |
| | | |||||
| * | C sources rebuilt for BSD support | Araq | 2012-04-06 | 3 | -2/+18 |
| | | |||||
| * | small fixes for BSD | Araq | 2012-04-06 | 2 | -1/+4 |
| | | |||||
| * | added terminal.isatty; nimgrep version 0.9 | Araq | 2012-04-06 | 3 | -8/+39 |
| | | |||||
| * | fixed another docgen bug; initial mongodb wrapper | Araq | 2012-04-06 | 8 | -38/+1200 |
| | | |||||
| * | better opengl wrapper; oids and endians modules documented | Araq | 2012-04-04 | 7 | -2529/+2572 |
| | | |||||
| * | added libsvm wrapper | Araq | 2012-04-04 | 7 | -0/+253 |
| | | |||||
| * | added new OpenGL wrapper | Araq | 2012-04-04 | 7 | -15/+9624 |
| | | |||||
| * | Merge branch 'master' of github.com:Araq/Nimrod | Araq | 2012-04-01 | 27 | -176/+394 |
| |\ | |||||
| * | | added strutils.parseEnum; fixes #95 | Araq | 2012-04-01 | 4 | -4/+28 |
| | | | |||||
* | | | typetraits module and tests | Zahary Karadjov | 2012-04-10 | 2 | -0/+39 |
| | | | |||||
* | | | proper order of initialization for .global. variables | Zahary Karadjov | 2012-04-10 | 7 | -3/+62 |
| | | | |||||
* | | | completing the "types as first class values" reform | Zahary Karadjov | 2012-04-06 | 4 | -40/+50 |
| | | | |||||
* | | | the foundations of a type traits module; better error messages for expr, ↵ | Zahary Karadjov | 2012-04-06 | 8 | -12/+65 |
| | | | | | | | | | | | | typedesc and typeclasses params | ||||
* | | | when expressions, proper rendering for nkDo and nkLambda and parser support ↵ | Zahary Karadjov | 2012-04-05 | 6 | -19/+55 |
| | | | | | | | | | | | | for x.type and x.addr | ||||
* | | | Added ``global`` pragma that can be used to introduce new global variables ↵ | Zahary Karadjov | 2012-04-05 | 6 | -10/+22 |
| |/ |/| | | | | | from within procs | ||||
* | | Merge branch 'master' of github.com:Araq/Nimrod into upstream | Zahary Karadjov | 2012-03-31 | 36 | -109/+1017 |
|\| | |||||
| * | forgot to add lib/system/embedded.nim | Araq | 2012-03-31 | 1 | -0/+106 |
| | | |||||
| * | bugfix: DLLs should compile again | Araq | 2012-03-31 | 1 | -1/+2 |
| | | |||||
| * | implemented support for the AVR CPU and standalone OS | Araq | 2012-03-31 | 7 | -32/+122 |
| | | |||||
| * | tests tcnstseq and tcnstseq3 work again | Araq | 2012-03-28 | 3 | -3/+6 |
| | | |||||
| * | corrected the index website | Araq | 2012-03-28 | 2 | -2/+9 |
| | | |||||
| * | bugfix #100 again | Araq | 2012-03-28 | 7 | -14/+12 |
| | | |||||
| * | attempt to fix a bug concerning implicit type conversions in case statements | Araq | 2012-03-27 | 4 | -29/+26 |
| | | |||||
| * | added htmlgen to docs | Araq | 2012-03-23 | 2 | -0/+5 |
| | | |||||
| * | fixes #102 | Araq | 2012-03-23 | 2 | -0/+448 |
| | | |||||
| * | bugfix: GC marker procs; making tests green again | Araq | 2012-03-23 | 4 | -4/+10 |
| | | |||||
| * | Merge branch 'master' of github.com:Araq/Nimrod | Araq | 2012-03-23 | 5 | -6/+257 |
| |\ | |||||
| | * | Forgot to rename ETimedout to ETimeout in the sockets module in some places. | dom96 | 2012-03-22 | 1 | -4/+4 |
| | | | |||||
| | * | Added benchmark tool and some benchmarks. | dom96 | 2012-03-22 | 3 | -0/+170 |
| | | | |||||
| | * | Fixed a problem with message parsing in the IRC module. Introduced timeout ↵ | dom96 | 2012-03-22 | 2 | -6/+87 |
| | | | | | | | | | | | | to procs in the sockets module. | ||||
| * | | some bugfixes for symbolfiles | Araq | 2012-03-23 | 4 | -20/+16 |
| |/ | |||||
* | | typedesc and expr params | Zahary Karadjov | 2012-03-31 | 14 | -45/+218 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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 Karadjov | 2012-03-26 | 6 | -70/+34 |
| | | | | | | | | | | | | | | | | | | 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 Karadjov | 2012-03-25 | 11 | -79/+147 |
| | | | | | | | | classes. | ||||
* | | tyOrdinal now means "integral types". tyTypeClass created to take care of ↵ | Zahary Karadjov | 2012-03-22 | 7 | -30/+43 |
|/ | | | | type constraints | ||||
* | expr params implemented for procs; paving the way for type classes | Zahary Karadjov | 2012-03-22 | 6 | -29/+88 |
| | |||||
* | Merge branch 'master' of github.com:Araq/Nimrod | Araq | 2012-03-21 | 11 | -34/+32 |
|\ | |||||
| * | untyped proc/template/macro params default to expr | Zahary Karadjov | 2012-03-20 | 2 | -17/+15 |
| | | |||||
| * | enforcing gcc code generation for koch csource; proper C sources for Windows | Zahary Karadjov | 2012-03-20 | 1 | -1/+1 |
| | |