refactor: use scalafmt to format code
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user