Index: doc/user/06_feature/scripting/rosetta/10_hello/index.html =================================================================== --- doc/user/06_feature/scripting/rosetta/10_hello/index.html (nonexistent) +++ doc/user/06_feature/scripting/rosetta/10_hello/index.html (revision 18915) @@ -0,0 +1,39 @@ + + + + pcb-rnd rosetta hello world (text, log) + + + + +<-- back to the index of Rosetta examples +

hello world (text, log)

+Create a new action hello() that prints "Hello world!" in the message log. +

Example implementations

+awk + | +js + | +lua + | +pl + | +py + | +rb + | +sh + | +stt + | +tcl +

Explanation, step by step

+Create a function +hello + that will be registered as an action. The name of the action and the function is always the same. Action names shall be lowercase. +

When the action is called, use +message + to append a log message. +

In the "main" section of the script, register the action using fgw_func_reg(). + + Index: doc/user/06_feature/scripting/rosetta/index.html =================================================================== --- doc/user/06_feature/scripting/rosetta/index.html (revision 18914) +++ doc/user/06_feature/scripting/rosetta/index.html (revision 18915) @@ -34,7 +34,7 @@ 10 hello world (text, log) - awk lua python tcl + awk js lua perl python ruby sh stutter tcl Create a new action hello() that prints "Hello world!" in the message log.