This repository contains source code for the compiler written in Rustlang for Sflynlang.
Sflynlang is a multiparadigm and cross-platform programming language. The principal focus is have a programming language like TypeScript but natively on the browser or more applications; the syntax pretends be easier and familiar to everyone.
-
Go to releases and click on the first release you find.
-
Download the compiler binary file for your operating system:
- Linux:
sflyn-x86_64-unknown-linux-gnu.zip
- Windows:
sflyn-x86_64-pc-windows-msvc.zip
- MacOS:
sflyn-x86_64-apple-darwin.zip
-
Download the STD library and the rest of dependencies (
sflyn-src.zip
file) -
Extract the
sflyn-src.zip
inC:/sflynlang
,$HOME/sflynlang
or wherever you want. -
Set the path with the STD as
SFLYN_PATH
to the environment.
Example:
export SFLYN_PATH=$HOME/sflynlang
.
-
Add the sflynlang compiler binary file to
SFLYN_PATH/bin/
. -
Set the executable path to the path environment.
Example:
export PATH=$PATH:$HOME/sflynlang/bin
.
- Now you can run Sflyn code! See Getting Started.
Please read the Contribution Guidelines and Code of Conduct.
View the latest changes on CHANGELOG.md
To begin coding in Sflyn, you can build your first Hello world!
:
- Create a new file called
index.sf
and append to it the following lines:
print('Hello World!');
- To run the file, use the following command:
$ sflyn /path/to/index.sf
# Output: Hello world!
- Amazing! You have created your first code in Sflyn.
You can find more about how to works Sflynlang and its syntax on our wiki.
- Hello World
- Classes
- For
- Functions
- Interfaces
- Modules
- Variables
- Daniel Solarte - Initial Work - GitHub
- Maria Antonella - Icon Design - Instagram
- LemonCod3 - Emotional Support - GitHub Organization
You can also view the list of contributors here.
This project is under the MIT License. See the LICENSE file for more information.