From 7617fbb94da3d1f84427caf1a6d9bdf1661cfd35 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Thu, 19 May 2016 18:20:49 -0700 Subject: [PATCH] adjust parser --- beautiful-racket/br/demo/hdl/parser.rkt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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