Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alploskov/rubik
ruby in c-preprocessor
https://github.com/alploskov/rubik
c ruby
Last synced: 28 days 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 (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-05T13:47:44.000Z (over 1 year ago)
- Last Synced: 2024-10-24T00:52:25.022Z (3 months 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
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](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
```