Commit message (Collapse) | Author | Age | Files | Lines | |||||
---|---|---|---|---|---|---|---|---|---|
* | Destructors: more moves for tuples (#9808) | cooldome | 2018-11-27 | 1 | -1/+1 | ||||
| | |||||||||
* | added first version of a nimfind tool for the poor souls that don't have a ↵ | Andreas Rumpf | 2018-11-14 | 1 | -2/+2 | ||||
| | | | | good nimsuggest integretation | ||||||||
* | make Nim take roughly 100MB less RAM for bootstrapping via a new compiler ↵ | Andreas Rumpf | 2018-11-07 | 1 | -1/+4 | ||||
| | | | | switch -d:leanCompiler; useful for the Raberry PI | ||||||||
* | Change the order of compilation passes, transformation is made lazy at code ↵ | cooldome | 2018-10-18 | 1 | -1/+1 | ||||
| | | | | | | | | | | | | | | | gen (#8489) * Ast no transformation * Add getImplNoTransform to the macros module * progress on delaying transf * Fix methods tranformation * Fix lazy lambdalifting * fix create thread wrapper * transform for lambda lifting * improve getImplTransformed * Fix destructor tests * try to fix nimprof for linux | ||||||||
* | compiler: show name of instantiating context in error traces (#6763) (#9207) | xzfc | 2018-10-11 | 1 | -1/+1 | ||||
| | |||||||||
* | Make the registered passes local to the ModuleGraph (#9259) | LemonBoy | 2018-10-09 | 1 | -1/+1 | ||||
| | | | Closes #9068 | ||||||||
* | make tests green again | Andreas Rumpf | 2018-09-24 | 1 | -2/+10 | ||||
| | |||||||||
* | extended system.type/typeof to support an upcoming 'collect' macro that ↵ | Andreas Rumpf | 2018-09-11 | 1 | -4/+4 | ||||
| | | | | works much better than sugar.lc | ||||||||
* | change runnableExamples implementation; fixes #8641; fixes #7135; ↵ | Andreas Rumpf | 2018-09-02 | 1 | -23/+0 | ||||
| | | | | runnableExamples works for templates and generics | ||||||||
* | WIP: disallow 'nil' for strings and seqs | Andreas Rumpf | 2018-08-13 | 1 | -1/+1 | ||||
| | |||||||||
* | fixes merge conflict | Araq | 2018-08-07 | 1 | -1/+2 | ||||
|\ | |||||||||
| * | runnableExamples: keep (gitignored) generated foo_examples.nim for ↵ | Timothee Cour | 2018-08-07 | 1 | -1/+2 | ||||
| | | | | | | | | | | | | inspection even on success (#8544) | ||||||||
* | | use slashes instead of dots for paths | Andreas Rumpf | 2018-08-06discard """
file: "tstrutil.nim"
output: "ha/home/a1xyz/usr/bin"
"""
# test the new strutils module
import
strutils
proc testStrip() =
write(stdout, strip(" ha "))
proc main() =
testStrip()
for p in split("/home/a1:xyz:/usr/bin", {':'}):
write(stdout, p)
proc testDelete =
var s = "0123456789ABCDEFGH"
delete(s, 4, 5)
assert s == "01236789ABCDEFGH"
delete(s, s.len-1, s.len-1)
assert s == "01236789ABCDEFG"
delete(s, 0, 0)
assert s == "1236789ABCDEFG"
testDelete()
assert(insertSep($1000_000) == "1_000_000")
assert(insertSep($232) == "232")
assert(insertSep($12345, ',') == "12,345")
assert(insertSep($0) == "0")
assert(editDistance("prefix__hallo_suffix", "prefix__hallo_suffix") == 0)
assert(editDistance("prefix__hallo_suffix", "prefix__hallo_suffi1") == 1)
assert(editDistance("prefix__hallo_suffix", "prefix__HALLO_suffix") == 5)
assert(editDistance("prefix__hallo_suffix", "prefix__ha_suffix") == 3)
assert(editDistance("prefix__hallo_suffix", "prefix") == 14)
assert(editDistance("prefix__hallo_suffix", "suffix") == 14)
assert(editDistance("prefix__hallo_suffix", "prefix__hao_suffix") == 2)
main()
#OUT ha/home/a1xyz/usr/bin
| | |
| | ||||
* | | refactoring: remove idents.legacy global variable and pass the IdentCache ↵ | Andreas Rumpf | 2018-05-27 | 1 | -7/+7 | ||||
| | | | | | | | | around explicitly | ||||||||
* | | more refactoring | Andreas Rumpf | 2018-05-27 | 1 | -1/+1 | ||||
| | | |||||||||
* | | Merge branch 'devel' into araq-big-refactoring | Andreas Rumpf | 2018-05-27 | 1 | -0/+1 | ||||
|\| | |||||||||
| * | fix #7883; fix #7829 | Zahary Karadjov | 2018-05-26 | 1 | -0/+1 | ||||
| | | |||||||||
* | | remove more global variables in the Nim compiler | Andreas Rumpf | 2018-05-27 | 1 | -16/+16 | ||||
| | | |||||||||
* | | preparations of making compiler/msgs.nim free of global variables | Andreas Rumpf | 2018-05-17 | 1 | -1/+1 | ||||
| | | |||||||||
* | | remove ast.emptyNode global; cleanup configuration.nim | Araq | 2018-05-16 | 1 | -1/+1 | ||||
|/ | |||||||||
* | options.nim: no global variables anymore | Andreas Rumpf | 2018-05-13 | 1 | -5/+5 | ||||
| | |||||||||
* | sem pass compiles again | Andreas Rumpf | 2018-05-12 | 1 | -22/+22 | ||||
| | |||||||||
* | more modules compile again | Andreas Rumpf | 2018-05-12 | 1 | -13/+16 | ||||
| | |||||||||
* | more modules compile again | Andreas Rumpf | 2018-05-12 | 1 | -24/+27 | ||||
| | |||||||||
* | compiler refactoring, pass config around explicitly | Andreas Rumpf | 2018-05-05 | 1 | -3/+3 | ||||
| | |||||||||
* | fixes #7601, array construction of ptr generics (#7671) | andri lim | 2018-04-27 | 1 | -2/+3 | ||||
| | | | | | | * fixes #7601, array construction of ptr generics * add more test | ||||||||
* | allow setting template/macro recursive evaluation limits (#7652) | jcosborn | 2018-04-19 | 1 | -1/+1 | ||||
| | | | | | | | * allow setting template/macro recursive evaluation limits * revert setting template/macro eval limits set them to 1000 | ||||||||
* | introduce nkTupleConstr AST node for unary tuple construction; breaking change | Andreas Rumpf | 2018-04-13 | 1 | -1/+1 | ||||
| | |||||||||
* | symbol files: delay the emission of forwarded procs | Araq | 2018-02-21 | 1 | -0/+1 | ||||
| | |||||||||
* | symbol files: more progress | Araq | 2018-02-20 | 1 | -1/+2 | ||||
| | |||||||||
* | new .rod file implementation; part 1: writing of the file | Araq | 2018-02-17 | 1 | -1/+2 | ||||
| | |||||||||
* | fixes #6946 | Andreas Rumpf | 2018-02-05 | 1 | -5/+10 | ||||
| | |||||||||
* | preparations for language extensions: 'sink' and 'lent' types | Andreas Rumpf | 2018-01-07 | 1 | -2/+2 | ||||
| | |||||||||
* | symbol files: fixes the logic for multi-methods | Araq | 2018-01-03 | 1 | -0/+4 | ||||
| |