main_marking3/re_test4.scala
author Christian Urban <christian.urban@kcl.ac.uk>
Sat, 11 Mar 2023 22:01:53 +0000
changeset 463 0315d9983cd0
parent 424 daf561a83ba6
permissions -rw-r--r--
updated

import M3._

assert(denest(List(ONE, ZERO, ALTs(List(ONE, CHAR('a'))))) 
   == List(ONE, ONE, CHAR('a')))
assert(denest(List(ONE ~ ONE, ZERO, ZERO | ONE)) == List(ONE ~ ONE, ZERO, ONE))