the parser finally parses 'echo {1,2}' as it should

This commit is contained in:
Andreas Rumpf 2017-09-30 21:35:30 +02:00
commit ddc131cf07
18 changed files with 26 additions and 38 deletions

View file

@ -1,6 +1,6 @@
# Test a submodule
#type
# TStringArr = array [0.. *] of string
# TStringArr = array[0.. *] of string
proc exportme* = discard

View file

@ -9,7 +9,7 @@ type
str: string
le, ri: PNode
TStressTest = ref array [0..45, array [1..45, TNode]]
TStressTest = ref array[0..45, array[1..45, TNode]]
proc finalizer(n: PNode) =
write(stdout, n.data)

View file

@ -13,16 +13,16 @@ type
kind: TRadixNodeKind
TRadixNodeLinear = object of TRadixNode
len: int8
keys: array [0..31, int8]
vals: array [0..31, PRadixNode]
keys: array[0..31, int8]
vals: array[0..31, PRadixNode]
TRadixNodeFull = object of TRadixNode
b: array [0..255, PRadixNode]
b: array[0..255, PRadixNode]
TRadixNodeLeafBits = object of TRadixNode
b: array [0..7, int]
b: array[0..7, int]
TRadixNodeLeafLinear = object of TRadixNode
len: int8
keys: array [0..31, int8]
keys: array[0..31, int8]
var
root: PRadixNode

View file

@ -1,12 +1,12 @@
var
x: array [0..2, int]
x: array[0..2, int]
x = [0, 1, 2]
type
TStringDesc {.final.} = object
len, space: int # len and space without counting the terminating zero
data: array [0..0, char] # for the '\0' character
data: array[0..0, char] # for the '\0' character
var
emptyString {.exportc: "emptyString".}: TStringDesc

View file

@ -8,7 +8,7 @@ import
strutils
type
TBuffer = array [0..10, int8]
TBuffer = array[0..10, int8]
proc toVarNum(x: int32, b: var TBuffer) =
# encoding: first bit indicates end of number (0 if at end)