main_marking3/re_test2.scala
changeset 424 daf561a83ba6
parent 390 175a950470a9
child 463 0315d9983cd0
equal deleted inserted replaced
423:e9d14d58be3c 424:daf561a83ba6
     1 import CW8c._
     1 import M3._
     2 
     2 
     3 assert(der('a', ZERO | ONE) == (ZERO | ZERO))
     3 assert(der('a', ZERO | ONE) == (ZERO | ZERO))
     4 assert(der('a', (CHAR('a') | ONE) ~ CHAR('a')) == ALT((ONE | ZERO) ~ CHAR('a'), ONE))
     4 assert(der('a', (CHAR('a') | ONE) ~ CHAR('a')) == ALT((ONE | ZERO) ~ CHAR('a'), ONE))
     5 assert(der('a', (CHAR('a') | CHAR('a')) ~ CHAR('a')) == (ONE | ONE) ~ CHAR('a'))
     5 assert(der('a', (CHAR('a') | CHAR('a')) ~ CHAR('a')) == (ONE | ONE) ~ CHAR('a'))
     6 assert(der('a', STAR(CHAR('a'))) == (ONE ~ STAR(CHAR('a'))))
     6 assert(der('a', STAR(CHAR('a'))) == (ONE ~ STAR(CHAR('a'))))