diff --git a/src/main/CTests/test.c b/src/main/CTests/test.c index 12dacf0..25d0302 100644 --- a/src/main/CTests/test.c +++ b/src/main/CTests/test.c @@ -1,10 +1,18 @@ int main(){ int a = 0,b=1; int k = add(a,b); + int j = munis(a,k); print(k) } int add(int a, int b){ int c = a+b; return c; +} + +short munis(int a,int b){ + int l = a; + int f = b; + int k = l - f; + return k; } \ No newline at end of file diff --git a/src/main/kotlin/core/SourceFile.kt b/src/main/kotlin/core/SourceFile.kt index a92138b..debc35b 100644 --- a/src/main/kotlin/core/SourceFile.kt +++ b/src/main/kotlin/core/SourceFile.kt @@ -60,6 +60,10 @@ class SourceFile { .toString() .replace(";;",";") .replace(";",";\n") + .replace("{","{\n") + .replace("}","}\n") + .replace(" =","=") + .replace("= ","=") } }