diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-02-26 21:19:45 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-02-26 21:19:45 -0500 |
commit | 4aeae5a6d0ecec5558b69492e489535e41b49649 (patch) | |
tree | 7bf826ae1ac4f98c6da8c3f2e4cd48d621587575 /test.toc | |
parent | bfee5c00eed983ccf74810a366112e106226ace2 (diff) |
syntax for including something into a namespace
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -1,6 +1,10 @@ -realloc ::= fn() int { - #C("4") -}; +#include "std/io.toc", io; +#include "std/io.toc", super; +#include "std/io.toc", great; + main ::= fn() { - y := realloc(); + io.puti(7); + io.puts("Hello!"); + super.puts("hey"); + great.puti(1232); };
\ No newline at end of file |