https://github.com/zikiflicky/rael
The Rael programming language
https://github.com/zikiflicky/rael
c interpreter language programming-language
Last synced: 10 months ago
JSON representation
The Rael programming language
- Host: GitHub
- URL: https://github.com/zikiflicky/rael
- Owner: ZikiFlicky
- License: mit
- Created: 2021-08-24T10:23:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-08T21:27:44.000Z (almost 4 years ago)
- Last Synced: 2025-04-12T20:52:41.192Z (10 months ago)
- Topics: c, interpreter, language, programming-language
- Language: C
- Homepage:
- Size: 2.73 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rael
Rael is an interpreted programming language written in C.
The language is made for people who prefer not to name their variables.
Rael was started, but not finished in [LangJam](https://github.com/langjam/jam0001).
The name Rael has no actual meaning, if you were wondering ;)
## Dependencies
* Git - to clone this repository (you can also just download it manually if you want)
* GNU Make - to build the project on unix systems
* GCC or Clang - any decent C99 compiler should work, though
* Python 2.7 or higher - for running tests (`runtests.py`)
* SDL2 - The SDL2 library is required for the :Graphics module
The default compiler is GCC, but it can be changed in the makefile's configuration
at the top to whatever you like.
Note: the language was only tested on Linux (Ubuntu 20.04, to be exact).
The language's code currently uses some Posix libraries and functions and doesn't currently support OSes without Posix support.
In the future I may or may not port Rael to Windows.
For build problems and questions regarding the language, please open an issue on this GitHub page.
## Build
Make sure you have sdl2 installed.
To install sdl2 on Ubuntu, run `sudo apt install libsdl2-dev`
To build for use purpose, run `make all`.
To build for development-related purposes, run `make` or `make debug` (they're identical).
`make debug` enables debug features in the compiler, and `make all` disables assertions
and should be a bit faster due to that.
To run the tests, run `python runtests.py` or `build/rael runtests.rael`.
Running `build/rael runtests.rael` is not recommended, because changes to the source code may impact how we run the file.
## Usage
To run a file, `build/rael filename.rael`.
## Examples
Examples can be found in the examples directory.
They can be run like this: `build/rael examples/beer.rael`.
