change rule name

pull/10/head
Matthew Butterick 7 years ago
parent 42d3eaac68
commit e9c10a236e

@ -8,7 +8,7 @@
([((b-line NUM STMT ...) ...) #'(LINE ...)]
[(LINE-FUNC ...) (prefix-id "line-" #'(NUM ...))]
[(VAR-ID ...) (find-property 'b-id #'(LINE ...))]
[(REQ-SPEC ...) (find-property 'b-import-spec #'(LINE ...))]
[(REQ-SPEC ...) (find-property 'b-import-name #'(LINE ...))]
[((SHELL-ID SHELL-VAL) ...)
(for/list ([(val idx) (in-indexed (current-command-line-arguments))])
(list (suffix-id #'arg idx #:context caller-stx) val))])

@ -21,8 +21,8 @@ b-return : /"return"
b-for : /"for" b-id /"=" b-expr /"to" b-expr [/"step" b-expr]
b-next : /"next" b-id
b-def : /"def" b-id /"(" ID [/"," ID]* /")" /"=" b-expr
b-import : /"import" b-import-spec
@b-import-spec : (ID | STRING)
b-import : /"import" b-import-name
@b-import-name : (ID | STRING)
b-expr : b-or-expr
b-or-expr : [b-or-expr "or"] b-and-expr
b-and-expr : [b-and-expr "and"] b-not-expr

Loading…
Cancel
Save