PasteRack.org | ||
Paste # 12911 | ||
2015-02-28 20:37:23 | ||
Fork as a new paste. | ||
Paste viewed 69 times. | ||
Tweet | ||
Embed: | ||
#lang racket (define-for-syntax (non-term->non-terminal stx) (syntax-parse stx (non-term:non-term (non-terminal (attribute non-term.name) (for/list ([i (in-list (attribute non-term.alts))]) i) (for/list ([i (in-list (attribute non-term.productions))]) i)))))