Adam Strzelecki
505836385c
Tests: Optional error location column spec
...
This allows some test to specify error location column, to ensure compiler is
generating diagnostics pointing to exactly right place of an error.
2015-04-20 21:03:57 +02:00
Araq
43eae0c113
macros: added bool literal support
2015-04-20 20:40:10 +02:00
Araq
2b4e233510
Merge branch 'devel' of https://github.com/Araq/Nim into devel
2015-04-20 11:44:54 +02:00
Araq
7be092bba5
VM: minor fixes to make lexim work
2015-04-20 11:36:13 +02:00
Araq
dc3a0bc009
added macros.newTree proc (why didn't we do this earlier?)
2015-04-20 11:34:18 +02:00
Araq
9abfc60db4
parse 'of' branches for macros properly
2015-04-19 14:25:16 +02:00
Araq
89cbf092b2
fixes a serious codegen bug that caused to emit wrong barriers in rare cases
2015-04-19 13:36:22 +02:00
Araq
5cea6807e1
fixes #2476
2015-04-19 02:43:19 +02:00
Araq
751232dc7c
implements .goto support for variables
2015-04-19 02:42:40 +02:00
Josep Sanjuas
f72bb57fff
Convert to float before sum
2015-04-18 13:40:20 +02:00
Josep Sanjuas
44246b6709
Document toFloat is necessary
2015-04-18 13:38:15 +02:00
Josep Sanjuas
e76f54e059
Generalize variance to other types
2015-04-18 13:28:48 +02:00
Kay Zheng
a11a2f0fdb
Check for async errors in
2015-04-18 10:27:35 +08:00
Max Grender-Jones
7daad41784
Allow {} to return nested results in json & standardise on 'key' not 'name'
...
- Note now returns nil if users try to index into a non-object;
old behaviour was to throw a runtime error
- Also s/transverse/traverse/
2015-04-18 01:08:06 +01:00
Araq
5146624f0d
disabled JS test
2015-04-18 01:18:23 +02:00
Andreas Rumpf
6c66ff2907
Merge pull request #2571 from Araq/revert-2570-patch-3
...
Revert "Corrected code example in pegs"
2015-04-17 22:09:19 +02:00
Andreas Rumpf
3caa7ff08c
Revert "Corrected code example in pegs"
2015-04-17 22:09:02 +02:00
Andreas Rumpf
3501bfc8ff
Merge pull request #2570 from apense/patch-3
...
Corrected code example in pegs
2015-04-17 22:08:49 +02:00
Araq
caef835fe4
fixes #2568
2015-04-17 21:21:02 +02:00
apense
cee08adebb
Corrected code example in pegs
...
The code as `"var1=key; var2=key2".replacef(peg"{\ident}'='{\ident}", "$1<-$2$2")` just results in `$1<-$2$2; $1<-$2$2`
2015-04-17 13:14:36 -04:00
Kay Zheng
3125058b6a
Only run the test for the fixed version of poll(...)
2015-04-17 22:40:53 +08:00
Kay Zheng
371d273924
Add a test case for the EvError handling issue
2015-04-17 22:24:06 +08:00
Andreas Rumpf
b4e938ca21
Merge pull request #2503 from ReneSac/arrowLike
...
Restrict arrow-like operators to those ending with `->`, `~>` or `=>`
2015-04-15 19:24:44 +02:00
Andreas Rumpf
86b37f7fc7
Merge pull request #2555 from def-/fix-2552
...
Make peekExitCode on Posix use WIFEXITED to determine exit
2015-04-15 17:41:01 +02:00
Andreas Rumpf
e14e5be998
Merge pull request #2549 from fowlmouth/patch-2
...
fixes for macros.getType()
2015-04-15 17:33:26 +02:00
Andreas Rumpf
97cb0eb694
Merge pull request #2560 from BlaXpirit/re-nre-hint
...
Add a hint about NRE library to 're' module
2015-04-15 17:32:21 +02:00
Andreas Rumpf
8e73978c68
Merge pull request #2546 from BlaXpirit/rst-link-underscore
...
Make RST recognize hyperlinks with two underscores
2015-04-15 17:31:18 +02:00
Andreas Rumpf
09b7619d9c
Merge pull request #2558 from BlaXpirit/deprecate-const-regexes
...
Deprecate constant regular expression strings
2015-04-15 17:30:19 +02:00
Oleh Prypin
aa327efa98
Add a hint about NRE to 're' module
2015-04-14 23:26:53 +03:00
Oleh Prypin
ff25c1272f
Deprecate constant regular expression strings
2015-04-14 22:30:21 +03:00
def
2025a0f482
Make peekExitCode on Posix use WIFEXITED to determine exit
...
This fixes #2552
2015-04-14 12:58:17 +02:00
Simon Hafner
49b953f318
sexp also accepts cons
2015-04-14 02:49:16 -05:00
Simon Hafner
8fa8f13741
renamed sexp
2015-04-14 02:00:23 -05:00
Simon Hafner
15c347af69
sexp parsing & generation
2015-04-14 01:58:34 -05:00
reactormonk
e281d41370
Merge pull request #2553 from winksaville/fix-importc-atomic_compare_exchange
...
The importc for atomicCompareExchange is incorrectly defined.
2015-04-14 09:50:54 +05:00
Wink Saville
b0b3a2500a
The importc for atomicCompareExchange is incorrectly defined.
...
The .importc: was referring to __atomic_compare_exchange_n this corrects
it to be __atomic_compare_exchange.
2015-04-13 20:39:01 -07:00
Simon Hafner
c55f884b5c
integrated realtimegc stuff into testament
2015-04-13 22:36:35 -05:00
Zahary Karadjov
6fb372d96b
The getSubsystem<T> example in the manual currently fails with a codegen error
...
A faulty proc declaration is generated:
N_NIMCALL(System::Input*, SystemManager::getSubsystem<'*0>())(void);
The manual has been edited to add a nodecl pragma, which alleviates the issue
Fix a typo in the vector_iterator example from the previous commit.
2015-04-14 00:03:31 +03:00
Zahary Karadjov
1ebf1aaa80
importing of C++ nested generics like std::vector<T>::iterator, using the apostrophe operator
2015-04-13 23:49:41 +03:00
fowlmouth
9700298d07
concept types are represented with getType()
2015-04-13 14:57:23 -05:00
Oleh Prypin
81d2be4aa6
Make RST recognize hyperlinks with two underscores
...
Fixes #2538
2015-04-13 19:51:27 +03:00
Oleh Prypin
e6dbb350a9
Update documentation
2015-04-13 10:45:15 +03:00
Varriount
6c78f1a43d
Merge pull request #2531 from endragor/lexing-doc-typo
...
Fix typo in lexing.txt: UINT8_LIT -> UINT_LIT
2015-04-12 23:56:03 -04:00
apense
9a629d72e8
Added peeking procedures to streams
...
Adds peeking to streams, which is just like reading, but at the end, the stream position hasn't changed.
2015-04-12 20:38:35 -04:00
Oleh Prypin
c31870d311
Change flags to inline
...
Flags can no longer be specified in a 2nd argument.
Now they are part of the regular expression string.
2015-04-13 00:09:11 +03:00
Josep Sanjuas
d0ff06b8c1
Generalize mean to other types
2015-04-12 19:40:30 +02:00
Flaviu Tamas
90d17c4e03
Improve performance
...
Removing ANCHORED means that after findIter is unable to find any more matches,
it doesn't bother searching unless there are some promising 0-len matches. This
significantly improves performance on problems like
`"abccccccccccccc".find(re"a")`. Previously, each "c" would require a call to
pcre_exec, which would iterate over [index_of_c..string.len], a O(n^2) process!
2015-04-12 10:33:21 -04:00
Oleh Prypin
8b8224ecaf
Add tests for empty or non-empty match
2015-04-12 17:31:43 +03:00
Oleh Prypin
02c6e7306f
Fix skipping an empty match at the end
2015-04-12 15:18:16 +03:00
Ruslan Mustakov
0f8a6cbbe4
Fixed typo in lexing.txt: UINT8_LIT -> UINT_LIT
2015-04-12 13:12:40 +06:00