c2nim compiles again [#9 state:resolved]; better error message for named parameters

This commit is contained in:
Araq 2011-01-09 19:02:06 +01:00
commit dbc5048a9a
8 changed files with 25 additions and 3 deletions

View file

@ -0,0 +1,8 @@
import pegs
discard parsePeg(
pattern = "input",
filename = "filename",
line = 1,
col = 23)

View file

@ -15,6 +15,7 @@ tinvalidnewseq.nim;10;type mismatch: got (array[0..6, string], int)
tinvwhen.nim;6;invalid indentation
titer4.nim;2;iterator within for loop context expected
tmethod.nim;2;'method' needs a parameter that has an object type
tnamedparams.nim;3; Error: type mismatch: got (input: string, filename: string, line: int, col: int)
tnamspc.nim;5;undeclared identifier: 'global'
tnoop.nim;6;expression 'a()' cannot be called
tnot.nim;9;type mismatch

1 t99bott.nim 20 constant expression expected
15 tinvwhen.nim 6 invalid indentation
16 titer4.nim 2 iterator within for loop context expected
17 tmethod.nim 2 'method' needs a parameter that has an object type
18 tnamedparams.nim 3 Error: type mismatch: got (input: string, filename: string, line: int, col: int)
19 tnamspc.nim 5 undeclared identifier: 'global'
20 tnoop.nim 6 expression 'a()' cannot be called
21 tnot.nim 9 type mismatch

View file

@ -0,0 +1,8 @@
import pegs
discard parsePeg(
input = "input",
filename = "filename",
line = 1,
col = 23)

View file

@ -1,7 +1,7 @@
#
#
# Nimrod Tester
# (c) Copyright 2010 Andreas Rumpf
# (c) Copyright 2011 Andreas Rumpf
#
# See the file "copying.txt", included in this
# distribution, for details about the copyright.