testing4/re_test2.scala
author Christian Urban <urbanc@in.tum.de>
Thu, 31 Oct 2019 10:50:05 +0000
changeset 297 eab44dbee855
parent 221 9e7897f25e13
child 300 72688efdf17c
permissions -rw-r--r--
updated jars



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'))))