Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/initDeinit.cal
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ implement meow deinit
end

let meow myMeow
myMeow @ printdec new_line
&myMeow @ printdec new_line
2 changes: 1 addition & 1 deletion examples/sierpinski.cal
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func sierpinski begin

0 -> x

while x n < do
while x n 2 / < do
if x n y 1 + - and then
' ' printch
else
Expand Down
6 changes: 3 additions & 3 deletions examples/unions.cal
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ end

let MyUnion foo

65 -> foo
65 &foo !
&foo @ printdec new_line

"Hello, world!\n" foo a<
foo printstr
"Hello, world!\n" &foo a<
&foo printstr
6 changes: 6 additions & 0 deletions source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import callisto.compiler;
import callisto.language;
import callisto.codeRemover;
import callisto.preprocessor;
import callisto.backends.lua;
import callisto.backends.uxn;
import callisto.backends.rm86;
import callisto.backends.x86_64;
Expand Down Expand Up @@ -163,6 +164,11 @@ int main(string[] args) {
backend = new BackendUXN();
break;
}
case "lua": {
writeln("Language subset 'CallistoScript' in use");
backend = new BackendLua();
break;
}
default: {
stderr.writefln("Unknown backend '%s'", args[i]);
return 1;
Expand Down
Loading