View rackunit-loc-test.rkt
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) |
View ellipsis-parsing.rkt
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 ...))) |
View meta-not-found.rkt
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))) |
View gist:c6c8e49eb1d887b2dbf1
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 |
View gist:5716842
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))))])) |