SciRuby / rubex

rubex - A Ruby-like language for writing Ruby C extensions.
BSD 2-Clause "Simplified" License
451 stars 21 forks source link

Allow multiple file Rubex scripts #48

Closed v0dro closed 6 years ago

v0dro commented 6 years ago

Currently Rubex files can only exist inside one single file. This is quite detrimental to effective management of code. Support multiple files.

A new function called require_rubex can be used for this purpose. This function will be a compiler construct similar to #include in C and will include that file into the compilation phase.

v0dro commented 6 years ago

https://github.com/SciRuby/rubex/commit/9ad566e03ffb5d5833b7f1a180ded6741928b9ce