Commit Graph

8260 Commits

Author SHA1 Message Date
Andreas Rumpf
81ebb96922 Merge pull request #4149 from oderwat/HARA-PHP_ArrayConstr_Hack
PHP codegen array constructor hack (!!!) for demo purpose only I guess
2016-05-12 01:43:04 +02:00
Andreas Rumpf
c02963bcea Pegs: fixes edge case 2016-05-12 01:36:23 +02:00
Andreas Rumpf
8e2528ebbc fixes #4148 2016-05-12 01:05:41 +02:00
Andreas Rumpf
909a161ad2 fixes #4146 2016-05-12 00:57:43 +02:00
Andreas Rumpf
5bdde429e7 fixes #4147 2016-05-12 00:43:57 +02:00
Andreas Rumpf
a9c251b8e0 fixes #3763 2016-05-12 00:38:15 +02:00
Andreas Rumpf
eae30d1961 fixes #950 2016-05-12 00:38:15 +02:00
Andreas Rumpf
34110fc118 Merge pull request #4136 from oderwat/HARA-peg-replace-cb
Added a replace() with callback to pegs.
2016-05-11 23:31:22 +02:00
Hans Raaf
d3bae50c3c PHP codegen array constructor hack.
Because of PHP can't have refs for literal function parameters I
needed to come up with a hack such that the following code compiles with
PHP target.

```nim
type Foo = tuple[a: string, b: int]

var foo: array [0..2, Foo]

foo[0] = ("Test", 1)
foo[1] = ("Me", 2)

for x in foo:
  echo x.a
  echo x.b
```
2016-05-11 22:51:27 +02:00
Andreas Rumpf
4f9083268f fixes #4145 2016-05-11 21:56:56 +02:00
Andreas Rumpf
1ae95310ad fixes #3992 2016-05-11 21:34:54 +02:00
Andreas Rumpf
ac1a753aff fixes #3956 2016-05-11 21:20:53 +02:00
Andreas Rumpf
8dec1dcd1f make tests green 2016-05-11 21:17:13 +02:00
Andreas Rumpf
685b8963da fixes #4110 2016-05-11 21:16:26 +02:00
Andreas Rumpf
11d0f3f7ec fixes #4034 2016-05-11 20:50:03 +02:00
Andreas Rumpf
38040e7691 fixes #4040 2016-05-11 20:00:28 +02:00
Andreas Rumpf
299351a909 fixes #4070 2016-05-11 18:16:25 +02:00
Andreas Rumpf
95ffeb6079 fixes #177 2016-05-11 17:39:37 +02:00
Andreas Rumpf
d0c91131c1 makes tests green again 2016-05-11 17:11:55 +02:00
Andreas Rumpf
61700861d3 fixes #4144 2016-05-11 15:59:51 +02:00
Araq
b654aa399a better debugging support for native debuggers; changed name mangling; fixes #3471 2016-05-10 22:03:07 +02:00
Araq
97129ebd8a added another version of eqIdent 2016-05-10 22:03:07 +02:00
Araq
e101773d8b added scanp macro as an alternative to pegs 2016-05-10 22:03:07 +02:00
Araq
33aeadab73 minor whitespace change 2016-05-10 22:03:07 +02:00
Araq
875132bf46 fixes a varargs[untyped] bug that kept strscans from compiling 2016-05-10 22:03:07 +02:00
Araq
b357e80833 added strscans stdlib module 2016-05-10 22:03:07 +02:00
Araq
724cd631d8 allow tabs in multi-line comments 2016-05-10 22:03:07 +02:00
Araq
2024e1335f generate typedefs for bitsets for better debugging support 2016-05-10 22:03:07 +02:00
Araq
c912ae6cb3 enums are mapped to a typedef for better debugging support 2016-05-10 22:03:07 +02:00
Araq
c55ff72ea7 split too long lines 2016-05-10 22:03:07 +02:00
Araq
0dc92960d2 include statement is not restricted to top level statements anymore 2016-05-10 22:03:07 +02:00
Dominik Picheta
9fb97e310f Merge branch 'devel' of github.com:nim-lang/Nim into devel 2016-05-10 12:50:48 +01:00
Dominik Picheta
2e5b19e479 Added some useful JS procs to DOM module. 2016-05-10 12:50:18 +01:00
Andreas Rumpf
d2cfd71627 Merge pull request #4131 from niv/pr-logging-syslogish
pure/logging: add notice level, suggest usecases
2016-05-09 16:32:34 +02:00
Hans Raaf
fcfe27a1f8 Added a replace() proc using a callback to pegs.
I was missing a nice way to use pegs with a more specialized replace
functionality. Here my try to create a universal and versatile version
of replace for that.
2016-05-07 17:53:43 +02:00
niv
5da7f28990 pure/logging: add notice level, suggest usecases 2016-05-01 12:51:36 +02:00
Andreas Rumpf
c876b304ba make test green again (code was wrong, but not detected by compiler) 2016-04-30 02:00:50 +02:00
Andreas Rumpf
f348671ba7 fixes #3544 2016-04-30 01:12:36 +02:00
Andreas Rumpf
e04f319540 fixes #4084 2016-04-29 22:30:00 +02:00
Andreas Rumpf
c870e831c8 fixes #4124 2016-04-29 20:56:30 +02:00
Andreas Rumpf
b48e178969 JS target improvements 2016-04-29 17:56:06 +02:00
Andreas Rumpf
55aa4c2689 fixes a critical PHP codegen bug 2016-04-29 09:09:49 +02:00
Dominik Picheta
d2b191dc73 Merge pull request #4122 from yglukhov/binheap
Added heapqueue collection. Fixed timers in asyncdispatch.
2016-04-28 16:45:32 +01:00
Yuriy Glukhov
1a8f784834 Added heapqueue collection. Fixed timers in asyncdispatch. 2016-04-28 00:04:32 +03:00
Andreas Rumpf
ae4142b2da Merge pull request #4002 from arnetheduck/malloc-store-size
store block size in when using malloc and nogc
2016-04-26 16:54:27 +02:00
Andreas Rumpf
f9d9cdd1ee Merge pull request #4099 from cheatfate/asyncdispatch2
Proper definitions for functions СreateIoCompletionPort and GetQueuedCompletionStatus
2016-04-26 16:53:40 +02:00
Jacek Sieka
ba1a52614b Merge remote-tracking branch 'origin/devel' into malloc-store-size 2016-04-26 21:25:57 +08:00
Andreas Rumpf
e31ec746b9 Merge pull request #4115 from yglukhov/fix-staktrace-error
Fixed stacktrace error
2016-04-26 15:18:55 +02:00
Yuriy Glukhov
7972448e60 Fixed stacktrace error 2016-04-26 15:32:59 +03:00
Dominik Picheta
f4b2281870 Merge pull request #4109 from def-/smtp-compile
Make SMTP example compile
2016-04-24 15:23:29 +01:00