add test for start & atok tokens
parent
2ad5296567
commit
52f1f4bce2
@ -0,0 +1,3 @@
|
|||||||
|
#lang brag
|
||||||
|
|
||||||
|
top : ("start" | "atok")+
|
@ -0,0 +1,14 @@
|
|||||||
|
#lang racket/base
|
||||||
|
|
||||||
|
(require brag/examples/start-and-atok
|
||||||
|
brag/support
|
||||||
|
rackunit)
|
||||||
|
|
||||||
|
;; make sure that "start" and "atok" work as terminals.
|
||||||
|
|
||||||
|
(check-equal? (parse-to-datum (list "start")) '(top "start"))
|
||||||
|
(check-equal? (parse-to-datum (list "atok")) '(top "atok"))
|
||||||
|
(check-equal? (parse-to-datum (list "start" "atok")) '(top "start" "atok"))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue