summary refs log tree commit diff stats
path: root/tests/parser
Commit message (Collapse)AuthorAgeFilesLines
* defaults to ORC (#19972)ringabout2022-09-231-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * defaults to Orc * bootstrap using refc * use gc * init orc defines * unregister orc * fix gc * fix commands * add prepareMutation for orc * enable deepcopy for orc * prepareMutation * more fixes * some cases * bug #20081 * partial fixes * partial fixes * fixes command line * more fixes * build Nim with refc * use gc * more fixes * rstore * orc doesn't support threadpool * more shallowCopy * more fixes * fixes unsafeNew * workarounds * small * more fixes * fixes some megatest * tcodegenbugs1 refc * fxies megatest * build nimble with refc * workaround tensordsl tests * replace shallowCopy with move * fixes action * workaround * add todo * fixes important packages * unpublic unregisterArcOrc * fixes cpp * enable windows Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com>
* use arrow precedence in spec (#20166)metagn2022-09-061-0/+7
| | | | | | | * test using arrow precedence in spec refs #8759 * add test for #8759
* new .redefine pragma for templates, warn on redefinition without it (#20211)metagn2022-08-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test CI for template redefinitions * adapt asyncmacro * fix quote * fix again * try something else * revert * fix ioselectors_select, disable packages CI * adapt more tests & simplify * more * more * more * rename to redefine, warn on implicit redefinition * basic documentation [skip ci] * Update compiler/lineinfos.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* fixes #19662; Indent level errored for first line (#19718)flywind2022-04-251-0/+6
|
* Allow full commands and blocks in type sections (#19181)hlaaftana2022-01-025-0/+368
| | | | | | | * allow full commands and blocks in type sections * update grammar * fix changelog [skip ci] * more tests * even more tests
* treat do with pragmas but no parens as proc (#19191)hlaaftana2021-12-051-2/+17
| | | fixes #19188
* fix #12274 (#19180)hlaaftana2021-11-241-0/+9
|
* fixes #18847 [backport] (#18870)Andreas Rumpf2021-09-201-0/+4
|
* Fix #16426 (#18377)Clyybber2021-06-281-0/+15
|
* Small parser loop fix (#17904)Clyybber2021-04-301-1/+4
| | | | * Fix loop on error with nim check in semiStmtList * Add test
* refs #15667 improve invalid indentation errors, report when & where `=` ↵Timothee Cour2021-04-101-0/+58
| | | | | | | | | | | could be missing (#16397) * refs #15667 improve invalid indentation errors * also show line info where = is missing * add test * add more tests
* unify tuple expressions (#13793)Arne Döring2021-03-302-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * unify tuple expressions * fix test * fix test * apply feedback * Handle empty tuples * Fix rendering named unary tuple * Protect static NimNode against stripping * Slightly less hacky * Revert "Slightly less hacky" This reverts commit 170c5aec0addc029f637afbc948700ca006b7942. * Slightly less hacky * Cleanup * Fix test * Fix another test * Add condsym * Rebase fallout * changelog: Move from compiler changes to language changes * Add stricter tests * Add empty tuple example to doc/astspec * Fix test Co-authored-by: Clyybber <darkmine956@gmail.com>
* add finally as post expr block [backport:1.4] (#16896)hlaaftana2021-02-011-0/+115
|
* use doAssert in tests (#16486)flywind2020-12-281-25/+25
|
* Add testcase for invalid if statement (#15313)Clyybber2020-09-121-0/+12
|
* Fix #15305 (#15311)Clyybber2020-09-121-0/+12
| | | | | * Fix #15305 * Fix test
* Better semiStmtList parsing (#15123)Clyybber2020-09-091-0/+165
| | | | | | | * Better semiStmtList parsing * Add examples from forums and wiki * Move parseIfExpr near parseIfOrWhen * Update grammar
* make `from` an operator (#14241)hlaaftana2020-05-081-0/+12
|
* Remove immediate pragma (#11308)Arne Döring2019-05-291-5/+5
| | | | | * remove immediate from tests * remove immediate from the compiler
* revert parser stmtListExpr (#11007)cooldome2019-04-171-20/+0
| | | | | | | | | | | | | | | | | * Revert "Support for stmtListExpr in parser after major keywords. Scaled down version. (#10852)" This reverts commit 862897dc0f122e374c0e4d44770ffcd8825e51e3. * redo fix for #4035 * render stmtlistExpr using semicolon * Revert "render stmtlistExpr using semicolon" This reverts commit cafb78b8d5b125b5f6ba94248377a1433b3138cb. * revert test
* fixes #10896 (#10903)Andreas Rumpf2019-03-251-0/+5
|
* fixes #10861 (#10877)cooldome2019-03-211-1/+15
|
* Support for stmtListExpr in parser after major keywords. Scaled down ↵cooldome2019-03-181-0/+20
| | | | | | | version. (#10852) * Support for stmtListExpr in parser after major keywords * fixes #4035
* gc: destructors is beginning to work (#10483)Andreas Rumpf2019-01-291-0/+9
| | | | | | | | | | | | | | | | * kochdocs.nim: code cleanup * docgen: nicer indentation * parser.nim: code cleanup * fixes #10458 * make tests green again * make =destroy mixins * gc:destructors: produced C code is almost working * --gc:destructors simple program compiles (but leaks memory) * gc:destructors make examples compile in C++ mode * destructors: string implementation bugfixes * strs.nim: minor code cleanup * destructors: builtin seqs are beginning to work * remove debugging helpers
* require errormsg to be specified before file.Arne Döring2018-12-117-15/+6
|
* fixes #9633Andreas Rumpf2018-11-081-1/+17
|
* parser change: 'not' is always a unary operator; fixes #9574Andreas Rumpf2018-11-071-0/+5
|
* removed the undocumented #? strongSpaces parsing modeAraq2018-11-061-83/+0
|
* Fix #8126 (#8712)zah2018-08-211-0/+4
| | | | | | This is a temporary fix that will be reworked in a follow up commit that aims to eliminate the tfExplicit flag from the compiler. The complete and proper fix was considered too risky for inclusion just before our 0.19 release.
* Implement the `is` operator for the new static and typedesc type classesZahary Karadjov2018-06-161-7/+32
| | | | | | | | | This also makes the first baby steps towards a sound treatment of higher-order kinds (type type int). Adds test cases showcasing the new features. * Also fixes breakage after the rebase
* A minimal patch enabling the new typedesc and static types syntaxZahary Karadjov2018-06-161-53/+99
|
* Starting test recording the current state of the parserZahary Karadjov2018-06-161-0/+481
| | | | | | | | | In the next commit, I'll introduce changes to the parser bringing consistent handling of all type modifiers (ref, ptr, var, static and type). The goal of this commit is to record precisely what is going to be changed (i.e. by allowing you to look at the diff). To preserve the diff, please don't squash upon merging.
* make tests green againAraq2018-05-144-7/+7
|
* update the changelogAndreas Rumpf2018-05-061-432/+0
|
* fixes #7582Andreas Rumpf2018-05-052-2/+13
|
* Get symbol kind (#7491)Arne Döring2018-04-111-89/+89
|
* Fix parser bug with type classes (#7480)Oscar Nihlgård2018-04-061-0/+17
|
* added the 'x.p[:T]' notation for explicit generic instantiations in ↵Araq2018-04-061-1/+7
| | | | combination with the ddot calling syntax
* Fixes #7473 (#7475)Arne Döring2018-04-041-5/+4
| | | | | * removed code duplication * changelog entry, adopt tests for changes
* make tests green againAndreas Rumpf2017-11-191-89/+89
|
* Block expressions (#6695)Fabian Keller2017-11-061-1/+10
| | | | | | * enabled parsing of block expressions * added test case; closes #3827 * adjusted grammar doc strings * updated grammar in docs
* fixes #6609; 'if' expressions support multiple statements; minor breaking changeAraq2017-11-051-0/+18
|
* Restore the old behavior of parsing "quote do:"Zahary Karadjov2017-08-191-182/+212
| | | | close #5845
* Remove expr/stmt (#5857)Arne Döring2017-07-252-11/+10
|
* Merge branch 'zahary' into araq2Andreas Rumpf2017-05-161-0/+513
|\
| * fix a parsing regression (do is still mandatory in some situations)Zahary Karadjov2017-04-141-0/+16
| |
| * fix a parsing regression (calls with do inside param lists)Zahary Karadjov2017-04-101-0/+19
| | | | | | | | | | This treatment is applied only when "do" is used, because the code foo(x: bar) is recognized as object construction.
| * fully consisent parsing between the new and the old 'do blocks'Zahary Karadjov2017-04-101-0/+478
| |
* | fixes a parser bugAraq2017-04-251-0/+6
|/
* assignments support ': stmtList' like let/var doAndreas Rumpf2017-04-041-1/+2
|