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.
21 lines
454 B
Racket
21 lines
454 B
Racket
#lang racket/base
|
|
|
|
(module+ test
|
|
|
|
(require yaragg/examples/wordy
|
|
yaragg/support
|
|
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 "세계"))))
|