From 65e19f8feedc520034187f08014d4e92b281918f Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Wed, 22 Mar 2017 10:35:48 -0400 Subject: Convert long rules to grammars --- .../data/sample-grammars/long-data/hex-digit.gram | 34 ++++++++++++---------- 1 file changed, 18 insertions(+), 16 deletions(-) (limited to 'RGens/data/sample-grammars/long-data/hex-digit.gram') diff --git a/RGens/data/sample-grammars/long-data/hex-digit.gram b/RGens/data/sample-grammars/long-data/hex-digit.gram index 9d0fa5e..556f011 100644 --- a/RGens/data/sample-grammars/long-data/hex-digit.gram +++ b/RGens/data/sample-grammars/long-data/hex-digit.gram @@ -1,16 +1,18 @@ -0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -a -b -c -d -e -f +[hex-digit] → 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + a + b + c + d + e + f + +pragma initial-rule [hex-digit] -- cgit v1.2.3