A Simple Tutorial < Tutorial and References < Viivi's Cell < Entrance


A Simple Tutorial

To run a Scheme source file

Let's try to run "samples.scm" with Viivi IDE!

Boot-Up

It is very simple, if you have already installed Viivi to the installation stage C or D.
All the operations are the same between the platforms.
Please input the underlined part following to the prompt of your platform:

	$ viivi -G samples.scm⮠
Here, "$ " is the prompt of sh-like shell on Unix-like platforms, for example.

If you are trying this tutorial just after the installation stage A or B, you need to type longer like

	$ java -jar Viivi.jar -G samples.scm⮠
	$ ./viivi -G samples.scm⮠
or
	> .\viivi -G samples.scm⮠
In the last example, "> " is the prompt of CMD on Windows platforms.

After Viivi IDE is open, you can move the controller and the windows to the locations you like, respectively, at anytime.
And you can resize the windows to the sizes you like, respectively, at anytime.

The Most Basic Operation: PLAY/STOP Button

The most basic operation controlling the evaluation process is to click the orange-colored PLAY/STOP button at the right-bottom end on the controller.
The PLAY/STOP button is just like that on a music player.
You can start/stop/restart the evaluation by clicking this button.
Once the evaluation is activated, the subsequent evaluation proceeds continuously.
You can control the evaluation speed by moving the index on the speed-slider in the middle-bottom on the controller.

Enter Button

To proceed the evaluation step by step, click the orange-colored Enter-Button on the right-middle of the controller.

Repeat

When Viivi IDE comes to the "terminated" state, you can repeat the same evaluations from the start, by clicking the PLAY/STOP button.

Exit

To quit Viivi IDE, choose "File" menu on the controller and then "Exit viivi".
After booting Viivi IDE next time, the same environment in Viivi IDE is automatically restored.

Please try on the controller to click the buttons, to move the index on the speed-slider, and open the menus on the menu-bar.
Please try on the windows to open the pop-up menus.
Don't worry, your PC will never explode.
But please don't forget to send a bug-report to the author, when you found Viivi IDE failed down. Once you have got familiar with the operation, you already have stepped into your programming career.

To run Scheme codes interactively

It is still simpler for the user to input Scheme codes interactively.
Boot Viivi IDE without any Scheme source filenames as follows:

	$ viivi -G⮠
	$ java -jar Viivi.jar -G⮠
	$ ./viivi -G⮠
or
	> .\viivi -G⮠

After clicking the PLAY/STOP button few times, you can use the input-line on the controller.
Then try to input in the input-line as
	30⮠
	"abc"⮠
	(+ 20 30)⮠
and so on.

It's interesting, isn't it?
To explore the real Scheme world, please check Brief References.


A Simple Tutorial < Tutorial and References < Viivi's Cell < Entrance


Contact

Exhibited on 2022/03/02
Copyright(C) 2003-2022 ilma <ilma@viivi.io> All rights reserved.