diff --git a/playground/Demo1/Main.snow b/playground/Demo1/Main.snow index 08eeda8..89efc03 100644 --- a/playground/Demo1/Main.snow +++ b/playground/Demo1/Main.snow @@ -1,11 +1,9 @@ module: Main import:Math function: main - parameter: - return_type: int + return_type: void body: - Math.factorial(6L,1L) - return 0 + Math.add(6,1) end body end function end module diff --git a/playground/Demo1/Math.snow b/playground/Demo1/Math.snow index bfe8605..2e5963e 100644 --- a/playground/Demo1/Math.snow +++ b/playground/Demo1/Math.snow @@ -1,11 +1,11 @@ module: Math - function: factorial + function: add parameter: - declare n1: long - declare n2: long - return_type: long + declare n1: int + declare n2: int + return_type: int body: - return n1+n2 + return n1 + n2 end body end function end module \ No newline at end of file