Commit Graph

9782 Commits

Author SHA1 Message Date
Zahary Karadjov
2400704c22 Finally rebuilt the sources to take advantage of the new type system capabilities 2012-04-21 04:07:03 +03:00
Zahary Karadjov
251c44ff04 implicit generics types as return types. removed the error message for capturing incorrect uses of `proc` 2012-04-21 03:24:32 +03:00
dom96
263bb37745 Fixed graphics.drawLineAA and graphics.withEvents uses WaitEvent instead of PollEvent now. 2012-04-20 22:39:03 +01:00
Zahary Karadjov
2f4ae65917 produce errors on proc types with implicit empty param lists. 2012-04-20 22:32:36 +03:00
Zahary Karadjov
064f296213 allow the use of built-in type constraints in type sections 2012-04-20 22:28:53 +03:00
Zahary Karadjov
c1d16c5a4d made built-in types primary expressions to allow infix operators to be used with them 2012-04-20 21:35:59 +03:00
Zahary Karadjov
8319e2411d fixed incorrect C++ code generation for sequences. more revealing type names in the generated code 2012-04-18 19:50:32 +03:00
Zahary Karadjov
818787457d grammar: the built-in type classes are now valid expressions 2012-04-18 19:50:32 +03:00
Zahary Karadjov
38710b614f more Objective-C and C keywords are now escaped 2012-04-18 19:50:32 +03:00
Araq
3d65c0a73f attempt to make tests green 2012-04-17 22:39:37 +02:00
Araq
cb79bf9f16 compiler finally supports 'object {.pragma.}' syntax 2012-04-16 23:40:08 +02:00
Araq
d4c2f2509c bugfix: 'error' statement pragma works as expected again 2012-04-16 17:23:44 +02:00
Araq
1db8b5cbb2 restored files that 'koch clean' removed 2012-04-16 16:43:41 +02:00
Araq
17d67ab828 fixes #105 2012-04-16 16:31:15 +02:00
Araq
a656409286 documentation improvements; cleanup 2012-04-16 00:38:40 +02:00
Araq
752cddb91a documentation improvements 2012-04-16 00:37:41 +02:00
Araq
da9ff288d9 Merge branch 'master' of github.com:Araq/Nimrod 2012-04-15 10:02:35 +02:00
Araq
959e370ae9 @ is a sigil-like operator 2012-04-15 10:02:15 +02:00
Zahary Karadjov
043a40eee6 fix incorrect path for rodfile tests' nimcache 2012-04-15 03:46:25 +03:00
Zahary Karadjov
b2cc17cde4 Merge branch 'master' of github.com:Araq/Nimrod into upstream 2012-04-15 02:58:01 +03:00
Zahary Karadjov
1ba31f8df7 minor changes to make the test suite green again 2012-04-15 02:54:12 +03:00
Zahary Karadjov
57fe3e8c41 avoid duplicated variable names in unrolled loops 2012-04-15 02:53:32 +03:00
Zahary Karadjov
20d56875de fix threading tests 2012-04-15 02:52:09 +03:00
Zahary Karadjov
567b5b07ea fixes #20 properly 2012-04-15 01:06:40 +03:00
Zahary Karadjov
42e0b08214 fix the usage of definedInScope in pegs.=~
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)
2012-04-14 13:32:51 +03:00
Zahary Karadjov
f25c638dc4 experimental support for preserving local variable names in the generated code 2012-04-13 21:03:49 +03:00
Araq
3628731064 unicode: invalid utf-8 bytes are preserved 2012-04-13 18:52:54 +02:00
Araq
82813e58c4 Merge branch 'master' of github.com:Araq/Nimrod 2012-04-13 18:37:17 +02:00
Araq
fe750a5cf9 performance improvements for ropes 2012-04-13 18:36:55 +02:00
Zahary Karadjov
caf7878009 Proper C scopes for if, try and case statements
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).
2012-04-12 17:52:55 +03:00
Zahary Karadjov
d2b45dbe85 C variables are created in their enclosing block instead of their enclosing function 2012-04-12 14:12:32 +03:00
dom96
bac790ae3b The build.sh file generated by niminst now supports a --extraBuildArgs param. 2012-04-11 20:45:27 +01:00
Zahary Karadjov
238202ccbc re-enable rodfiles tests; fixes #91 2012-04-11 01:52:12 +03:00
Zahary Karadjov
c1ad05c4c5 Merge branch 'master' of github.com:Araq/Nimrod into upstream 2012-04-10 22:39:00 +03:00
Zahary Karadjov
97ab16d46b typetraits module and tests 2012-04-10 22:32:23 +03:00
Zahary Karadjov
a64f03230a proper order of initialization for .global. variables 2012-04-10 20:53:44 +03:00
Araq
c53ad1b39f documentation improvements; higher level Mongodb wrapper 2012-04-09 11:18:10 +02:00
Araq
e9260e6c4d C sources rebuilt for BSD 2012-04-07 00:47:00 +02:00
Araq
e0e4e38272 yet attempt to fix realpath for BSD 2012-04-07 00:44:00 +02:00
Araq
1123252db5 bugfix: expandFilename for BSD 2012-04-06 23:42:33 +02:00
Araq
121e375f15 C sources rebuilt for BSD support 2012-04-06 22:45:55 +02:00
Araq
039f21ffd6 small fixes for BSD 2012-04-06 22:43:00 +02:00
Araq
ba3f90cc25 added terminal.isatty; nimgrep version 0.9 2012-04-06 21:26:48 +02:00
Zahary Karadjov
e941a14767 completing the "types as first class values" reform 2012-04-06 18:14:12 +03:00
Zahary Karadjov
efb53233cb the foundations of a type traits module; better error messages for expr, typedesc and typeclasses params 2012-04-06 13:46:31 +03:00
Araq
0f96e72b18 fixed another docgen bug; initial mongodb wrapper 2012-04-06 00:41:27 +02:00
Zahary Karadjov
98b7bdaa50 when expressions, proper rendering for nkDo and nkLambda and parser support for x.type and x.addr 2012-04-05 22:43:37 +03:00
Zahary Karadjov
6d80583d5a Added `global` pragma that can be used to introduce new global variables from within procs 2012-04-05 20:43:22 +03:00
Araq
07b355bea4 better opengl wrapper; oids and endians modules documented 2012-04-04 21:26:23 +02:00
Araq
a4a99ae997 added libsvm wrapper 2012-04-04 16:01:28 +02:00