From c5a1126754beef7851619594670b4621953fe918 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Sat, 4 Feb 2017 20:23:05 -0800 Subject: [PATCH] new sample grammar --- brag/brag/examples/add-mult.rkt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 brag/brag/examples/add-mult.rkt diff --git a/brag/brag/examples/add-mult.rkt b/brag/brag/examples/add-mult.rkt new file mode 100755 index 0000000..bde2ac5 --- /dev/null +++ b/brag/brag/examples/add-mult.rkt @@ -0,0 +1,7 @@ +#lang brag + +expr : term (/'+' term)* +@term : factor (/'*' @factor)* +factor : ("0" | "1" | "2" | "3" + | "4" | "5" | "6" | "7" + | "8" | "9")+