This package contains implementation of VisageScript programming language.
Project description
VisageScript (Version 0.0.1)
VisageScript is a programming language coded in Python with a mix of Python, Java, JavaScript, and Ruby syntax and functionalities.
Variable Declaration
Variables in VisageScript can be declared as either static or dynamic-typed.
Dynamic-Typed Declaration
For dynamic-typed variable declaration, we use the keyword 'var'. In this case, it is possible to update the value of the variable to another type's value. The following code shows that the variable 'a' can have its type changed from 'int' to 'float'.
var a = 5;
a = 6.5;
print a
The code above will print the value '6.5'.
Static-Typed Declaration
Static-typed variable declaration involves directly specifying the type of the variable declared. So far, VisageScript supports 'int' and 'float' types. Since both 'int' and 'float' are numeric data types, all basic arithmetic operations and comparison operations can be applied between them.
The following code adds an 'int' and a 'float'.
int a = 5;
float b = 6.5;
print a + b
The code above will print the value '11.5'.
Executable File
The executable file for VisageScript runner can be downloaded at https://github.com/PythonApkDev/PythonApkDev.github.io/blob/main/advanced-projects/VisageScript/VisageScript/dist/VisageScript/VisageScript.
Source Code
Python code used to create VisageScript programming language is available in https://github.com/PythonApkDev/PythonApkDev.github.io/blob/main/advanced-projects/VisageScript/VisageScript/VisageScript.py.
Unit Tests
Python unit tests created using Python's "unittest" module, testing some VisageScript code snippets is available in https://github.com/PythonApkDev/PythonApkDev.github.io/blob/main/advanced-projects/VisageScript/VisageScript/VisageScript_tests.py.
Installation
pip install VisageScript
How to Use the Executable File?
First, open by double-clicking the file "VisageScript". How the executable file looks like is shown in the image below (the file is enclosed with a red rectangle).
Image 1
Getting Started
Once you run the executable file, you will be asked whether you want to continue using VisageScript runner or not.
Image 2
The Runner
You will be asked to enter the path of the VisageScript (.vsgsc file) you want to run in the runner. The output of the VisageScript program will be printed on the terminal. In the image below, the output of the VisageScript file "example1.vsgsc" is printed.
Image 3
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file VisageScript-0.0.1.tar.gz
.
File metadata
- Download URL: VisageScript-0.0.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75ae2a3ba61a597cbe6664a42e4944022916d84c892463c7335e6a737ca7fd35 |
|
MD5 | c1ff7663f110e9635d249978317359e3 |
|
BLAKE2b-256 | 2a4f1f65c52570d2e0030e551249002c769e73a5689dc8e0b0017745db828e76 |
File details
Details for the file VisageScript-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: VisageScript-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8d8535fe9f166f13c264e274b0741a16c3ac360fa1fef9271eaf0b9dc1687fe |
|
MD5 | ca38cb4ca41f206a408816d6e17e68a5 |
|
BLAKE2b-256 | 7c8bd47955f2fda4f43eb3e18a29d70599ff2379dc12b1477038aa7d590c5954 |