Commit Graph

87 Commits

Author SHA1 Message Date
Araq
8d39669233 fixes #2909 2015-06-15 00:56:20 +02:00
Oscar Campbell
3998220f86 Non-base10 overflow allowed if bit-stable. Tests. 2015-06-12 13:45:14 +02:00
Oscar Campbell
a723362d85 Fix bug #1179 + some more found while testing.
- The char(-1) < char(0) is not covered in this PR - different beast.
- Additionally to #1179, I found that non base-10 literals wheren't bounds checked at all.
2015-06-12 13:45:14 +02:00
pdw
9764ba933b Dropped 'T' from types 2015-06-04 13:15:07 +02:00
Andreas Rumpf
51488ebd12 Merge pull request #2848 from ozra/bugfix-2523-number-literal-lexing
Bugfix #2523 number literal lexing
2015-06-04 11:40:00 +02:00
Oscar Campbell
44b0bf59d9 Change const def to cleaner code per suggestion. 2015-06-02 22:22:27 +02:00
Oscar Campbell
dd30bab480 Restructure branching slighty. Fix error message. 2015-06-01 23:49:04 +02:00
Oscar Campbell
4a1e45e3f8 Remove forgotten debug echo statement. 2015-05-31 03:11:44 +02:00
Oscar Campbell
6a43b0e817 Clean up to compiler style. Refine error-msg for illegal octal 'O' 2015-05-31 02:55:06 +02:00
Oscar Campbell
1b4db5a34c Implement #2811 - Unicode en-dash (U+2013) as hump/snake alt. 2015-05-31 01:31:06 +02:00
Oscar Campbell
49b953533a Fix #2523 - first commit. Needs some cleanup. 2015-05-31 00:56:27 +02:00
Araq
6ca38472a1 cleanups for underscores in tuple unpacking 2015-04-24 13:08:42 +02:00
Andreas Rumpf
6a016743aa Merge pull request #2566 from nanoant/parser-diagnostic-location
Parser: Fix location (line, col) for diagnostics
2015-04-24 12:33:11 +02:00
Dominik Picheta
9e69e4e078 Merge branch 'devel' into underscore-tuple-unpack
Conflicts:
	compiler/semstmts.nim
2015-04-23 00:26:17 +01:00
Adam Strzelecki
07b13251d1 Parser: Fix location (line, col) for diagnostics
Previously parser was using lexMessage which was taking location from current
buffer position which was pointing after recently consumed token. But since
parser shows diagnostics about that token it should point to the location where
token starts.

This makes diagnostics like: `test.nim(2, 2) Error: ':' expected` point
properly at the beginning of the wrong token.
2015-04-21 11:32:13 +02:00
Araq
10c1d7f519 minor lexer cleanups; fixes #2504 2015-04-10 14:03:48 +02:00
Dominik Picheta
ea505f3613 Get rid of tkUnderscore. Map _ to tkSymbol. 2015-04-08 20:08:45 +01:00
Dominik Picheta
b38eb2e2a8 Implements #2154.
When unpacking tuples in var/let declarations a part of the tuple can now
be discarded using a single underscore.
2015-03-31 00:39:23 +01:00
Araq
f6ff01572e breaking change: 'concept' is now a keyword and used instead of 'generic' 2015-03-23 13:10:18 +01:00
Araq
3bfcfeb0cf don't use stdout for nimsuggest server mode 2015-02-27 16:44:55 +01:00
Federico Ceratto
657dca5c3b Fix typos 2015-02-15 16:20:32 +00:00
Araq
26b853923c nimsuggest: first version 2015-01-27 01:36:19 +01:00
Andreas Rumpf
e2faa40a4e Merge pull request #1841 from skyfex/devel
Add support for big 'u64 literals and remove SomeUInt from unsigned.nim
2015-01-12 01:44:57 +01:00
Guillaume Gelin
3119fe087d Happy new year! 2015-01-06 15:26:33 +01:00
Audun Wilhelmsen
e5bfb7d550 Added support for big 'u64 literals
Removed duplicate "SomeUInt' typedef from unsigned.nim
2015-01-02 22:10:49 +01:00
Araq
85cc5a6a1f destuctors are experimental; 'func' is now a keyword 2014-12-10 01:57:08 +01:00
Araq
e27ab36731 implements 'defer' 2014-12-04 10:12:32 +01:00
Araq
b2f577df23 fixes #1473 2014-11-12 02:36:59 +01:00
Araq
dcaba49c3f deprecated '#[' comments for future multi-line comment feature 2014-09-28 13:38:26 +02:00
Araq
428ee0c022 changed comment handling (breaking change); part 2 2014-09-07 01:47:16 +02:00
Araq
1cdb8022d0 changed comment handling (breaking change) 2014-09-07 00:58:31 +02:00
Araq
5946747970 updated the compiler to use the new symbol names 2014-08-28 23:48:42 +02:00
Araq
2781fea9e2 Nimrod renamed to Nim 2014-08-28 09:38:14 +02:00
Araq
15a7bcc89f renamefest 2014-08-23 01:59:59 +02:00
Araq
2f43fdb837 renamefest 2014-08-23 01:43:49 +02:00
Araq
057b53e139 'lambda' is no keyword anymore 2014-08-08 02:24:19 +02:00
Araq
daf9dd701e fixes #1166 2014-07-01 22:10:43 +02:00
Araq
7c5f87e413 fixes #1265 2014-07-01 00:59:40 +02:00
Araq
4860b46c7f fixes #1264 2014-07-01 00:24:40 +02:00
Araq
b961e47bfe new concurrency model: first steps; shared is not a keyword anymore 2014-04-14 08:45:43 +02:00
Andreas Rumpf
9d4b77a65a Merge pull request #1003 from flaviut/devel
Add token position to `nimrod scan`
2014-03-16 22:08:43 +01:00
Zahary Karadjov
7080d02af4 allow multi-line expressions using the dot operator
this enables parsing of expressions like:

``` Nimrod
s.items
  .map(proc (x): auto = x * 2)
  .filter do (x) -> auto:
    return x % 2 == 0
  .group_by((x) => x.length)
```
2014-03-16 20:42:06 +02:00
flaviut
5e47c18e3f Add token position to nimrod scan
A block of the format "linenum:col\t' is added to the start of each token that is printed.
2014-03-14 14:18:38 -04:00
Araq
91d842e1ec implements strongSpaces parsing mode 2014-03-07 22:25:05 +01:00
Araq
37229df7fc next steps for closure iterators 2014-01-22 17:32:38 +01:00
Araq
73c6efdf66 'nil' as a statement is deprecated, use an empty 'discard' instead 2014-01-19 16:54:59 +01:00
Araq
b731e6ef1c case consistency: cs:partial bootstraps on windows 2013-12-29 03:19:10 +01:00
Araq
438703f59e case consistency: next steps 2013-12-29 01:13:51 +01:00
Araq
92b8fac94a case consistency part 4 2013-12-27 23:10:36 +01:00
Araq
2df9b442c6 case consistency part 1 2013-12-27 15:48:53 +01:00