Created
October 28, 2010 14:59
-
-
Save bakkdoor/651507 to your computer and use it in GitHub Desktop.
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
def arg1: arg1 arg2: arg2 = "default_arg2" arg3: arg3 = "default_arg3" { | |
"arguments are: " println | |
arg1 println | |
arg2 println | |
arg3 println | |
} | |
arg1: "hello" arg2: "world" arg3: "how are you?" | |
arg1: "hello" arg2: "world" | |
arg1: "hello" |
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
bakkdoor:~/projekte/fancy/fancy-lang[dev*]> fancy examples/default_args.fy | |
An exception occurred running /home/bakkdoor/projekte/fancy/fancy-lang/bin/fancy | |
Error trying to compile fancy: examples/default_args.fy (Rubinius::CompileError) | |
Backtrace: | |
Rubinius::Compiler.compiler_error at /usr/local/rubinius/1.1/lib/compiler/compiler.rbc:11 | |
Rubinius::Compiler.compile_fancy_file at rbx/compiler/compiler.rb:33 | |
Fancy::CodeLoader.optionally_compile_file at rbx/fancy_code_loader.rb:93 | |
Fancy::CodeLoader.load_compiled_file at rbx/fancy_code_loader.rb:111 | |
{ } in main.__script__ at lib/main.fyc:55 | |
{ } in Rubinius::BlockEnvironment#Block at rbx/fancy_ext/block_env.rb:18 | |
{ } in Object(String)#if_do: at lib/rubinius/object.fy:45 | |
NilClass#if_false: at lib/nil_class.fy:23 | |
Object(String)#if_do: at lib/rubinius/object.fy:46 | |
main.__script__ at lib/main.fyc:56 | |
Fancy::CodeLoader.load_compiled_file at rbx/fancy_code_loader.rb:129 | |
main.__script__ at bin/fancy:10 | |
Rubinius::CodeLoader#load_script at kernel/delta/codeloader.rb:67 | |
Rubinius::CodeLoader.load_script at kernel/delta/codeloader.rb:91 | |
Rubinius::Loader#script at kernel/loader.rb:460 | |
Rubinius::Loader#main at kernel/loader.rb:571 | |
Rubinius::Loader.main at kernel/loader.rb:609 | |
Object#__script__ at kernel/loader.rb:621 | |
Caused by: Parse error at line 1, unexpected token: "=" (Fancy::Parser::ParseError) | |
Backtrace: | |
Fancy::Parser(Module)#parse_error at rbx/parser/parser.rb:54 | |
Rubinius::Compiler::FancyFileParser#run at rbx/compiler/stages.rb:86 | |
Rubinius::Compiler#run at /usr/local/rubinius/1.1/lib/compiler/compiler.rbc:115 | |
Rubinius::Compiler.compile_fancy_file at rbx/compiler/compiler.rb:31 | |
Fancy::CodeLoader.optionally_compile_file at rbx/fancy_code_loader.rb:93 | |
Fancy::CodeLoader.load_compiled_file at rbx/fancy_code_loader.rb:111 | |
{ } in main.__script__ at lib/main.fyc:55 | |
{ } in Rubinius::BlockEnvironment#Block at rbx/fancy_ext/block_env.rb:18 | |
{ } in Object(String)#if_do: at lib/rubinius/object.fy:45 | |
NilClass#if_false: at lib/nil_class.fy:23 | |
Object(String)#if_do: at lib/rubinius/object.fy:46 | |
main.__script__ at lib/main.fyc:56 | |
Fancy::CodeLoader.load_compiled_file at rbx/fancy_code_loader.rb:129 | |
main.__script__ at bin/fancy:10 | |
Rubinius::CodeLoader#load_script at kernel/delta/codeloader.rb:67 | |
Rubinius::CodeLoader.load_script at kernel/delta/codeloader.rb:91 | |
Rubinius::Loader#script at kernel/loader.rb:460 | |
Rubinius::Loader#main at kernel/loader.rb:571 | |
Rubinius::Loader.main at kernel/loader.rb:609 | |
Object#__script__ at kernel/loader.rb:621 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment