parser4.scala
changeset 71 7717f20f0504
parent 70 e6868bd2942b
equal deleted inserted replaced
70:e6868bd2942b 71:7717f20f0504
    75                  "0" ==> { (s) => 0 } ||
    75                  "0" ==> { (s) => 0 } ||
    76                  "1" ==> { (s) => 1 } ||
    76                  "1" ==> { (s) => 1 } ||
    77                  "2" ==> { (s) => 2 } ||
    77                  "2" ==> { (s) => 2 } ||
    78                  "3" ==> { (s) => 3 })
    78                  "3" ==> { (s) => 3 })
    79 
    79 
    80 println(E.parse_all("1+2*3"))
    80 println(E.parse_all("1+2*3+3"))
    81 
    81 
    82 
    82