Nim/tests/parser
metagn 4ca2dcb404
Named arguments in commands + many grammar fixes (#20994)
* Breaking parser changes, implement https://github.com/nim-lang/RFCs/issues/442

Types are separated from expressions and better reflected in the grammar.

* add test

* more accurate grammar

* fix keyword typedescs

* accept expressions in proc argument lists

* CI "fixes"

* fixes

* allow full ref expressions again, adapt old tests

* cleanup, fix some tests

* improve grammar, try and revert semtypes change

* restrict sigil binding to identOrLiteral

* fix, should have caught this immediately

* add changelog entry, fix double not nil bug

* correct grammar

* change section

* fix

* real fix hopefully

* fix test

* support LL(1) for tuples

* make grammar.txt too
2022-12-06 13:11:56 +01:00
..
t12274.nim defaults to ORC (#19972) 2022-09-23 13:05:05 +02:00
t15667.nim Small parser loop fix (#17904) 2021-04-30 17:17:29 +02:00
t19662.nim fixes #19662; Indent level errored for first line (#19718) 2022-04-25 12:00:23 +02:00
tcommand_as_expr.nim Named arguments in commands + many grammar fixes (#20994) 2022-12-06 13:11:56 +01:00
tcommandequals.nim Named arguments in commands + many grammar fixes (#20994) 2022-12-06 13:11:56 +01:00
tcommandindent.nim Named arguments in commands + many grammar fixes (#20994) 2022-12-06 13:11:56 +01:00
tdo.nim treat do with pragmas but no parens as proc (#19191) 2021-12-05 06:44:22 +01:00
tdoc_comments.nim fixes #18847 [backport] (#18870) 2021-09-20 09:09:53 +02:00
tdomulttest.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tdoublenotnil.nim Named arguments in commands + many grammar fixes (#20994) 2022-12-06 13:11:56 +01:00
tifexprs.nim Fix #15305 (#15311) 2020-09-12 12:39:46 +01:00
tinvcolonlocation1.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tinvcolonlocation2.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tinvcolonlocation3.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tinvifstmt.nim Add testcase for invalid if statement (#15313) 2020-09-12 14:28:19 +02:00
tinvwhen.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
tletcolon.nim fixes #10861 (#10877) 2019-03-21 06:48:54 +01:00
tmultiline_comments.nim fixes multi-line comments 2016-01-17 23:46:23 +01:00
toprprec.nim Remove immediate pragma (#11308) 2019-05-29 22:21:51 +02:00
tpostexprblocks.nim unify tuple expressions (#13793) 2021-03-30 02:06:51 +02:00
tprecedence.nim use arrow precedence in spec (#20166) 2022-09-06 21:24:32 +02:00
tprocexprasstmt.nim allow proc expressions in place of statements (#20935) 2022-11-29 06:37:00 +01:00
tproctype_pragmas.nim fixes #1802 2015-03-22 01:38:13 +01:00
tstatementoperators.nim make from an operator (#14241) 2020-05-08 07:54:46 +02:00
tstmtlists.nim new .redefine pragma for templates, warn on redefinition without it (#20211) 2022-08-23 21:41:30 +02:00
ttupleunpack.nim require errormsg to be specified before file. 2018-12-11 21:23:21 +01:00
ttypeclasses.nim use doAssert in tests (#16486) 2020-12-28 14:13:21 +01:00
ttypecommandcomma.nim Allow full commands and blocks in type sections (#19181) 2022-01-02 07:29:55 +01:00
ttypecommandindent1.nim Allow full commands and blocks in type sections (#19181) 2022-01-02 07:29:55 +01:00
ttypecommandindent2.nim Allow full commands and blocks in type sections (#19181) 2022-01-02 07:29:55 +01:00
ttypecommandindent3.nim Allow full commands and blocks in type sections (#19181) 2022-01-02 07:29:55 +01:00
ttypeexprobject.nim Named arguments in commands + many grammar fixes (#20994) 2022-12-06 13:11:56 +01:00
ttypeexprs.nim Named arguments in commands + many grammar fixes (#20994) 2022-12-06 13:11:56 +01:00
ttypemodifiers.nim unify tuple expressions (#13793) 2021-03-30 02:06:51 +02:00
ttypeof.nim fixes long standing parsing issue with command syntax 2015-03-22 01:38:14 +01:00
ttypesectioncalls.nim Allow full commands and blocks in type sections (#19181) 2022-01-02 07:29:55 +01:00
twhen_in_enum.nim make tests green again 2018-05-14 21:38:18 +02:00
twrongcmdsyntax.nim fixes #7582 2018-05-05 14:17:31 +02:00