Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Static[T] fixes (#7333) | zah | 2018-03-24 | 1 | -0/+32 |
| | | | | | | | | | | | * fix the usage of unresolved static[T] parameters in proc signatures * fix tsametype and tmacrogenerics * Allow creating composite type classes with concepts and using them in type signatures * Allow integers to be used in ident concatenations * Support using imported C++ generic types in proc signatures * fixes #7230 * closes #7379 * re-enable some metatype tests | ||||
* | Add ability for users to elide ':' or '=' when CLI authors pass a (#7297) | c-blake | 2018-03-08 | 1 | -0/+20 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add ability for users to elide ':' or '=' when CLI authors pass a non-empty partial symbol table. Behavior should be identical to the old behavior if empty partial symbol tables are passed. "Partialness" of the symbol table refers to the fact that one need only specify option keys that are toggles/booleans/do not take arguments, hence the "NoArg" suffixes in shortNoArg and longNoArg. commandLineParams() returns seq[TaintedString], so use that consistently in getopt() and initOptParser(seq[TaintedString]) dropping the taint at the quoting stage just as with the paramStr() logic. Fix capitalization inconsistency of cmdLongOption. Export OptParser.cmd and OptParser.pos so that, at least *in principle*, users of this API can handle "--" option processing termination or some "git-like" sub-command stop word with a separate option sub-syntax. { Eg., ``case p.key of "": echo "trailing non-option args: ", p.cmd[p.pos..^1]`` or ``case p.kind of cmdArgument: if p.key == "mysubcmd": ...``. } Really, searching for the last delimiter before p.pos is probably needed to frame the trailing text..Not the nicest API, but still possible with effort. * Make requested changes from string to seq[char] (see https://github.com/nim-lang/Nim/pull/7297) * Document new behavior and elaborate on some special cases. * NoArg => NoVal to be less ambiguous/more clear. * Add more documentation and an example snippet. * Tweak language. Clarify still using ':'/'=' is ok. * Add a test case for new NoVal behavior. | ||||
* | fixes #3985 | Araq | 2018-02-10 | 1 | -0/+10 |
| | |||||
* | make more tests green | Araq | 2018-02-10 | 5 | -5/+5 |
| | |||||
* | fixes #4220 | Araq | 2018-02-10 | 1 | -1/+21 |
| | |||||
* | make tests green again | Araq | 2017-12-15 | 1 | -13/+13 |
| | |||||
* | Improved collection-to-string behavior (#6825) | Fabian Keller | 2017-12-14 | 1 | -1/+1 |
| | |||||
* | make tests green again | Andreas Rumpf | 2017-11-21 | 1 | -12/+0 |
| | |||||
* | Move deprecated romans module from stdlib to Nimble package (#6660) | Lynn C. Rees | 2017-11-15 | 1 | -71/+0 |
| | |||||
* | make tests green again | Araq | 2017-11-01 | 1 | -1/+1 |
| | |||||
* | first implementation of package level types that allow forwarding across ↵ | Andreas Rumpf | 2017-10-28 | 1 | -6/+2 |
| | | | | module boundaries | ||||
* | make tests green again | Andreas Rumpf | 2017-10-10 | 1 | -1/+1 |
| | |||||
* | Merge branch 'stringify-array' of https://github.com/krux02/Nim into ↵ | Andreas Rumpf | 2017-10-09 | 1 | -2/+1 |
|\ | | | | | | | krux02-stringify-array | ||||
| * | removed newString proc again, reverted some unnecesary changes | Arne Döring | 2017-07-24 | 1 | -2/+1 |
| | | |||||
* | | make tests green again | Andreas Rumpf | 2017-10-01 | 1 | -11/+11 |
| | | |||||
* | | the parser finally parses 'echo {1,2}' as it should | Andreas Rumpf | 2017-09-30 | 5 | -10/+10 |
| | | |||||
* | | Remove expr/stmt (#5857) | Arne Döring | 2017-07-25 | 3 | -7/+4 |
|/ | |||||
* | Merge pull request #5952 from Parashurama/fix_parseopt | Varriount | 2017-06-13 | 1 | -0/+57 |
|\ | | | | | Fix parseopt custom arguments | ||||
| * | fixes parseopt/parseopt2 custom cmdline args. | Parashurama | 2017-06-06 | 1 | -0/+57 |
| | | |||||
* | | restrict casting for closure. (#5948); fixes #5742 | Parashurama | 2017-06-07 | 1 | -0/+23 |
|/ | | | | | | | | | * restrict casting for closure. This commit forbid casting a closure to anything other than another closure. use rawEnv/rawProc to access underlaying pointers. * better error message for closure cast * fixes #5742 | ||||
* | another attempt to get travis green | Andreas Rumpf | 2017-03-29 | 1 | -13/+0 |
| | |||||
* | Fixes to support Dragonfly BSD. (#5552) | Eugene Kabanov | 2017-03-17 | 1 | -0/+2 |
| | | | | | | | | | * Fix kqueue.nim and ansi_c.nim to support dragonfly. * Fix ioselectors.nim, threads.nim to support dragonfly. * Fix deprecated dealloc call in tioselectors.nim. * Fix tfsmonitor.nim test to run only on Linux. * Fix osproc.nim return wrong exit codes. * Fix getAppFilename() for dragonfly. * Fix proper exit code handling. | ||||
* | big compiler refactoring; avoid globals for multi method dispatcher generation | Andreas Rumpf | 2017-02-22 | 1 | -5/+5 |
| | |||||
* | make tests on Windows green under --pedantic | Araq | 2017-02-02 | 1 | -4/+3 |
| | |||||
* | make tests green | Araq | 2016-12-18 | 1 | -2/+2 |
| | |||||
* | Added deques module, deprecating queues | Ruslan Mustakov | 2016-11-24 | 1 | -4/+4 |
| | |||||
* | fixed regressions | Andreas Rumpf | 2016-03-29 | 1 | -13/+13 |
| | |||||
* | make tests green again | Andreas Rumpf | 2016-02-29 | 1 | -1/+1 |
| | |||||
* | use 'using' instead of 'sig' keyword; cleans up new features a bit | Andreas Rumpf | 2016-02-29 | 1 | -0/+39 |
| | |||||
* | Fix a few deprecation warnings | def | 2016-01-25 | 4 | -8/+0 |
| | |||||
* | JS: Corrected shift operators. Made casting between ints behave like C does. | Yuriy Glukhov | 2016-01-22 | 1 | -6/+33 |
| | |||||
* | Unsigned arith corrected for JS | Yuriy Glukhov | 2016-01-21 | 1 | -10/+24 |
| | |||||
* | Closes: #3611 | Federico Ceratto | 2015-12-02 | 1 | -0/+12 |
| | |||||
* | Merge branch 'mget' of https://github.com/def-/Nim into def--mget | Araq | 2015-10-13 | 1 | -2/+1 |
|\ | | | | | | | | | | | | | | | | | | | Conflicts: lib/pure/collections/critbits.nim lib/pure/collections/tables.nim lib/pure/xmltree.nim lib/system/sets.nim tests/collections/ttables.nim tests/collections/ttablesref.nim | ||||
| * | Rename mget to `[]` | def | 2015-03-31 | 1 | -5/+4 |
| | | | | | | | | | | | | | | | | | | - In sets, tables, strtabs, critbits, xmltree - This uses the new var parameter overloading - mget variants still exist, but are deprecated in favor of `[]` - Includes tests and fixed tests and usages of mget - The non-var `[]` now throws an exception instead of returning binary 0 or an empty string | ||||
* | | add tfile/tline assertions for template expansion file/line | Aman Gupta | 2015-10-06 | 1 | -5/+2 |
| | | |||||
* | | minor testsuite cleanup | Araq | 2015-09-10 | 1 | -1/+1 |
| | | |||||
* | | tests: Trim .nim files trailing whitespace | Adam Strzelecki | 2015-09-04 | 41 | -355/+355 |
| | | | | | | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} + | ||||
* | | renamed writeln to writeLine in tests | patrick dw | 2015-06-19 | 7 | -148/+148 |
| | | |||||
* | | Non-base10 overflow allowed if bit-stable. Tests. | Oscar Campbell | 2015-06-12 | 1 | -0/+68 |
| | | |||||
* | | s/procedure/routine/ in tests. | Dominik Picheta | 2015-06-05 | 2 | -2/+2 |
| | | |||||
* | | Fixes #2584 | Dominik Picheta | 2015-06-04 | 2 | -2/+2 |
| | | | | | | | | | | Better compiler errors for accessing undeclared fields, calling undeclared procedures and procedure fields. | ||||
* | | fixes #2550 | Araq | 2015-04-22 | 1 | -0/+14 |
| | | |||||
* | | fixes #2427 | Araq | 2015-04-06 | 1 | -0/+14 |
|/ | |||||
* | doc updates; fixes 'inc' for 'char' | Araq | 2015-03-29 | 4 | -102/+10 |
| | |||||
* | Use `^` instead of `-` in slices | def | 2015-03-28 | 1 | -3/+3 |
| | |||||
* | codegen doesn't produce line tracing commands anymore; fixes #1344 | Araq | 2015-03-21 | 1 | -0/+43 |
| | |||||
* | Fix tests some more | def | 2015-03-17 | 2 | -2/+2 |
| | |||||
* | fixes --gc:none regression; made some tests green | Araq | 2015-03-10 | 2 | -5/+4 |
| | |||||
* | add parser combinator test; uses multiple tuples/generics features | Max Zerzouri | 2015-03-07 | 2 | -0/+160 |
| |