Vnano Official Website
Welcome to the official website of the scripting engine/language "Vnano".
| What is the Vnano ? | How to Use | Tutorial Guide | Engine Specifications | Standard Plug-ins | Code Written in the Vnano |
What is the Vnano ?
A Compact Scripting Engine/Language, Embeddable in Java Applications
Vnano (VCSSL nano) is a compact and high-speed scripting engine/language that can be embedded in Java applications. This allows you to easily implement scripting features in your apps.
Also Available for Standalone Use, Similar to Other Scripting Languages
You can also execute Vnano scripts on your PC by installing the runtime environment.
Although Vnano's features are streamlined to prioritize embeddability, its operational speed is very high, making it particularly useful for calculation-intensive tasks.
Simple C-like Syntax
Vnano features a simple C-like syntax, making it easy for programmers accustomed to C or similar languages to write and read Vnano scripts.
- Example of a script written in Vnano -Open Source, MIT License
The Vnano scripting engine is open-source software and is released under the MIT License.
How to Use
You can start using Vnano in just a few minutes. Let's get started!
Step1. Download the Vnano Engine
First, download the pre-built Vnano package by clicking the following button, and extract the ZIP file. Within the extracted folder, you will find the JAR file "Vnano.jar," which is the scripting engine of Vnano (Vnano Engine).
- Download the Vnano Engine (For Embedding in Your Apps) -
- Please accept the license agreement (MIT License) before use. » License
-
This pre-built package is for trial purposes and may not function correctly depending on the JDK/JRE version in your environment.
For more reliable usage, build the JAR file from the source code using the same JDK as your development environment.
» How to Build
Also, if you simply want to execute Vnano scripts, similar to other scripting languages, without embedding the engine in any applications, consider installing the VCSSL Runtime instead.
Step2. Run the Example Script
Within the extracted folder, you'll find an example script file named "ExampleScript1.vnano" written in Vnano:
- ScriptExample.vnano -This script calculates the sum of integers from 1 to 100. To run it, navigate to the extracted folder in your command-line terminal and enter the following command:
# Note: Running this script requires the Java Development Kit: JDK.
Additionally, if the VCSSL Runtime is installed on your PC, you can execute this script easily by launching the runtime and selecting the script. You can also run it via the command line if you have configured the path settings.
The output will display the calculated value:
Step3. Example Java Application
Within the extracted folder, you'll find an example of a Java application that uses the Vnano, named "ExampleApp1.java":
- ApplicationExample.java -This application executes a Vnano script that calculates the sum of "1.2 + 3.4".
To compile and run this application, navigate to the extracted folder and use the following commands:
java -cp ".;Vnano.jar" AppExample # For Windows®
java -cp ".:Vnano.jar" AppExample # For other operating systems
# Note: Running this requires the Java Development Kit: JDK.
Be aware that the class path separators (; or :) differ between the commands for Windows and other operating systems.
The output should display:
This confirms the successful computation of "1.2 + 3.4" using the scripting engine.
For a more detailed explanation of how to use Vnano, refer to the following page:
Contents of This Website
- Vnano Tutorial Guide
- A simple tutorial guide for using Vnano.
- Specifications of Vnano Engine
- Documentation on the VnanoEngine class, options, and other technical details.
- Standard Plug-ins
- A list and detailed specifications of standard plug-ins that provide built-in functions and variables.
- Source Code Repository (GitHub)
- The remote repository where the source code of Vnano is managed.
Code Written in Vnano
Various official Vnano code samples are available in the VCSSL Code Archive. These may serve as useful examples for understanding Vnano.
Fizz Buzz Program |
|
|
A program printing the correct result of Fizz Buzz game. |
Vnano | Solve The Lorenz Equations Numerically |
|
|
Solve the Lorenz equations, and output data to plot the solution curve (well-known as the "Lorenz Attractor") on a 3D graph. |
Vnano | Compute Integral Value Numerically |
|
|
Example code computing integral values numerically by using rectangular method, trapezoidal method, and Simpson's rule. |
Vnano | Output Data of Numerical Integration For Plotting Graph |
|
|
Example code computing integrated values numerically, and output data for plotting the integrated functions into graphs. |