16 lines
421 B
Racket
16 lines
421 B
Racket
#lang racket/base
|
|
;; State Change Notifications, and assorted protocol constructors
|
|
|
|
(provide (struct-out scn))
|
|
|
|
(require racket/set)
|
|
(require racket/match)
|
|
(require "../trie.rkt")
|
|
(require "../pretty.rkt")
|
|
|
|
;; State Change Notifications
|
|
(struct scn (trie) #:transparent
|
|
#:methods gen:syndicate-pretty-printable
|
|
[(define (syndicate-pretty-print d [p (current-output-port)])
|
|
(pretty-print-trie (scn-trie d) p))])
|