Skip to content

sno2/unilang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unilang

A Rust crate for combining abstract programming concepts and generating working code in many different programming languages.

Languages

Unilang can output the following programming languages with full support:

  • TypeScript
  • Rust
  • Python

Partially Supported

  • Python: Module system is partially supported.

Concepts

  • Scopes
  • Functions
    • Parameters (opt. types)
    • Return Type (opt.)
  • Statements
    • Variable Initialization
    • Variable Assignment
    • Return
  • Blocks
    • If
    • Else If
    • Else
  • Expressions
    • Ternary
    • Function Call
  • Operations
    • Add
    • Subtract
    • Multiply
    • Divide
    • Mod (Modulus)
  • Constants
    • True/False
  • Types
    • Number
    • Integer

Future

Goals

  • Support more languages.

Non-goals

  • Changing the output based upon the actual code.

License

MIT

About

A Rust crate for combining abstract programming concepts and generating working code in many different programming languages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages