main_testing3/re_test4.scala
changeset 475 59e005dcf163
parent 433 6af86ba1208f
equal deleted inserted replaced
474:b528d1d3d3c3 475:59e005dcf163
     1 import M3._
       
     2 
     1 
     3 assert(denest(List(ONE, ZERO, ALTs(List(ONE, CHAR('a'))))) 
     2 def urbanmain() = {
     4    == List(ONE, ONE, CHAR('a')))
     3 
     5 assert(denest(List(ONE ~ ONE, ZERO, ZERO | ONE)) == List(ONE ~ ONE, ZERO, ONE))
     4   import M3._
       
     5 
       
     6   assert(denest(List(ONE, ZERO, ALTs(List(ONE, CHAR('a'))))) == List(ONE, ONE, CHAR('a')))
       
     7   assert(denest(List(ONE ~ ONE, ZERO, ZERO | ONE)) == List(ONE ~ ONE, ZERO, ONE))
       
     8 
       
     9 
       
    10 }