testing4/re_test2.scala
author Christian Urban <urbanc@in.tum.de>
Thu, 29 Nov 2018 17:15:11 +0000
changeset 221 9e7897f25e13
parent 215 testing4/re1b_test.scala@438459a8e48b
child 300 72688efdf17c
permissions -rw-r--r--
updated



assert(der('a', ZERO | ONE) == (ZERO | ZERO))
assert(der('a', (CHAR('a') | ONE) ~ CHAR('a')) == ALT((ONE | ZERO) ~ CHAR('a'), ONE))
assert(der('a', STAR(CHAR('a'))) == (ONE ~ STAR(CHAR('a'))))
assert(der('b', STAR(CHAR('a'))) == (ZERO ~ STAR(CHAR('a'))))