[ Prev | Index | Next ]
Japanese English

Let's Get Started with VCSSL! - Setting Up the Environment

Here, we'll prepare the environment to use VCSSL and start writing some programs!

Sponsored Link

Preparing the Environment

Setting Up the VCSSL Runtime Environment

First, let's set up the necessary environment.

The most crucial component is the "VCSSL Runtime," required to execute VCSSL programs. This software is available for free and can be downloaded from the following page:

On the aforementioned page, you will find detailed instructions tailored to your operating system. Follow these instructions to ensure that VCSSL programs can be executed on your PC.

Choosing the Right Text Editor for Programming

Next, you'll need software for writing programs. VCSSL programs are plain text files, so any text editor can be used for this purpose.

While some operating systems come with built-in text editors (such as Notepad on Windows), these basic editors may not offer features that facilitate coding. Therefore, you might want to consider one of the many free text editors that are enhanced for programming tasks. Here are a few recommendations:

Visual Studio Code
Visual Studio Code is a popular choice among programmers and is compatible with various operating systems. It is user-friendly and maintains a standard interface, although it does not offer any specific plugins designed to assist with VCSSL programming.
Sakura Editor
For Windows users, Sakura Editor is a robust option. With its default configuration set for C/C++, it can colorize VCSSL code to enhance readability. Moreover, if the VCSSL Runtime is installed on your PC, you can directly execute VCSSL programs from Sakura Editor by pressing the Ctrl+B keys.

In addition to the above, there are other popular editors like Emacs and Vim. Each editor has its strengths, so we recommend trying a few to find the one that suits your needs best.

(Optional) Configuring Your PC to Display File Extensions

Lastly, let's consider adjusting your computer's settings as needed.

On many PCs, file extensions are not displayed by default. This setting is often intended to prevent accidental changes to file extensions. However, in scenarios where understanding the type of files is crucial, such as in programming, not being able to see or modify the file extension can be a hindrance.

Therefore, it is advisable to adjust your settings to display file extensions. For example, on Windows, you can find instructions by searching for "how to display file extensions in Windows."

Let's Write Some Code!

Writing Code in the Editor

Now that your environment is ready, it's time to start writing some VCSSL code!

Let's begin with a simple program that displays the message "Hello, World!". This is known as the "Hello, World!" program, which serves as the traditional introduction to programming in many languages. Here's how you can do it in VCSSL:

First, open your text editor and type the following code:

print("Hello, World!");

In VCSSL, this line of code displays "Hello, World!" on the console.

Saving the File with the ".vcssl" Extension

Next, save this program in a convenient working folder with the filename "HelloWorld.vcssl". Be mindful of the ".vcssl" extension, which might not be visible depending on your PC's settings.

Note: To save with this extension on Windows, you need to do a little trick. Specifically, when saving, choose the option "All files" in the "Save as type" field. If you don't do this, the system might automatically add an extension based on the file type. Then, in the "File name" field, enter a filename with the extension already attached, like "HelloWorld.vcssl".

Let's Run the Program!

Executing the Program

Once you've successfully saved the VCSSL program as described above, now let's run it. The method varies depending on your operating system and whether VCSSL is installed. Detailed instructions can be found on the following page:

Follow the appropriate instructions to run the 'HelloWorld.vcssl' program you created earlier. When executed, a black screen will appear, displaying the following message in white text:

Hello, World!

Congratulations! You've successfully executed the Hello, World! program.

Edit and Re-execute the Program

The screen where the message appeared is called the "VCSSL console" or simply "console" for short.

When you close the console, the execution of the VCSSL program ends. Additionally, pressing the "Reset" button on the console's menu bar (or the F11 key) reloads the currently running program and executes it again from the beginning.

When you're writing a new program, you'll often edit and execute it multiple times. In such cases, it's convenient to keep the console open and work alongside the editor. This allows you to smoothly edit in the editor, press "Reset" in the console to execute, and repeat the process seamlessly.

Acknowledgement: We greatly appreciate the cooperation of two ChatGPT AIs in translating this page.
» How we translated this page

Sponsored Link

Japanese English

Software Updates: Command Expansion in RINEARN Graph, and English Support in VCSSL
2024/02/05 - We updated our apps. This updates include "Enhancing the Command-Line Features of RINEARN Graph" and "Adding English Support to VCSSL." Delves into each of them!

Inside the Repetitive Execution Speedup Impremented in Vnano Ver.1.1
2024/01/17 - Delves into the update in Vnano 1.1 from a developer's viewpoint, providing detailed insights into the specific improvements made to the internal structure of the script engine.

Scripting Engine Vnano Ver.1.1 Released: Dramatic Speed Improvement for Repetitive Executions of the Same Content
2023/12/22 - Released the Vnano script engine Ver.1.1. In this version, we've made significant enhancements in processing speed by reducing the overhead of handling requests. Explains the details.

Updated Contents
Circular Wave Animation

Draws the circular wave as 3D animation, under the specified wave parameters.
Sine Wave Animation

Draws the sine wave as animation, under the specified wave parameters.
Tool For Converting Units of Angles: Degrees and Radians

A GUI tool for converting the angle in degrees into radians, or radians into degrees.
Connector Fatal Exception - Specification
The unchecked exception thrown when errors have occurred, caused by incorrect implementations (might be bugs).
Connector Exception - Specification
The checked exception thrown when errors have occurred, cause by expected normal problems.