progs/matcher/re4.sc
changeset 742 b5b5583a3a08
parent 725 f345e89895f5
child 826 b0352633bf48
equal deleted inserted replaced
741:e66bd5c563eb 742:b5b5583a3a08
     1 // (ASIDE!) A version which attempts to move whole strings, 
     1 // (ASIDE!) A version which attempts to move whole strings, 
     2 // not just characters, under derivatives whenever possible
     2 // not just characters, under derivatives whenever possible
     3 //    
     3 //    
     4 // call the test cases with X = {1,2}
     4 // call the test cases with X = {1,2}
     5 //
     5 //
     6 //   amm re3.sc testX
     6 //   amm re4.sc testX
     7 //
     7 //
     8 // or 
     8 // or 
     9 //
     9 //
    10 //   amm re3.sc all
    10 //   amm re4.sc all
       
    11 //
       
    12 // !! DO NOT USE THIS VERSION AS A STARTING POINT !!
       
    13 // !! FOR CW1 & 2! USE re3.sc INSTEAD             !!
    11 
    14 
    12 
    15 
    13 abstract class Rexp
    16 abstract class Rexp
    14 case object ZERO extends Rexp
    17 case object ZERO extends Rexp
    15 case object ONE extends Rexp
    18 case object ONE extends Rexp