https://github.com/alploskov/rubik
ruby in c-preprocessor
https://github.com/alploskov/rubik
c ruby
Last synced: 2 months ago
JSON representation
ruby in c-preprocessor
- Host: GitHub
- URL: https://github.com/alploskov/rubik
- Owner: alploskov
- License: mit
- Created: 2023-06-04T22:46:30.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-05T13:47:44.000Z (about 3 years ago)
- Last Synced: 2025-03-30T12:12:37.249Z (over 1 year ago)
- Topics: c, ruby
- Language: C
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/alploskov/rubik/blob/master/LICENSE.txt)
**rubik** is just for fun project for write C/C++ programs in ruby-like language
Quick start
-----------
Copy `rubik.h` to your project.
```ruby
// main.crb
#include
#include "rubik.h"
main
i32 i = 0;
for i in range(10) do
if i % 2 == 0 then
continue
elsif i % 9 == 0 then
break
end
printf("%d\n", i);
end
return 0;
end
```
```
$ gcc -xc main.crb -o main
$ ./main
1
3
5
7
```