summary refs log tree commit diff stats
path: root/compiler/parser.nim
Commit message (Collapse)AuthorAgeFilesLines
* gc: destructors is beginning to work (#10483)Andreas Rumpf2019-01-291-26/+22
| | | | | | | | | | | | | | | | * 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
* Correct lineinfo for accent quoted symbols in proc definition (#10399)alaviss2019-01-211-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * compiler/parser: preserve lineinfo for accent quoted symbols Previously the lineinfo for symbol $$$ in this example is: proc `$$$` ^ After this commit: proc `$$$` ^ * compiler/semstmts: correct lineinfo for accent quoted idents Previously nimsuggest would highlight this as: proc `$$$` ^~~ After this commit: proc `$$$` ^~~ * nimsuggest/tests: add a test for accent quoted proc Disabled by default
* Deprecate gc v2 (#10151)Neelesh Chandola2019-01-011-2/+2
| | | | | | * Deprecate gc v2 * warnDeprecated now has custom messages
* Deprecated pragma is now supported on enum fields (#10113)Neelesh Chandola2018-12-301-11/+21
| | | | | | * {.deprecated.} pragma is now supported for enum fields * Add tests * Simplify code
* Pragma syntax is now consistent (#9993)Neelesh Chandola2018-12-271-3/+34
| | | | | | | | | | * Give deprecation warning when type pragmas do not follow the type name * pragma before generic parameter list in type definition is now deprecated * Update changelog * Fix bug where deprecated warning was being shown even though no generic param list was present * Fix bug * Use errGenerated * Best attempt at writing the grammar
* much simpler implementation of constant tuple declarationsAndreas Rumpf2018-12-191-37/+17
|
* Const tuple unpacking (#9964)Neelesh Chandola2018-12-191-9/+31
| | | | | | | | | | * tuple unpacking is now supported for consts * Move nkConstTuple to the end of TNodeKind * Add nnkConstTuple in macros.nim * Fix Formatting
* nimpretty: explicit --indent option; fixes #9502; refs #9510 [backport]Andreas Rumpf2018-11-111-1/+1
|
* er... 'a not b' is an infix callAndreas Rumpf2018-11-081-1/+1
|
* fixes parsing regressions; binary 'not' for 'not nil' must stayAndreas Rumpf2018-11-081-2/+17
|
* fixes #9633Andreas Rumpf2018-11-081-5/+8
|
* parser/grammar sync; fixes #9608 [backport]Andreas Rumpf2018-11-071-1/+1
|
* compiler cleanup: flag tfOldSchoolExprStmt is goneAraq2018-11-061-2/+0
|
* removed the undocumented #? strongSpaces parsing modeAraq2018-11-061-11/+7
|
* Maps `out` keyword to an nnkIdent. Fixes #6011. (#9536)Dominik Picheta2018-10-291-2/+1
|
* nimpretty: add #!nimpretty on/off directivesAndreas Rumpf2018-10-161-2/+2
|
* nimpretty: fixes #8626Andreas Rumpf2018-10-161-0/+2
|
* Add checks for except: body blocks (#9191)Dheepak Krishnamurthy2018-10-091-1/+0
|
* parser.nim: minor code style fixAndreas Rumpf2018-09-161-1/+1
|
* Merge branch 'devel' into araq-better-docgenAraq2018-09-141-18/+21
|\
| * fixes merge conflictsAndreas Rumpf2018-09-111-157/+234
| |\
| * | steps to get for loops as expressionsAndreas Rumpf2018-02-281-18/+21
| | |
* | | compiler refactoring; use typesafe path handing; docgen: render symbols ↵Andreas Rumpf2018-09-071-3/+4
| |/ |/| | | | | between modules
* | Renderer bug fixes (#8804)cooldome2018-09-071-35/+0
| | | | | | | | | | | | Fixes #8763: render bug: pure enums not handled correctly Fixes #8762: render bug: binary operators called with quotes rendered incorrectly FIxes #8761: render bug: inversion of operator priorities
* | Cosmetic: fix typo on TRIPLESTR_LIT (#8663)Iván Montes2018-08-211-1/+1
| |
* | WIP: disallow 'nil' for strings and seqsAndreas Rumpf2018-08-131-1/+2
| |
* | Render bug: if expression with statement list expression as condition (#8375)cooldome2018-07-211-0/+1
| | | | | | | | * Fixes #8348
* | Merge branch 'devel' into typedesc-reformsAndreas Rumpf2018-06-261-3/+25
|\ \
| * | nimpretty improvementsAndreas Rumpf2018-06-191-1/+1
| | |
| * | nimpretty: fixes pragma renderingAndreas Rumpf2018-06-171-1/+1
| | |
| * | nimpretty: more featuresAndreas Rumpf2018-06-161-2/+24
| | |
* | | Implement the `is` operator for the new static and typedesc type classesZahary Karadjov2018-06-161-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-26/+37
|/ /
* | nimpretty: first version that seems useful for others to test itAndreas Rumpf2018-06-161-0/+16
| |
* | more refactoringAndreas Rumpf2018-05-271-1/+1
| |
* | remove more global variables in the Nim compilerAndreas Rumpf2018-05-271-1/+1
| |
* | remove ast.emptyNode global; cleanup configuration.nimAraq2018-05-161-42/+50
| |
* | make tests green againAraq2018-05-141-1/+1
| |
* | fixes testament compilationAraq2018-05-141-4/+13
|\ \
| * | Backwards-compatible support for keyword arguments in the command syntaxZahary Karadjov2018-05-071-4/+13
| | |
* | | big refactoring: parser compiles againAndreas Rumpf2018-05-101-16/+27
|/ /
* | compiler refactoring, pass config around explicitlyAndreas Rumpf2018-05-051-8/+8
| |
* | warn about inconsistent spacing around binary operators; fixes #7582Andreas Rumpf2018-05-051-6/+2
| |
* | fixes #7582Andreas Rumpf2018-05-051-2/+3
| |
* | refactoring: make FileIndex a distinct type; make line information an ↵Andreas Rumpf2018-04-211-1/+1
| | | | | | | | uint16; fixes #7654
* | nimpretty: next stepsAraq2018-04-181-1/+7
| |
* | fixes #7610Andreas Rumpf2018-04-141-1/+1
| |
* | introduce nkTupleConstr AST node for unary tuple construction; breaking changeAndreas Rumpf2018-04-131-0/+6
| |
* | Fix parser bug with type classes (#7480)Oscar Nihlgård2018-04-061-0/+1
| |
* | added the 'x.p[:T]' notation for explicit generic instantiations in ↵Araq2018-04-061-14/+27
| | | | | | | | combination with the ddot calling syntax