This file contains 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/# |
This file contains 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 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 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 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 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 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
/** Comment | |
Thing / * * / | |
*/ /* */ | |
// /* test | |
// TEST | |
// \\ / Comment \/ // */ |
This file contains 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
class RustLexer(RegexLexer): | |
""" | |
Lexer for Mozilla's Rust programming language | |
""" | |
name = 'Rust' | |
filenames = ['*.rs', '*.rc'] | |
aliases = ['rust'] | |
mimetypes = ['text/x-rustsrc'] |
This file contains 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
for instrs.each {|i| | |
bytes += instruction_bytes(i) | |
}; | |
for instrs.each {|i| | |
bytes += instruction_bytes(i); | |
}; |
This file contains 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
ncalls tottime percall cumtime percall filename:lineno(function) | |
16 0.000 0.000 0.000 0.000 <string>:8(__new__) | |
1 0.000 0.000 0.000 0.000 Cookie.py:573(__init__) | |
7 0.000 0.000 0.000 0.000 __init__.py:108(get_auth_header) | |
10 0.000 0.000 0.777 0.078 __init__.py:1110(debug) | |
3 0.000 0.000 0.688 0.229 __init__.py:1122(info) | |
251 0.000 0.000 0.000 0.000 __init__.py:1164(get_internal_type) | |
42 0.000 0.000 0.000 0.000 __init__.py:118(<genexpr>) | |
7 0.000 0.000 0.000 0.000 __init__.py:1197(findCaller) | |
7 0.000 0.000 0.000 0.000 __init__.py:1218(makeRecord) |
OlderNewer