That's not very hard to do with Scala. In fact, there's a few projects that have implemented whole other languages in Scala. Most languages that let you go near functional style do very well with DSLs and writing a DSL is one of the often highlighted strengths of Scala.
For a good example check out the Specs2 unit testing framework.
For a good example check out the Specs2 unit testing framework.