curly tests
parent
7bf128c0cd
commit
54fb498c63
@ -1,7 +1,8 @@
|
||||
#lang brag
|
||||
;; test the curly quantifier
|
||||
start : a-rule | b-rule | c-rule | d-rule
|
||||
start : a-rule | b-rule | c-rule | d-rule | e-rule
|
||||
a-rule : "a"{2} ; exactly 2
|
||||
b-rule : "b"{,2} ; up to 2
|
||||
c-rule : "c"{2,} ; 2 or more
|
||||
d-rule : "d"{2,3} ; 2 or 3
|
||||
e-rule : "e"{} ; 0 or more
|
Loading…
Reference in New Issue