adjust parser

pull/2/head
Matthew Butterick 9 years ago
parent 6a351e1f0f
commit 7617fbb94d

@ -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

Loading…
Cancel
Save