refactor: use scalafmt to format code

This commit is contained in:
2025-01-27 14:47:57 +00:00
parent 2b50e3e1f6
commit 252ed1c925
5 changed files with 39 additions and 24 deletions

View File

@@ -3,13 +3,14 @@ package wacc
import parsley.{Success, Failure}
def main(args: Array[String]): Unit = {
println("hello WACC!")
println("hello WACC!")
args.headOption match {
case Some(expr) => parser.parse(expr) match {
case Success(x) => println(s"$expr = $x")
case Failure(msg) => println(msg)
}
case None => println("please enter an expression")
}
args.headOption match {
case Some(expr) =>
parser.parse(expr) match {
case Success(x) => println(s"$expr = $x")
case Failure(msg) => println(msg)
}
case None => println("please enter an expression")
}
}