Skip to content

Compiler written in Rust for Sflynlang.

License

Notifications You must be signed in to change notification settings

YorozuyaDev/compiler

Repository files navigation

Sflynlang Compiler

Build State Code Size Last Release Downloads

This repository contains source code for the compiler written in Rustlang for Sflynlang.

What is 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.

Pre-requisites

Installation

  1. Go to releases and click on the first release you find.

  2. 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
  1. Download the STD library and the rest of dependencies (sflyn-src.zip file)

  2. Extract the sflyn-src.zip in C:/sflynlang, $HOME/sflynlang or wherever you want.

  3. Set the path with the STD as SFLYN_PATH to the environment.

Example: export SFLYN_PATH=$HOME/sflynlang.

  1. Add the sflynlang compiler binary file to SFLYN_PATH/bin/.

  2. Set the executable path to the path environment.

Example: export PATH=$PATH:$HOME/sflynlang/bin.

  1. Now you can run Sflyn code! See Getting Started.

How to Contribute

Please read the Contribution Guidelines and Code of Conduct.

Changelog

View the latest changes on CHANGELOG.md

Getting Started

To begin coding in Sflyn, you can build your first Hello world!:

  1. Create a new file called index.sf and append to it the following lines:
print('Hello World!');
  1. To run the file, use the following command:
$ sflyn /path/to/index.sf
# Output: Hello world!
  1. Amazing! You have created your first code in Sflyn.

Wiki

You can find more about how to works Sflynlang and its syntax on our wiki.

Code examples

Social Networks

Contributors

You can also view the list of contributors here.

Licensing

This project is under the MIT License. See the LICENSE file for more information.

About

Compiler written in Rust for Sflynlang.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages