This first version of manual is still incomplete and only in HTML format. It may be rewritten using XML DTD language, like PHP manual structure.
I'm searching translators for documentation, because I'm Italian and my english is very poor.
abc, abc_a, _abc are valid names for variables;
Abc, aBc_a, abc_ are allowed, but DEPRECATED, names for variables;Variable names that ends with '_' are RESERVED for language optimizations.
func(), funcOpt() are valid names for functions;
Func(), FuncOpt() are allowed, but DEPRECATED, names for functions;Function names that starts with '_' are RESERVED for language optimizations.
pers_func(), pers_funcOpt() are functions of the pers module;
if, next, var, while etc...
#include, #php, #/php etc...
var varname;
array arrname;
set varname;NOTE: UNIMPLEMENTED YET!
Example:Any variable is destroyed at the end of the page.
// this variable is visible globally in the page: var a; if ( ... ) { // this variable is visible only in this block: var b; // 'a' variable is more visible... } // 'b' variable is no more visible...
Example:Only variant variables can be declared globals.
// this variable is valid globally in all the pages of your project: global var a;
Example:Parameters are defined in anoter page and passed to your page via a POST or GET FORM.
// this is a parameter: parameter var x;
function funcName( arg1, arg2, ... )You can't declare a function inner another.
{
function code}
return value;
function funcName( arg1, arg2, ... ) is expression;
if ( condition )The condition is an expression returning a boolean value.
{
...true statements...}
else
{
...conditional false statements...}
<% if ( condition ): %>
...true statements...<% else: %>
...conditional false statements...<% endif; %>
switch ( condition )The condition is an expression returning a value.
{
case fixed-value:}
// this code is executed if condition equals fixed-value...case...:
// another case code...default:
<% switch ( condition ): %>
<% case fixed-value: %><% endswitch; %>
...case statements...<% default: %>
...default statements...
while ( condition )The loop statements are executed while condition is TRUE.
{
...loop statements...}
<% while ( condition ): %>
...loop statements...<% endwhile; %>
foreach ( arrayname as varname )The loop statements are executed for every value present in array.
{
...loop statements...}
<% foreach ( arrayname as varname ): %>
...loop statements...<% endforeach; %>
break;
Example:Comments aren't passed to the compiled file.
// this is a single line comment /* this is a multi line comment... ............................... */
#selfRepresent the complete name of the page (with extension) is compiling.
#aspTo include ASP source code directly in your pages.
...asp code...
#/asp
#jspTo include JSP source code directly in your pages.
...jsp code...
#/jsp
#phpTo include PHP source code directly in your pages.
...php code...
#/php
#include "filename"This a Server Side Include directive.
#include <modulename>The modulename MUST be a fixed value (can't be a variable) WITHOUT any extension. The extension will be added later by the lisa compiler.
lisa --module --php < modulename.lisa > modulename.phpAs you can see, the --module option (or -m in short form) is the way to inform the compiler that you want generate a module, nor the file generated is standard.
#include <modulename>Note that the modulename is specified WITHOUT any extension.
arrSize( array )This function return the number of items contained in an array.
echo( message )This function will write the message to the generated HTML document.