provided code

This commit is contained in:
LabTS
2025-01-19 23:10:54 +00:00
commit 2b50e3e1f6
9 changed files with 147 additions and 0 deletions

15
src/main/wacc/Main.scala Normal file
View File

@@ -0,0 +1,15 @@
package wacc
import parsley.{Success, Failure}
def main(args: Array[String]): Unit = {
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")
}
}