This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fn main(args: [str]) { | |
| let thing = "{{ f }}"; | |
| let f = str::find_str(thing, "{{"); | |
| if f.is_none() { | |
| io::println("None!"); | |
| } | |
| } | |
| /* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let input = result::get(io::read_whole_file_str(filename)); | |
| let start = str::find_str(input, "{{"); | |
| let end = str::find_str(input, "}}"); | |
| if option::is_none(start) || option::is_none(end) { | |
| error("invalid rom file"); | |
| ret; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/rt/rust_port_selector.cpp b/src/rt/rust_port_selector.cpp | |
| index d958eac..e1d627e 100644 | |
| --- a/src/rt/rust_port_selector.cpp | |
| +++ b/src/rt/rust_port_selector.cpp | |
| @@ -1,8 +1,10 @@ | |
| #include "rust_port.h" | |
| #include "rust_port_selector.h" | |
| +#include "rust_util.h" | |
| -rust_port_selector::rust_port_selector() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/rt/rust_port_selector.cpp b/src/rt/rust_port_selector.cpp | |
| index d958eac..e1d627e 100644 | |
| --- a/src/rt/rust_port_selector.cpp | |
| +++ b/src/rt/rust_port_selector.cpp | |
| @@ -1,8 +1,10 @@ | |
| #include "rust_port.h" | |
| #include "rust_port_selector.h" | |
| +#include "rust_util.h" | |
| -rust_port_selector::rust_port_selector() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #-------------------------------- | |
| # A simple language, one step above Scratch. | |
| #-------------------------------- | |
| tom = Sprite "cat.png" | |
| when start | |
| move tom 10 | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://gist.github.com/# |
NewerOlder