You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
286 B
Racket
17 lines
286 B
Racket
#lang ragg
|
|
|
|
chip-program : "CHIP" ID "{" pin-spec pin-spec part-spec "}"
|
|
|
|
pin-spec : ("IN" | "OUT") pin-list ";"
|
|
|
|
pin-list : ID comma-id*
|
|
|
|
comma-id : "," ID
|
|
|
|
part-spec : "PARTS:" part-list
|
|
|
|
part-list : part+
|
|
|
|
part : ID "(" ID "=" ID comma-id-pair* ")" ";"
|
|
|
|
comma-id-pair : "," ID "=" ID |