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
This is a test of gist-vim. |
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
interface AttributeAccessorExtension do | |
macro def attr_reader(attr, type) | |
quote do | |
def `attr`:`type` | |
@`attr` | |
end | |
end | |
end | |
macro def attr_writer(attr, type) |
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
> mirahc macro_test.mirah | |
Parsing... | |
macro_test.mirah | |
Inferring types... | |
Inference Error: | |
macro_test.mirah:23: Cannot find instance method name_set(java.lang.String) on MacroTest | |
m.name = "Nils" | |
^^^^^^^^^^ |
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
> mirahc macro_test.mirah | |
Parsing... | |
macro_test.mirah | |
NativeException: jmeta.SyntaxError: expected f_arglist before '=(val:String)' (at line: 12, char: 17) | |
parse_ruby at /home/nils/.rvm/gems/jruby-1.6.0/gems/mirah-0.0.7-java/lib/mirah/transform.rb:327 | |
parse at /home/nils/.rvm/gems/jruby-1.6.0/gems/mirah-0.0.7-java/lib/mirah/impl.rb:120 | |
generate at /home/nils/.rvm/gems/jruby-1.6.0/gems/mirah-0.0.7-java/lib/mirah/impl.rb:84 | |
each at org/jruby/RubyArray.java:1572 | |
generate at /home/nils/.rvm/gems/jruby-1.6.0/gems/mirah-0.0.7-java/lib/mirah/impl.rb:75 | |
compile at /home/nils/.rvm/gems/jruby-1.6.0/gems/mirah-0.0.7-java/lib/mirah/impl.rb:54 |
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
require "rubygems" | |
require "nokogiri" | |
class PlainTextExtractor < Nokogiri::XML::SAX::Document | |
attr_reader :plaintext | |
# Initialize the state of interest variable with false | |
def initialize | |
@interesting = false |
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
nils:~/fancy[master*]> bin/fdoc | |
Rubinius Crash Report #rbxcrashreport | |
Error: signal SIGSEGV | |
[[Backtrace]] | |
rbx[0x5fc01d] | |
/lib/libpthread.so.0(+0xf8f0)[0x7fa7af4cd8f0] | |
rbx(_ZN8rubinius4capi15capi_get_stringEPNS_23NativeMethodEnvironmentEl+0xa)[0x69c1ba] | |
rbx(rb_str_len+0x14)[0x69c2c4] |
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
nils:~/fancy[master]> rake | |
(in /home/nils/fancy) | |
flex --outfile /home/nils/fancy/rbx/parser/lexer.c --header-file=lexer.h /home/nils/fancy/rbx/parser/lexer.lex | |
bison --output /home/nils/fancy/rbx/parser/parser.c -d -v /home/nils/fancy/rbx/parser/parser.y | |
/home/nils/fancy/rbx/parser/parser.y:166.17-25: Warnung: Typkonflikt bei Default-Aktion: <object> != <>) | |
/home/nils/fancy/rbx/parser/parser.y: Konflikte: 215 Schiebe/Reduziere, 69 Reduziere/Reduziere | |
rbx /home/nils/fancy/rbx/parser/extconf.rb | |
rake aborted! | |
Command failed with status (127): [rbx /home/nils/fancy/rbx/parser/extconf.rb...] | |
/home/nils/fancy/rbx/parser/Rakefile:17 |
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
bin/fancy examples/require.fy | |
32455.32 | |
An exception occurred running bin/fancy | |
undefined method `:-' on an instance of Float. (NoMethodError) | |
Backtrace: | |
Kernel(Float)#:- (method_missing) at kernel/delta/kernel.rb:85 | |
main.__script__ at examples/arithmetic.fyc:3 | |
Fancy::CodeLoader.load_compiled_file at rbx/fancy_code_loader.rb:109 | |
Kernel(Object)#fancy_require at rbx/fancy_ext/kernel.rb:10 |
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
package org.uos.nhaldenw [ db_name ] { | |
entity User { | |
name: String | |
age: Integer | |
size: Float | |
admin: Boolean | |
} | |
entity Group { | |
name: String |
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
package org.uos.nhaldenw [ database ] { | |
entity User { | |
first_name: String | |
last_name: String | |
post_count: Integer | |
} | |
entity Adress { | |
street: String | |
number: Integer |