make some tests green

This commit is contained in:
Zahary Karadjov
2014-03-16 18:34:37 +02:00
parent f0953db3ba
commit 49b0440c47
13 changed files with 45 additions and 30 deletions

View File

@@ -72,7 +72,7 @@ type
rule: TNode ## the rule that the symbol refers to
TNode {.final, shallow.} = object
case kind: TPegKind
of pkEmpty..pkWhitespace: discard
of pkEmpty..pkWhitespace: nil
of pkTerminal, pkTerminalIgnoreCase, pkTerminalIgnoreStyle: term: string
of pkChar, pkGreedyRepChar: ch: char
of pkCharChoice, pkGreedyRepSet: charChoice: ref set[char]