summary refs log tree commit diff stats
path: root/doc/grammar.txt
Commit message (Collapse)AuthorAgeFilesLines
* fix issue #20922 by handling missing expr in `exprList` for `tkOf` (#20930)Vindaar2022-12-081-3/+4
| | | | | | | | | | | | | | | | | | * fix issue #20922 by handling missing expr in `exprList` for `tkOf` * fix line numbers in test case * rewrite exprList requiring expr, add optionalExprList for except As suggested by @metagn. * update test case to reflect new code * update grammar.txt * update line numbers in test case taking into account nimout Given the number of errors that are produced it seems easier to do it this way instead of using `tt.Error`.
* Named arguments in commands + many grammar fixes (#20994)metagn2022-12-061-21/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* correct grammar (ref #20199) and add check for grammar.txt (#20494)ringabout2022-10-061-2/+1
| | | | | | | * correct grammar; ref #20199 * add check for keeping grammar.txt up-to-date * add nimTestGrammar
* add default field support for object in ARC/ORC (#20480)ringabout2022-10-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fresh start * add cpp target * add result support * add nimPreviewRangeDefault * reduce * use orc * refactor common parts * add tuple support * add testcase for tuple * cleanup; fixes nimsuggest tests * there is something wrong with cpp * remove * add support for seqs * fixes style * addd initial distinct support * remove links * typo * fixes tuple defaults * add rangedefault * add cpp support * fixes one more bugs * add more hasDefaults * fixes ordinal types * add testcase for #16744 * add testcase for #3608 * fixes docgen * small fix * recursive * fixes * cleanup and remove tuple support * fixes nimsuggest * fixes generics procs * refactor * increases timeout * refactor hasDefault * zero default; disable i386 * add tuples back * fixes bugs * fixes tuple * add more tests * fix one more bug regarding tuples * more tests and cleanup * remove messy distinct types which must be initialized by original types * add tests * fixes zero default * fixes grammar * fixes tests * fixes tests * fixes tests * fixes comments * fixes and add testcase * undo default values for results Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
* remove deprecated type pragma syntax, fix bugs that required it (#20199)metagn2022-09-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * remove deprecated pragma syntax from 0.20.0 closes #4651, closes #16653 with a cheap fix for now due to how early `tfFinal` is set * remove type pragma between name and generics * undo removal, try removing bind expression (0.8.14) * fix test, unremove bind expr * remove again * Update changelog.md Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * dependencies @ HEAD & weave test dependencies * try fix package ci Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Allow full commands and blocks in type sections (#19181)hlaaftana2022-01-021-2/+3
| | | | | | | * allow full commands and blocks in type sections * update grammar * fix changelog [skip ci] * more tests * even more tests
* fixes grammar typos [backport] (#19289)Andreas Rumpf2021-12-271-3/+3
|
* formal grammar updates [backport:1.2] (#18803)Andreas Rumpf2021-09-041-21/+16
|
* fix RFC #341: dot-like operators are now parsed with same precedence as `.` ↵Timothee Cour2021-08-251-0/+2
| | | | | | | | | | | | | | | | | | | | | (#18711) * fix RFC #341: dot-like operators are now parsed with same precedence as `.` * fixup * [skip ci] address comment in changelog * address comment * update grammmar * add manual entry * fixup * -d:nimPreviewDotLikeOps * address comment to unblock PR: move nimPreviewDotLikeOps out of config/config.nims
* custom integer literals (#17489)Andreas Rumpf2021-03-241-1/+2
| | | | | | | * user defined integer literals; refs #17020 * updated renderer.nim * use mlexerutils helper * imported all test cases from https://github.com/nim-lang/Nim/pull/17020 * final grammar updated
* small fix in grammar.txt [ci skip]narimiran2021-01-281-1/+1
|
* implements https://github.com/nim-lang/RFCs/issues/258 (#15503)Andreas Rumpf2020-10-061-11/+11
| | | | | | | | | * implements https://github.com/nim-lang/RFCs/issues/258 * don't be too strict with custom pragma blocks * cast pragmas: documentation * added most missing inference query procs to effecttraits.nim
* make `from` an operator (#14241)hlaaftana2020-05-081-1/+1
|
* Update grammar.txt with `func` and `as` (#14147) [backport]hlaaftana2020-04-281-1/+2
|
* fixes #10665 (#13141) [backport]Andreas Rumpf2020-01-141-23/+25
|
* parser/grammar sync; fixes #9608 [backport]Andreas Rumpf2018-11-071-4/+5
|
* added the 'x.p[:T]' notation for explicit generic instantiations in ↵Araq2018-04-061-2/+3
| | | | combination with the ddot calling syntax
* Fix casing in rule 'typeDesc' (#7324)Robert Hencke2018-03-121-1/+2
| | | Also, leave a note in grammar.txt that it is generated.
* Block expressions (#6695)Fabian Keller2017-11-061-1/+3
| | | | | | * enabled parsing of block expressions * added test case; closes #3827 * adjusted grammar doc strings * updated grammar in docs
* parser enhancement: allow keywords after dotsAndreas Rumpf2017-07-111-6/+6
|
* assignments support ': stmtList' like let/var doAndreas Rumpf2017-04-041-1/+1
|
* update grammar.txtAndreas Rumpf2017-04-021-1/+2
|
* grammar updateAndreas Rumpf2017-03-311-4/+2
|
* first version of .partial objectsAndreas Rumpf2016-02-281-1/+3
|
* 'out T' is an alias for 'var T'Araq2015-11-261-6/+9
|
* fixes #2533Araq2015-04-241-1/+1
|
* breaking change: 'concept' is now a keyword and used instead of 'generic'Araq2015-03-231-6/+6
|
* fixes #1805Araq2015-03-211-14/+10
|
* 'discard' can be used instead of 'nil' for empty case object branchesAraq2015-01-121-1/+1
|
* compiler\parser.nimAraq2014-12-081-11/+12
| | | | implemented arrow like operators
* implements 'defer'Araq2014-12-041-1/+2
|
* fixes #1161Araq2014-07-011-1/+4
|
* Regenerate docsflaviut2014-06-081-1/+1
|
* fix overlooked grammer commentflaviut2014-06-081-0/+1
|
* updated grammer, fixed oversightflaviut2014-06-041-2/+1
|
* cleaned up command expressionsAraq2014-02-021-2/+1
|
* typeClasses now documented in grammar.txtAraq2014-01-231-0/+4
|
* updated grammar.txtAraq2014-01-201-14/+16
|
* support for multiple modules of the same name; niminst supports 'platforms'; ↵Araq2013-09-241-3/+4
| | | | minor bugfixes
* fixes semicolon parsing issueAraq2013-06-031-1/+1
|
* 'inject' for 'for' loop variablesAraq2013-05-141-2/+2
|
* more intuitive behaviour for 'discardable' in expression bodiesAraq2013-05-041-3/+11
|
* new parsing scheme is documentedAraq2013-04-211-203/+180
|
* Removes executable bit for text files.Grzegorz Adam Hankiewicz2013-03-161-0/+0
|
* first steps for 'not nil' annotationAraq2012-11-251-2/+3
|
* 'iterator' as type descriptionAraq2012-11-221-2/+4
|
* improvements for 'bind', fixes #166Araq2012-07-181-1/+1
|
* ';' now valid for parameter listsAraq2012-07-111-3/+5
|
* ' is optional in type suffixes for numerical literalsAraq2012-07-021-0/+1
|
* implemented 'static'; macros do not work anymoreAraq2012-03-151-4/+2
|