Getting Started with the Scriptol PHP Compiler
If you are new in programming, the Scriptol Interpreter should be the
program of choice for your first steps to learn commands of computers.
But once the install process accomplished, that is harder for the compiler
than for the interpreter, using Scriptol is really easy, and simpler
than any legacy programming language.
The interpreter is well suited to design open source programs only,
to protect you code you need for a compiler.
How to install the compiler
Detailed installing instructions are provided in this: Installing
Scriptol PHP.
Firstly, download the installer.
The archive holds:
- solp.exe, the scriptol to php compiler or solc.exe, the scriptol to C++ or binary compiler.
- An editor with syntax-highlighting. See also resources.
- The reference manual.
- Demos programs.
You need also for the PHP interpreter to interpret a web page or a script.
How to build a scriptol program from the source
At command line, under Windows or Unix
Building a web page:
type: solp -w xxx
The page has a .html or .php extension and embeds scriptol code.
Interpreting a script with the PHP interpreter,
type solp -br xxx
Building and running a binary executable,
type: solc -ber xxx
-b compiles the xxx.sol scriptol program.
-e makes an executable.
-r runs the program.
From the included editor
Look at the snapshot of the
command.
The commands appear into the tools menu when you load a
scriptol source (.sol extension) or write one and save the current text
into a file with the sol extension.
Into the tools menu, select:
- compile and build to make an executable.
- go to run the program.
- compile to PHP, to build a web page or a PHP script.
- interpret to let the PHP interpreter run the script.