progs/fun/fun_parser.sc
changeset 869 16247acc4b0e
parent 822 815f03652bf9
child 870 1ea379515c6d
equal deleted inserted replaced
868:b0acb8741b16 869:16247acc4b0e
   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.")