You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
431 B
Racket
19 lines
431 B
Racket
8 years ago
|
#lang racket/base
|
||
3 years ago
|
(require yaragg/examples/wordy
|
||
|
yaragg/support
|
||
8 years ago
|
rackunit)
|
||
|
|
||
|
(check-equal?
|
||
|
(syntax->datum
|
||
|
(parse (list "hello" "world")))
|
||
|
'(sentence (verb (greeting "hello")) (optional-adjective) (object "world")))
|
||
|
|
||
|
|
||
|
|
||
|
(check-equal?
|
||
|
(syntax->datum
|
||
|
(parse (list "hola" "frumpy" (token 'WORLD "세계"))))
|
||
|
|
||
|
'(sentence (verb (greeting "hola")) (optional-adjective "frumpy") (object "세계")))
|
||
|
|