Commit Graph

88 Commits

Author SHA1 Message Date
Araq
b3ac785f95 fixes semicolon parsing issue 2013-06-03 08:05:32 +02:00
Araq
b7ea4a7e65 Revert "allow keyword params for the [] and {} operators"
This reverts commit bfff1ac8b2.
2013-05-27 23:19:11 +02:00
Zahary Karadjov
bfff1ac8b2 allow keyword params for the [] and {} operators
conceptually, these operators are not very different from regular procs in the way
they are defined and overloaded. keyword params for them are admittedly less useful,
but they improve consistency and may help with generic instantiations once default
generic parameters are supported.
2013-05-26 11:14:23 +03:00
Araq
9b9a180947 'inject' for 'for' loop variables 2013-05-14 00:41:07 +02:00
Araq
fa0a327dd6 completed expr/stmt unification 2013-05-03 23:51:43 +02:00
Araq
8e5d6834cc new parser works with docgen 2013-05-02 02:17:03 +02:00
Araq
e70cc64e90 proper scoping for 'if' 2013-04-30 14:40:54 +02:00
Araq
2afadc5c9c first steps to the expr/stmt unification 2013-04-30 02:38:49 +02:00
Araq
f182cefc08 new parser: diallow more things 2013-04-23 23:11:33 +02:00
Araq
61e9bd0c48 made some tests green 2013-04-22 21:18:48 +02:00
Araq
f7c7d95d89 bugfix: 'import x var y' without newline doesn't parse anymore 2013-04-21 22:04:56 +02:00
Araq
8a595b631b new parsing scheme is documented 2013-04-21 20:09:46 +02:00
Araq
03764f0aba new parser works 2013-04-20 18:46:08 +02:00
Araq
7e329db45f next steps for the new parser 2013-04-20 03:03:12 +02:00
Araq
2796121dd7 next steps for the new parser/grammar 2013-04-20 01:59:39 +02:00
Araq
04216fc750 first steps to the new parser/grammar 2013-04-19 09:07:01 +02:00
Araq
18fbaab216 fixes #310 2013-04-13 01:09:15 +02:00
Araq
1ab598b336 fixes #283 2013-04-11 11:45:59 +02:00
Grzegorz Adam Hankiewicz
72a3e21f28 Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
Araq
f1b8f83495 next steps for object construction expressions 2013-03-07 08:43:44 +01:00
Araq
225d657019 first steps to implement object construction expressions 2013-03-07 01:52:17 +01:00
Zahary Karadjov
81a3585872 merged upstream master 2013-01-27 23:41:45 +02:00
Araq
92e10e4b18 implemented 'import except' 2012-11-28 23:54:23 +01:00
Araq
0d19de18cc first steps for the 'export' feature 2012-11-28 02:02:46 +01:00
Zahary Karadjov
36e25a6849 CaaS in-memory caching
removed some redundant filepath params and variables and
switched to canonical paths in most places
2012-11-28 01:15:13 +02:00
Araq
c43bf78000 fixed recently introduced parser bugs 2012-11-26 19:31:55 +01:00
Araq
dd9ad9e497 next steps for first class iterators 2012-11-26 02:43:32 +01:00
Araq
538699a281 parser support for 'not nil' annotation 2012-11-25 23:40:42 +01:00
Araq
ccd2934e4a first steps for 'not nil' annotation 2012-11-25 11:03:14 +01:00
Araq
f610d2d221 'iterator' as type description 2012-11-22 08:31:40 +01:00
Araq
7f6633a06f added system.finished for first class iterators 2012-11-17 01:25:32 +01:00
Araq
74acf05e0e bugfix: prevent endless loop in the parser for 'nimrod check' 2012-10-10 00:59:09 +02:00
Zahary Karadjov
d9d82fb0af syntax compatibility between do blocks and stmt blocks
See the section `do notation` in the manual for more info.

* nkMacroStmt has been removed
   Macro statements are now mapped to regular nkCall nodes.
   The support for additional clauses (such as else, except, of, etc)
   have been restored - they will now appear as additional arguments
   for the nkCall node (as nkElse, nkExcept, etc nodes)

* fixed some regressions in the `is` operator and semCompiles
2012-10-04 15:37:26 +03:00
Zahary Karadjov
770d4a997e implemented case expressions 2012-10-03 01:59:49 +03:00
Araq
759b3201ad proc bodies can be expressions with a type 2012-09-22 22:43:36 +02:00
Araq
d3d9d32c35 first steps to deprecate 'nil' statement 2012-09-09 01:08:00 +02:00
Araq
1d14cb1ad8 next steps towards term rewriting macros; simple examples work 2012-08-30 22:55:32 +02:00
Araq
1786e30991 first steps towards term rewriting macros 2012-08-30 10:55:40 +02:00
Araq
f7f6bc2ba3 idetools improvements (2) 2012-08-03 20:31:49 +02:00
Araq
7d6500f1de idetools improvements; preparation of first class iterators; fixes #183 2012-08-02 23:14:38 +02:00
Araq
39235e21f5 bugfixes for the symbol mangling; implements #129 2012-07-19 17:38:52 +02:00
Araq
98fd408adc implemented #133 2012-07-19 16:38:46 +02:00
Araq
e68830a952 improvements for 'bind', fixes #166 2012-07-18 17:21:10 +02:00
Araq
8d99753d63 preparations for making 'closure' the default calling convention for proc types 2012-07-16 23:00:57 +02:00
Araq
94013a4cff ';' as statement separator 2012-07-12 08:17:22 +02:00
Araq
eee99ab272 fixes #112 2012-07-11 18:27:14 +02:00
Araq
b4a9aca2d3 ';' now valid for parameter lists 2012-07-11 18:17:39 +02:00
Araq
48847b5616 documented optional indentation for 'case' statements/'case' objects 2012-06-22 17:47:03 +02:00
Zahary Karadjov
e2d38a57ec better support for unsigned integers. 2012-06-11 21:38:01 +03:00
Zahary Karadjov
4f45097f87 optional indentation for case statements
- preliminary support for try expressions  and case expressions
- allow do forms in assignments and return statements
2012-05-23 02:27:57 +03:00