progs/lexer/lexer.sc
changeset 1010 adc61c55e165
parent 970 e15be5466802
equal deleted inserted replaced
1009:7fd1997bd14c 1010:adc61c55e165
   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] = {