|
|
@ -42,7 +42,7 @@
|
|
|
|
#|
|
|
|
|
#|
|
|
|
|
MB: `rules` still carries 'hide syntax property
|
|
|
|
MB: `rules` still carries 'hide syntax property
|
|
|
|
|#
|
|
|
|
|#
|
|
|
|
#;(report flattened-rules)
|
|
|
|
#;(report rules)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#|
|
|
|
|
#|
|
|
|
@ -54,7 +54,7 @@
|
|
|
|
(define generated-rule-codes (map flat-rule->yacc-rule flattened-rules))
|
|
|
|
(define generated-rule-codes (map flat-rule->yacc-rule flattened-rules))
|
|
|
|
|
|
|
|
|
|
|
|
#|
|
|
|
|
#|
|
|
|
|
MB: `generated-rule-codes` loses the 'hide syntax property
|
|
|
|
MB: `generated-rule-codes` loses the 'hide syntax property (but not for lhs-ids)
|
|
|
|
|#
|
|
|
|
|#
|
|
|
|
#;(report generated-rule-codes)
|
|
|
|
#;(report generated-rule-codes)
|
|
|
|
|
|
|
|
|
|
|
@ -179,6 +179,7 @@
|
|
|
|
;; stx :== (name (U tokens rule-stx) ...)
|
|
|
|
;; stx :== (name (U tokens rule-stx) ...)
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
(define (flat-rule->yacc-rule a-flat-rule)
|
|
|
|
(define (flat-rule->yacc-rule a-flat-rule)
|
|
|
|
|
|
|
|
;; lhs-ids still carry 'hide property on #'name field
|
|
|
|
#;(report a-flat-rule)
|
|
|
|
#;(report a-flat-rule)
|
|
|
|
(syntax-case a-flat-rule ()
|
|
|
|
(syntax-case a-flat-rule ()
|
|
|
|
[(rule-type origin name clauses ...)
|
|
|
|
[(rule-type origin name clauses ...)
|
|
|
@ -251,7 +252,8 @@
|
|
|
|
[(translated-action ...) translated-actions])
|
|
|
|
[(translated-action ...) translated-actions])
|
|
|
|
#`[(translated-pattern ...)
|
|
|
|
#`[(translated-pattern ...)
|
|
|
|
(rule-components->syntax '#,rule-name/false translated-action ...
|
|
|
|
(rule-components->syntax '#,rule-name/false translated-action ...
|
|
|
|
#:srcloc #,whole-rule-loc)]))
|
|
|
|
#:srcloc #,whole-rule-loc
|
|
|
|
|
|
|
|
#:splice? #,(syntax-property rule-name/false 'hide))]))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|