progs/parser-combinators/comb2.sc
changeset 849 9e332fb8c96a
parent 828 a7d21029bb13
child 906 e7e7fe274f5c
equal deleted inserted replaced
848:08cc74d5a1ff 849:9e332fb8c96a
    11 
    11 
    12 
    12 
    13 // more convenience for the map parsers later on;
    13 // more convenience for the map parsers later on;
    14 // it allows writing nested patterns as
    14 // it allows writing nested patterns as
    15 // case x ~ y ~ z => ...
    15 // case x ~ y ~ z => ...
       
    16 
       
    17 
    16 
    18 
    17 case class ~[+A, +B](x: A, y: B)
    19 case class ~[+A, +B](x: A, y: B)
    18 
    20 
    19 // constraint for the input
    21 // constraint for the input
    20 type IsSeq[A] = A => Seq[_]
    22 type IsSeq[A] = A => Seq[_]