author | Christian Urban <urbanc@in.tum.de> |
Sat, 16 Jun 2018 20:55:51 +0100 | |
changeset 185 | 5ab45f3fee1c |
parent 168 | 03530cb87cd0 |
permissions | -rw-r--r-- |
import CW8a._ assert(der('a', ZERO | ONE) == (ZERO | ZERO)) assert(der('a', (CHAR('a') | ONE) ~ CHAR('a')) == ALT((ONE | ZERO) ~ CHAR('a'), ONE)) assert(der('a', (CHAR('a') | CHAR('a')) ~ CHAR('a')) == (ONE | ONE) ~ CHAR('a')) assert(der('a', STAR(CHAR('a'))) == (ONE ~ STAR(CHAR('a')))) assert(der('b', STAR(CHAR('a'))) == (ZERO ~ STAR(CHAR('a'))))