Skip to content

Commit

Permalink
Add example file, note after observing the compiled code from it.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpressey committed Jun 28, 2021
1 parent 9aa73b9 commit 9332418
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ AST nodes should have source line numbers, it would be really nice.

C backend. Other backends (Python? Java? CIL? Scheme?)

Runtime support for `str` in Ruby backend and JavaScript backend.

### Design ###

Convenience:
Expand Down
8 changes: 8 additions & 0 deletions eg/countdown.castile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
fun main() {
num = 10;
while (num > 0) {
print(str(num));
num = num - 1
}
print("Done.")
}

0 comments on commit 9332418

Please sign in to comment.