Vnano Official Website
Here is the official website of the script engine/language "Vnano".
What is the Vnano ?
A Compact Scripting Engine/Language, Embeddable in Java Apps
The Vnano (VCSSL nano) is a compact and high-speed scripting engine/language. The engine is embeddable in Java applications, so you can implement scripting feature on you apps easily.
Also Available Independently, Like as Other Scripting Languages
You also can execute Vnano scripts on your PC by introducing the runtime environment.
Features of Vnano are not rich because it places importance on embeddability, but its operating speed is very high, so it may be useful for calculation purposes and so on.
Simple C-like Syntax
The Vnano has simple C-like syntax, so many programmers using C ot C-like languages can write/read Vnano scripts very easily.- Example of a script written in the Vnano -
Open source, MIT License
Tne scripting engine of the Vnano is an open source software, and released under the MIT license.
How to Use
You can try using the Vnano in few minutes. Let's try!
Step1. Download the Scripting Engine of the Vnano
At first, download the pre-built package of the Vnano by clicking the following button, and extract the downloaded ZIP file. In the extracted folder, a JAR file "Vnano.jar" exists. It is the scripting engine of the Vnano (Vnano Engine).
Also, if you only want to execute Vnano scripts (like as other scripting language) without embedding the engine in any apps, introduce the VCSSL Runtime instead of the above.
Step2. Run the Example Script
In the extracted folder, an example script file "ExampleScript1.vnano" written in the Vnano is bundled:- ScriptExample.vnano -
The above script calculates the sum of integers from 1 to 100. To execute the above script, "cd" to the extracted folder on the command-line terminal, and input the following command:
(Requires the Java Development Kit: JDK)
Also, if the VCSSL Runtime has been introduced in your PC, you can run the above script easily, by launching the runtime and choosing the script (also can execute by the command-line if you did the path setting).
Then the calculated value will be output:
Step3. Example Java Application
In the extracted folder, an example code of a Java application using Vnano "ExampleApp1.java" is bundled:- ApplicationExample.java -
The above app execute a Vnano script calculating the value of "1.2 + 3.4".Let's "cd" to the extracted folder, and compile/run the application as follows:
java -cp ".;Vnano.jar" AppExample (For Windows®)
java -cp ".:Vnano.jar" AppExample (For other OSes)
(Requires the Java Development Kit: JDK)
Note that separator-characters ( ; or : ) of class-paths are different between the above two commands.
The result isF
As the above, we successfully compute the value of "1.2 + 3.4" on the scripting engine.
For more detailed explanation of how to use the Vnano, see the following page:
Contents in This Website
- Vnano Tutorial Guide
- The simple tutorial guide for using the Vnano.
- Specifications of Vnano Engine
- The specification document of VnanoEngine class, Options, and so on.
- Standard Plug-ins
- List and specification documents of standard plug-ins providing built-in functions/variables.
- Source Code Repository (GitHub)
- The remote repository to manage the source code of the Vnano.
Code Written in the Vnano
Some official code written in the Vnano are distributed on the VCSSL Code Archive. They might be useful as example code of the Vnano, contents for software equipped with the Vnano, and so on.
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.