475
|
1 |
|
|
2 |
|
|
3 |
def urbanmain() = {
|
|
4 |
import M3._
|
221
|
5 |
|
475
|
6 |
assert(nullable(ZERO) == false)
|
|
7 |
assert(nullable(ONE) == true)
|
|
8 |
assert(nullable(CHAR('a')) == false)
|
|
9 |
assert(nullable(ZERO | ONE) == true)
|
|
10 |
assert(nullable(ZERO | CHAR('a')) == false)
|
|
11 |
assert(nullable(ONE ~ ONE) == true)
|
|
12 |
assert(nullable(ONE ~ CHAR('a')) == false)
|
|
13 |
assert(nullable(STAR(ZERO)) == true)
|
|
14 |
assert(nullable(ALTs(List(ONE, CHAR('a'), ZERO))) == true)
|
|
15 |
assert(nullable(SEQs(List(ONE, ALTs(List(ONE, CHAR('a'), ZERO)), STAR(ZERO)))) == true)
|
|
16 |
}
|