author | Christian Urban <urbanc@in.tum.de> |
Thu, 06 Dec 2018 21:49:43 +0000 | |
changeset 236 | e461b5325b5e |
parent 227 | b5f3e814a710 |
permissions | -rw-r--r-- |
168 | 1 |
|
2 |
import CW8a._ |
|
3 |
||
4 |
assert(der('a', ZERO | ONE) == (ZERO | ZERO)) |
|
5 |
assert(der('a', (CHAR('a') | ONE) ~ CHAR('a')) == ALT((ONE | ZERO) ~ CHAR('a'), ONE)) |
|
6 |
assert(der('a', (CHAR('a') | CHAR('a')) ~ CHAR('a')) == (ONE | ONE) ~ CHAR('a')) |
|
7 |
assert(der('a', STAR(CHAR('a'))) == (ONE ~ STAR(CHAR('a')))) |
|
8 |
assert(der('b', STAR(CHAR('a'))) == (ZERO ~ STAR(CHAR('a')))) |