progs/lexer/lexer.sc
changeset 1011 31e011ce66e3
parent 971 51e00f223792
equal deleted inserted replaced
1010:ae9ffbf979ff 1011:31e011ce66e3
   327 def all() = { small(); fib() ; loops() ; email() } 
   327 def all() = { small(); fib() ; loops() ; email() } 
   328 
   328 
   329 
   329 
   330 
   330 
   331 /*
   331 /*
   332 // Ammonite still provides 
       
   333 //
       
   334 //    scala.reflect.runtime.universe._
       
   335 //
       
   336 // which has been removed in Scala 3.
       
   337 //
       
   338 // for escaping strings in Scala 3 use this equivalent code
   332 // for escaping strings in Scala 3 use this equivalent code
   339 
   333 
   340 import scala.quoted._
   334 import scala.quoted._
   341 
   335 
   342 def escapeImpl(raw: Expr[String])(using Quotes): Expr[String] = {
   336 def escapeImpl(raw: Expr[String])(using Quotes): Expr[String] = {