8000 GitHub - Gokborg/somlang-rs: A rust rewrite of SomLangJS
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Gokborg/somlang-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

somelang-rs

A rust rewrite of SomLangJS with syntax changes

  • The current goal is to get all the SomLangJS features in this project with the new syntax.
  • The introduction will show exactly what features are currently implemented.

How To Develop With SomLang

Code & Compile: in examples folder there is a 'test.som' that it by default generates asm from

URCL compilation: the assembly will generate and be printed to console, for now just copy from there

Rust compilation:

  • in somoutput folder there is a 'program.rs' file that generates from the program in 'test.som'
  • The 'program.rs' file will run and you will see the output of it in console
  • Also a 'program.exe' file generates which you can use.

These are all subject to change

Introduction to SomLang (Current Features Only)

Arithmetic Boolean
A + B A == B
A - B
A * B A > B
A / B A < B
A >= B
A <= B

Variables

a: uint = 5;
a = 1;

Conditionals

a: uint = 10;
if a > 10 {
}
elif a < 10 {
}
else {
}

About

A rust rewrite of SomLangJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0