https://github.com/sno2/unilang
A Rust crate for combining abstract programming concepts and generating working code in many different programming languages.
https://github.com/sno2/unilang
Last synced: 12 months ago
JSON representation
A Rust crate for combining abstract programming concepts and generating working code in many different programming languages.
- Host: GitHub
- URL: https://github.com/sno2/unilang
- Owner: sno2
- License: mit
- Created: 2021-06-20T08:53:59.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-01T04:38:03.000Z (about 5 years ago)
- Last Synced: 2025-03-30T01:35:23.854Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 1.2 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](./LICENSE)