diff --git a/beautiful-racket/br/demo/hdl/parser.rkt b/beautiful-racket/br/demo/hdl/parser.rkt index 5b22dd9..873e251 100644 --- a/beautiful-racket/br/demo/hdl/parser.rkt +++ b/beautiful-racket/br/demo/hdl/parser.rkt @@ -20,9 +20,9 @@ part : partname /"(" pin-val-pair [/"," pin-val-pair]* /")" /";" /pin-val-pair : ID [/"[" bus-range /"]"] /"=" pin-val -@bus-range : (NUMBER | BINARY-NUMBER) [/"." /"." (NUMBER | BINARY-NUMBER)] +@bus-range : NUMBER [/"." /"." NUMBER] -@pin-val : ID +@pin-val : ID [/"[" bus-range /"]"] | BINARY-NUMBER | TRUE | FALSE