Y#(Y-sharp) version 4 is now released. Ysharp is a high level general-purpose programming language that is inspired by C and Python.
builtin numpy arrays
builtin speak functions (male/female voices)
ability of adding Python Code to the Ysharp file to devlop new libraries
Used sly for Lexer & Parser
- It's a versatile programming language suited for many things
- Built-in libraries & functions for Robotic Engineering & Computer Automation
- Really, no one need to use it, it's just a pet project
There are constantly new features being developed in Y#(Y-sharp).
- Numpy arrays Builtin!!
- Speak Functions are builtin
- Ability of Developing new Libraries with both Python and Ysharp codes
- Classes
- Functions
- Built-Ins (e.g. print, get, stdin, to_int)
- Primitive Types (Integers, Floats, Booleans, Strings)
- Python Lists, Tuples and Numpy Arrays Builtin
- While loops
- For Loops
- Import statements
- C-like Structs
- Switch Statements
- Syntax Changeable at Runtime
- Sly lex yacc used for parsing
- Python 3 (can be used with CPython or PyPy)
To use, run the filename as the first argument. It is recommended to use the python interpreter to run the code (just run the ysharp
folder), like so:
python3 ysharp path/to/yharp/file.yshp
or
python ysharp path/to/yharp/file.yshp
The filename for yharp files is .yshp
. For example, important_file.yshp
. If you want to use the compiled binaries, on Unix-like systems, you could do:
./ysharp.bin path/to/ysharp/file.yshp