carsonmcdonald / mruby-c-example

Simple example of mruby embedded in a C application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Embedding mruby in C

Simple example of mruby embedded in a C application

To get started with the simplest example you can do the following:

git clone --recursive https://github.com/carsonmcdonald/mruby-c-example.git
cd mruby-c-example
make
./simplest

Examples

  • simplest - Simply load and run a script
  • simple_class - Create a class and use it in a script
  • simple_module - Create a module and use it in a script
  • class_under_module - Create a class under a module and use it in a script
  • simple_yield - Create a method that yields to a given block

About

Simple example of mruby embedded in a C application

License:MIT License


Languages

Language:C 67.8%Language:Makefile 13.3%Language:Shell 10.2%Language:Ruby 4.9%Language:Scilab 3.8%