non-nil AST; continue after errors for IDE support

This commit is contained in:
Araq 2011-02-12 19:24:20 +01:00
commit 5b28d08203
84 changed files with 678 additions and 722 deletions

0
tests/accept/compile/tgenericvariant.nim Normal file → Executable file
View file

0
tests/accept/compile/tnamedparams.nim Normal file → Executable file
View file

0
tests/accept/compile/toop.nim Normal file → Executable file
View file

View file

@ -22,7 +22,7 @@ tcopy.nim;TEMP=C:\Programs\xyz\bin
tcountup.nim;0123456789
tcurrncy.nim;25
temit.nim;509
tenumhole;my value A1my value Bconc2valueCabc4abc
tenumhole.nim;my value A1my value Bconc2valueCabc4abc
texcsub.nim;caught!
texplicitgeneric1.nim;Key: 12 value: 12Key: 13 value: 13 Key: A value: 12 Key: B value: 13
tfinally.nim;came here 3
@ -47,7 +47,7 @@ tmultim1.nim;7
tmultim2.nim;collide: unit, thing collide: unit, thing collide: thing, unit
tmultim3.nim;Hi derived!
tmultim4.nim;hello
tnamedenumfields;my value A0my value Bconc1valueCabc3abc
tnamedenumfields.nim;my value A0my value Bconc1valueCabc3abc
tnestif.nim;i == 2
tnestprc.nim;10
toop1.nim;34[]o 5

1 tack.nim 125
22 tcountup.nim 0123456789
23 tcurrncy.nim 25
24 temit.nim 509
25 tenumhole tenumhole.nim my value A1my value Bconc2valueCabc4abc
26 texcsub.nim caught!
27 texplicitgeneric1.nim Key: 12 value: 12Key: 13 value: 13 Key: A value: 12 Key: B value: 13
28 tfinally.nim came here 3
47 tmultim2.nim collide: unit, thing collide: unit, thing collide: thing, unit
48 tmultim3.nim Hi derived!
49 tmultim4.nim hello
50 tnamedenumfields tnamedenumfields.nim my value A0my value Bconc1valueCabc3abc
51 tnestif.nim i == 2
52 tnestprc.nim 10
53 toop1.nim 34[]o 5

0
tests/accept/run/tarraycons.nim Normal file → Executable file
View file

0
tests/accept/run/tcountup.nim Normal file → Executable file
View file

0
tests/accept/run/temit.nim Normal file → Executable file
View file

0
tests/accept/run/tenumhole.nim Normal file → Executable file
View file

0
tests/accept/run/texcsub.nim Normal file → Executable file
View file

0
tests/accept/run/tfloat3.nim Normal file → Executable file
View file

0
tests/accept/run/titer6.nim Normal file → Executable file
View file

View file

@ -22,7 +22,7 @@ proc test(a, b: TThing) {.inline.} =
var
a: TThing
b, c: TUnit
collide(b, c) # ambiguous unit, thing or thing, unit? -> prefer unit, thing!
collide(b, c) # ambiguous (unit, thing) or (thing, unit)? -> prefer unit, thing!
test(b, c)
collide(a, b)
#OUT collide: unit, thing collide: unit, thing collide: thing, unit

0
tests/accept/run/tmultim4.nim Normal file → Executable file
View file

0
tests/accept/run/tnamedenumfields.nim Normal file → Executable file
View file

0
tests/accept/run/toprprec.nim Normal file → Executable file
View file

0
tests/gc/tthreads.nim Normal file → Executable file
View file

0
tests/reject/tarraycons.nim Normal file → Executable file
View file

0
tests/reject/tmethod.nim Normal file → Executable file
View file

0
tests/reject/tnamedparams.nim Normal file → Executable file
View file

0
tests/reject/twrongtupleaccess.nim Normal file → Executable file
View file

0
tests/testdata/jsontest2.json vendored Normal file → Executable file
View file