Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | minor changes to make the test suite green again | Zahary Karadjov | 2012-04-15 | 3 | -14/+7 |
| | |||||
* | avoid duplicated variable names in unrolled loops | Zahary Karadjov | 2012-04-15 | 2 | -2/+7 |
| | |||||
* | fix threading tests | Zahary Karadjov | 2012-04-15 | 2 | -4/+10 |
| | |||||
* | 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 |
|\ | |||||
| * | generated by cgit-pink 1.4.1-2-gfad0 (git 2.36.2.497.gbbea4dcf42) at 2025-07-17 05:20:41 +0000 |