progs/fun/fun_parser.sc
changeset 869 81ee93b87258
parent 822 6b06aeb192ea
child 870 739039774cee
equal deleted inserted replaced
868:8fb3b6d3be70 869:81ee93b87258
   156 
   156 
   157 
   157 
   158 
   158 
   159 // Reading tokens and Writing parse trees
   159 // Reading tokens and Writing parse trees
   160 
   160 
   161 import ammonite.ops._
   161 // pre-2.5.0 ammonite 
       
   162 // import ammonite.ops._
       
   163 
       
   164 // post 2.5.0 ammonite
       
   165 import $ivy.`com.lihaoyi::os-lib:0.8.0` 
   162 
   166 
   163 def parse_tks(tks: List[Token]) : List[Decl] = 
   167 def parse_tks(tks: List[Token]) : List[Decl] = 
   164   Prog.parse_single(tks)
   168   Prog.parse_single(tks)
   165 
   169 
   166 //@doc("Parses a file.")
   170 //@doc("Parses a file.")