take account of hide property in rule flattening (fixes #8)
parent
cf505f2995
commit
c85b0e5cc9
@ -0,0 +1,4 @@
|
||||
#lang brag
|
||||
top : expr (/"," expr)*
|
||||
expr : "x" | list
|
||||
list : "(" expr ("," expr)* ")"
|
@ -0,0 +1,9 @@
|
||||
#lang racket/base
|
||||
(require brag/examples/cutter
|
||||
brag/support
|
||||
rackunit)
|
||||
|
||||
;; related to rule-flattening problem
|
||||
(check-equal?
|
||||
(parse-to-datum (list "(" "x" "," "x" ")"))
|
||||
'(top (expr (list "(" (expr "x") "," (expr "x") ")"))))
|
Loading…
Reference in New Issue