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.
23 lines
455 B
Racket
23 lines
455 B
Racket
9 years ago
|
#lang brag
|
||
9 years ago
|
|
||
9 years ago
|
tst-program : load-expr output-file-expr compare-to-expr output-list-expr /";" test-expr*
|
||
9 years ago
|
|
||
9 years ago
|
load-expr : /"load" ID /","
|
||
9 years ago
|
|
||
9 years ago
|
output-file-expr : /"output-file" ID /","
|
||
9 years ago
|
|
||
9 years ago
|
compare-to-expr : /"compare-to" ID /","
|
||
9 years ago
|
|
||
9 years ago
|
output-list-expr : /"output-list" column [column]+
|
||
9 years ago
|
|
||
9 years ago
|
/column : ID FORMAT-STRING
|
||
9 years ago
|
|
||
9 years ago
|
@test-expr : step-expr+ /";"
|
||
9 years ago
|
|
||
9 years ago
|
@step-expr : (set-expr | eval-expr | output-expr) [/","]
|
||
|
|
||
|
set-expr : /"set" ID VAL
|
||
9 years ago
|
|
||
9 years ago
|
eval-expr : /"eval"
|
||
9 years ago
|
|
||
9 years ago
|
output-expr : /"output"
|