vipsi - the friendly vip script interpreter

Instructions

new

Instructions: newnew <name>
Instructions: newnew <name> = <value>

Instructions: newnew Instructions: var
How does VScript::Value() work?: Var*&
var
<name> Instructions: newnew Instructions: var
How does VScript::Value() work?: Var*&
var
<name> = <value> Instructions: newnew Instructions: procproc <name> ( ) { <instructions> } Instructions: newnew Text functions: file
Instructions: file
file
<filename> Instructions: newnew Text functions: file
Instructions: file
file
<filename> = <text> Instructions: newnew Text functions: link
Instructions: link
link
<filename> Instructions: newnew Text functions: link
Instructions: link
link
<filename> = <text> Instructions: newnew List functions: dir
Instructions: dir
Shell Immediate Commands: dir
dir
<filename>

Create Instructions: newnew Glossary: Variable, var_refvariable, Text functions: file
Instructions: file
file
, Text functions: link
Instructions: link
link
Operators: Boolean Or with Variable "||="
Operators: Bitwise Or with Variable "|="
Operators: Bitwise Or "|"
Operators: Boolean Or "||"
or
directory. An initial Glossary: Valuevalue is sometimes optional Operators: Boolean And with Variable "&&="
Operators: Bitwise And with Variable "&="
Operators: Bitwise And "&"
Operators: Boolean And "&&"
and
sometimes required. Flow control: do … loopDoes Flow control: if … then
Flow control: try … then
the
same as Flow control: if … thenif Instructions: newnew was omitted, except that Instructions: newnew fails with an error, Flow control: if … then
Flow control: if … then
if the
item already Numeric functions: existsexists.

<filename> in Flow control: if … then
Flow control: try … then
the
above syntax charts are Glossary: text, text_valtext values.
<name> denotes an Vipsi command syntax: Identifiers (names)
Identifiers, names
Operators: Make Identifier "@"
Glossary: Name, Identifier
identifier
, a Glossary: Variable, var_refvariable Vipsi command syntax: Identifiers (names)
Identifiers, names
Operators: Make Identifier "@"
Text functions: name
Glossary: Name, Identifier
name
.

For Flow control: if … then
Flow control: try … then
the
rest of it all see Vipsi command syntax: Instructions
Instructions
Glossary: Instruction
instructions
--> Instructions: var
How does VScript::Value() work?: Var*&
var
, Instructions: procproc, Text functions: file
Instructions: file
file
, Text functions: link
Instructions: link
link
Operators: Boolean And with Variable "&&="
Operators: Bitwise And with Variable "&="
Operators: Bitwise And "&"
Operators: Boolean And "&&"
and
List functions: dir
Instructions: dir
Shell Immediate Commands: dir
dir
.

Just some examples:

/*  create List functions: dir
Instructions: dir
Shell Immediate Commands: dir
dir
, Instructions: requirerequire a Instructions: newnew directory: catch error, e.g. Flow control: if … thenif it already Numeric functions: existsexists. */ Flow control: try … thentry Instructions: newnew List functions: dir
Instructions: dir
Shell Immediate Commands: dir
dir
"/usr/local/bin/vipsi/" Flow control: if … then
Flow control: try … then
else
Numeric functions: log
Numeric functions: loge
Instructions: log
log
Constants: nlnl, «creating "/usr/local/bin/vipsi/" failed:» Numeric functions: log
Numeric functions: loge
Instructions: log
log
Constants: nlnl, errorstr Flow control: if … then
Flow control: try … then
then
/* two ways to create a Vipsi command syntax: Procedures
Data Types: Procedures
Glossary: Procedure
procedure
Glossary: Variable, var_refvariable: */ Instructions: newnew Book.DummyReadHandler = Instructions: procproc(i) { Flow control: returnreturn i+1 } Instructions: newnew Instructions: procproc Book.DummyReadHandler(i) { Flow control: returnreturn i+1 } /* create Text functions: link
Instructions: link
link
, Instructions: requirerequire Instructions: newnew Text functions: link
Instructions: link
link
: */ Flow control: try … thentry Instructions: newnew Text functions: link
Instructions: link
link
"books" = "~/books/" Flow control: if … then
Flow control: try … then
then
/* create Text functions: file
Instructions: file
file
, require Instructions: newnew Text functions: file
Instructions: file
file
: e.g. dump all Glossary: Variable, var_refvariables. */ Flow control: try … thentry Instructions: newnew Text functions: file
Instructions: file
file
"testdata" = List functions: globals
Shell Immediate Commands: globals
globals
Flow control: if … then
Flow control: try … then
then

Valid HTML   Valid CSS