refactor: use scalafmt to format code
This commit is contained in:
parent
2b50e3e1f6
commit
252ed1c925
12
.editorconfig
Normal file
12
.editorconfig
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
|
||||||
|
[Makefile]
|
||||||
|
indent_style = tab
|
||||||
|
indent_size = 4
|
||||||
|
|
2
.scalafmt.conf
Normal file
2
.scalafmt.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
version = 3.8.6
|
||||||
|
runner.dialect = scala36
|
@ -6,7 +6,8 @@ def main(args: Array[String]): Unit = {
|
|||||||
println("hello WACC!")
|
println("hello WACC!")
|
||||||
|
|
||||||
args.headOption match {
|
args.headOption match {
|
||||||
case Some(expr) => parser.parse(expr) match {
|
case Some(expr) =>
|
||||||
|
parser.parse(expr) match {
|
||||||
case Success(x) => println(s"$expr = $x")
|
case Success(x) => println(s"$expr = $x")
|
||||||
case Failure(msg) => println(msg)
|
case Failure(msg) => println(msg)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user