author | Christian Urban <christian.urban@kcl.ac.uk> |
Sun, 15 Sep 2024 12:57:59 +0100 | |
changeset 493 | 244df77507c2 |
parent 475 | 59e005dcf163 |
permissions | -rw-r--r-- |
475 | 1 |
|
2 |
def urbanmain() = { |
|
3 |
||
4 |
import M3._ |
|
5 |
val EVIL_urban = SEQ(STAR(STAR(CHAR('a'))), CHAR('b')) |
|
153 | 6 |
|
475 | 7 |
assert(size(der('a', der('a', EVIL_urban))) == 36) |
8 |
assert(size(der('a', der('a', der('a', EVIL_urban)))) == 83) |
|
153 | 9 |
|
475 | 10 |
assert(size(ders("aaaaaa".toList, EVIL_urban)) == 7) |
11 |
assert(size(ders(("a" * 50).toList, EVIL_urban)) == 7) |
|
12 |
} |