summary refs log tree commit diff stats
path: root/tests/parser
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* language addition: colon-block for expressions in let/var contextAndreas Rumpf2017-04-021-0/+33
|
* implements #?braces syntaxAraq2016-10-161-0/+432
|
* fixes critical 'do' parsing bugAndreas Rumpf2016-05-281-0/+79
|
* fixes multi-line commentsAndreas Rumpf2016-01-171-0/+30
|
* fixes multiline commentsAndreas Rumpf2016-01-171-0/+16
|
* fixes strutils.unescape; refs #3634Andreas Rumpf2016-01-171-0/+18
|
* fixes #1799 properlyAraq2015-10-251-0/+71
|
* sequtils related changesPeter Mora2015-10-051-0/+1
|
* minor testsuite cleanupAraq2015-09-101-1/+1
|
* tests: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-043-13/+13
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* cleanups for underscores in tuple unpackingAraq2015-04-241-2/+8
|
* Merge pull request #2566 from nanoant/parser-diagnostic-locationAndreas Rumpf2015-04-243-0/+39
|\ | | | | Parser: Fix location (line, col) for diagnostics