Commit Graph

48 Commits

Author SHA1 Message Date
Arne Döring
6baca58693 Get symbol kind (#7491) 2018-04-11 16:48:01 +02:00
Oscar Nihlgård
d6793ded27 Fix parser bug with type classes (#7480) 2018-04-06 22:44:54 +02:00
Araq
212fdc5946 added the 'x.p[:T]' notation for explicit generic instantiations in combination with the ddot calling syntax 2018-04-06 22:05:57 +02:00
Arne Döring
5d46e1eaa2 Fixes #7473 (#7475)
* removed code duplication
* changelog entry, adopt tests for changes
2018-04-04 15:37:07 +02:00
Andreas Rumpf
2ad49836d9 make tests green again 2017-11-19 20:09:38 +01:00
Fabian Keller
40a6caeed8 Block expressions (#6695)
* enabled parsing of block expressions
* added test case; closes #3827
* adjusted grammar doc strings
* updated grammar in docs
2017-11-06 20:33:01 +01:00
Araq
742f43e572 fixes #6609; 'if' expressions support multiple statements; minor breaking change 2017-11-05 01:26:04 +01:00
Zahary Karadjov
7ad115f530 Restore the old behavior of parsing "quote do:"
close #5845
2017-08-19 08:57:43 +02:00
Arne Döring
000b8afd26 Remove expr/stmt (#5857) 2017-07-25 09:28:23 +02:00
Andreas Rumpf
503f780676 Merge branch 'zahary' into araq2 2017-05-16 17:32:18 +02:00
Araq
05c20bc4ff fixes a parser bug 2017-04-25 19:36:05 +02:00
Zahary Karadjov
8de19a7f4c fix a parsing regression (do is still mandatory in some situations) 2017-04-14 23:48:43 +03:00
Zahary Karadjov
e7eb01ed48 fix a parsing regression (calls with do inside param lists)
This treatment is applied only when "do" is used, because
the code foo(x: bar) is recognized as object construction.
2017-04-10 12:08:40 +03:00
Zahary Karadjov
9ffaee3f88 fully consisent parsing between the new and the old 'do blocks' 2017-04-10 11:44:02 +03:00
Andreas Rumpf
e21ca54b11 assignments support ': stmtList' like let/var do 2017-04-04 12:20:43 +02:00
Andreas Rumpf
a543b89bf8 language addition: colon-block for expressions in let/var context 2017-04-02 15:05:04 +02:00
Araq
10bd488daa implements #?braces syntax 2016-10-16 00:35:49 +02:00
Andreas Rumpf
0134a51a7c fixes critical 'do' parsing bug 2016-05-28 02:17:13 +02:00
Andreas Rumpf
3114523a6f fixes multi-line comments 2016-01-17 23:46:23 +01:00
Andreas Rumpf
71cf1f650e fixes multiline comments 2016-01-17 21:42:13 +01:00
Andreas Rumpf
2c2ab6884c fixes strutils.unescape; refs #3634 2016-01-17 21:29:25 +01:00
Araq
cd7b5ae1eb fixes #1799 properly 2015-10-25 02:35:18 +02:00
Peter Mora
75097e2981 sequtils related changes 2015-10-05 22:42:22 +02:00
Araq
31bbc24462 minor testsuite cleanup 2015-09-10 13:19:13 +02:00
Adam Strzelecki
e80465dacf tests: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:04:32 +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
f0f0062a5d Add sfGenSym for (_). 2015-04-23 00:29:16 +01: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
dc1b15647c Parser: Test for exact missing ':' location column
This ensures compiler points to the right place when claiming that ':' is
missing.
2015-04-21 11:32:13 +02:00
ReneSac
34997292f4 Changing the rule for arrow like operators again. 2015-04-10 23:59:17 -03:00
ReneSac
d71f1b98e0 Restore newline at the end of the file. 2015-04-09 18:51:30 -03:00
ReneSac
de34640098 Add tests for arrow like ops in tstrongspaces.nim 2015-04-09 17:01:40 -03:00
Dominik Picheta
ea505f3613 Get rid of tkUnderscore. Map _ to tkSymbol. 2015-04-08 20:08:45 +01:00
ReneSac
5bbebe4a89 Added tests for keyword operators in tstrongspaces
Changed one old test to account for the effect of strong spaces on "and" and cia now.
2015-04-08 02:08:29 -03: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
ca6906d85b fixes long standing parsing issue with command syntax 2015-03-22 01:38:14 +01:00
Araq
a32237a011 fixes #1802 2015-03-22 01:38:13 +01:00
Araq
08c0ba379a fixes #1805 2015-03-21 20:38:28 +01:00
Araq
ece23d39bc fixes #2123 2015-02-14 18:11:52 +01:00
Araq
59e279ba9c fixes a small bug concerning semicolons for top level statements 2014-12-23 23:08:37 +01:00
Araq
121553d1a6 osproc compiles again for haiku 2014-03-10 17:32:50 +01:00
ReneSac
5bd3ec0bfb Remove spurious import added in the last commit. 2014-02-03 01:12:27 -02:00
ReneSac
300c0376b5 Fix optarg() and added two more tests.
One for 'do notation' in a single function in an expression, another the trick of using the method call syntax to pass two parameters.
2014-02-03 01:06:19 -02:00
Araq
c30f6cfcf1 cleaned up command expressions 2014-02-02 14:34:37 +01:00
Araq
37229df7fc next steps for closure iterators 2014-01-22 17:32:38 +01:00
Araq
4a0aadef4d parser support anon iterators 2014-01-20 20:07:44 +01:00
Araq
79f59d18f1 command syntax is allowed in expressions 2014-01-20 08:29:02 +01:00