|
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: filefile <filename>
Instructions: newnew Text functions: file Instructions: filefile <filename> = <text>
Instructions: newnew Text functions: link Instructions: linklink <filename>
Instructions: newnew Text functions: link Instructions: linklink <filename> = <text>
Instructions: newnew List functions: dir Instructions: dir Shell Immediate Commands: dirdir <filename>
Create Instructions: newnew Glossary: Variable, var_refvariable, Text functions: file Instructions: filefile, Text functions: link Instructions: linklink 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 … thenthe 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 … thenif the item already Numeric functions: existsexists.
<filename> in Flow control: if … then Flow control: try … thenthe above syntax charts are Glossary: text, text_valtext values. <name> denotes an Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Glossary: Name, Identifieridentifier, a Glossary: Variable, var_refvariable Vipsi command syntax: Identifiers (names) Identifiers, names Operators: Make Identifier "@" Text functions: name Glossary: Name, Identifiername.
For Flow control: if … then Flow control: try … thenthe rest of it all see Vipsi command syntax: Instructions Instructions Glossary: Instructioninstructions --> Instructions: var How does VScript::Value() work?: Var*&var, Instructions: procproc, Text functions: file Instructions: filefile, Text functions: link Instructions: linklink 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: dirdir.
Just some examples:
/* create List functions: dir Instructions: dir Shell Immediate Commands: dirdir, 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: dirdir "/usr/local/bin/vipsi/"
Flow control: if … then Flow control: try … thenelse
Numeric functions: log Numeric functions: loge Instructions: loglog Constants: nlnl, «creating "/usr/local/bin/vipsi/" failed:»
Numeric functions: log Numeric functions: loge Instructions: loglog Constants: nlnl, errorstr
Flow control: if … then Flow control: try … thenthen
/* two ways to create a Vipsi command syntax: Procedures Data Types: Procedures Glossary: Procedureprocedure 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: linklink, Instructions: requirerequire Instructions: newnew Text functions: link Instructions: linklink:
*/
Flow control: try … thentry
Instructions: newnew Text functions: link Instructions: linklink "books" = "~/books/"
Flow control: if … then Flow control: try … thenthen
/* create Text functions: file Instructions: filefile, Instructions: requirerequire Instructions: newnew Text functions: file Instructions: filefile:
e.g. dump all Glossary: Variable, var_refvariables.
*/
Flow control: try … thentry
Instructions: newnew Text functions: file Instructions: filefile "testdata" = List functions: globals Shell Immediate Commands: globalsglobals
Flow control: if … then Flow control: try … thenthen
| |