1
import M3._
2
3
assert(denest(List(ONE, ZERO, ALTs(List(ONE, CHAR('a')))))
4
== List(ONE, ONE, CHAR('a')))
5
assert(denest(List(ONE ~ ONE, ZERO, ZERO | ONE)) == List(ONE ~ ONE, ZERO, ONE))