Skip to content

Instantly share code, notes, and snippets.

@fkaa
Created June 4, 2014 19:06
Show Gist options
  • Select an option

  • Save fkaa/a5e7f9dcf927a95fcaf1 to your computer and use it in GitHub Desktop.

Select an option

Save fkaa/a5e7f9dcf927a95fcaf1 to your computer and use it in GitHub Desktop.
## main.rb
def Kaffeh::init
end
def Kaffeh::update(delta)
end
def Kaffeh::draw
end
## vec.rb
module Kaffeh
end
## compiled with verbose mode
MBPro2012:kaffeh felix$ mrbc -v -o data.mrb src/ruby/main.rb src/ruby/vec.rb
mruby - Embeddable Ruby Copyright (c) 2010-2013 mruby developers
src/ruby/vec.rb:0:9: syntax error, unexpected keyword_module, expecting $end
NODE_SCOPE:
NODE_BEGIN:
NODE_SDEF:
NODE_CONST Kaffeh
:init
NODE_BEGIN:
NODE_SDEF:
NODE_CONST Kaffeh
:update
mandatory args:
NODE_ARG delta
NODE_BEGIN:
NODE_SDEF:
NODE_CONST Kaffeh
:draw
NODE_BEGIN:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment