This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(require | |
rackunit | |
(for-syntax syntax/parse)) | |
(define-simple-check (check-foo? actual) | |
(equal? actual 'foo)) | |
(define-syntax (test-foo? stx) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(require nanopass) | |
(define-language L | |
(terminals | |
(number (n)) | |
(symbol (x))) | |
(Exp (e) (n ... x ...))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(require nanopass) | |
(define-language L | |
(terminals | |
(number (n))) | |
(Exp (e) | |
n | |
(+ e e))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[blackrock components]% tcp-read: error reading | |
system error: Connection timed out; errno=110 | |
context...: | |
/home/schu/projects/racket-irc/irc/main.rkt:41:12: loop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(require redex) | |
(define (apply-reduction-relation*/random rel t) | |
(define results (apply-reduction-relation rel t)) | |
(cond [(null? results) (list t)] | |
[else (apply-reduction-relation*/random rel (list-ref results (random (length results))))])) |