diff --git a/sources/zweic/Parser.scala b/sources/zweic/Parser.scala index 6cd9d57..7793d52 100755 --- a/sources/zweic/Parser.scala +++ b/sources/zweic/Parser.scala @@ -354,8 +354,12 @@ } private def _string(str: String): New = { - //TODO - return New(Name("temp"), Nil); + // TODO: make this less dirty + if ( str.length() > 1 ) { + return New(Name("Cons"), IntLit(str.charAt(0).asInstanceOf[Int])::_string(str.substring(1))::Nil); + } else { + return New(Name("Cons"), IntLit(str.charAt(0).asInstanceOf[Int])::New(Name("Nil"), Nil)::Nil); + } } /**