simple codepoint test

pull/31/head
Matthew Butterick 3 years ago
parent a49c932a54
commit b0b073d393

@ -1,5 +1,6 @@
#lang brag
start: "\101" ; A
| "\U0063" ; c
| "\u64" ; d
| "\x65" ; e
start: A c d e
A : "\101" ; A
c : "\U0063" ; c
d : "\u64" ; d
e : "\x65" ; e

@ -0,0 +1,6 @@
#lang racket/base
(require brag/examples/codepoints
rackunit)
(check-equal? (parse-to-datum "Acde") '(start (A "A") (c "c") (d "d") (e "e")))
Loading…
Cancel
Save