From 0b06adf9f460b7492bba71f18f7eb716e381af67 Mon Sep 17 00:00:00 2001 From: adam Date: Mon, 26 Mar 2007 01:54:34 -0400 Subject: [PATCH 1/1] update testcase grammar darcs-hash:20070326055434-5007d-3f58e73e6d0b9e91f6d179127b77b2bc92df6210.gz --- tests/testcase.g | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/tests/testcase.g b/tests/testcase.g index 2491600..35a36f1 100644 --- a/tests/testcase.g +++ b/tests/testcase.g @@ -1,9 +1,12 @@ #import meta.g as grammar +s = ws! (TestCases:: TestCase */ ws) ws! +Input = "input" grammar.Quoted ";" /ws +Output = "output" grammar.Quoted ";" /ws +Outputs:: = Output */ ws +TestCase:: = "testcase" grammar.Quoted "{" + Input + Outputs + (SubGrammar:: grammar.Grammar) + "}" /ws ws = grammar.ws -ts = ts:: ws! tests ws! -tests = test */ ws -test = tca:: "testcase" "{" input (o::(output +/ ws)) (grammaro::grammar.Grammar) "}" /ws - | tcb:: "testcase" "{" input (grammaro::grammar.Grammar) "}" /ws -output = "output" grammar.Quoted ";" /ws -input = "input" grammar.Quoted ";" /ws -- 1.7.10.4