Index: index.html =================================================================== --- index.html (nonexistent) +++ index.html (revision 18515) @@ -0,0 +1,23 @@ + + + + pcb-rnd user manual + + + +

pcb-rnd fungw scripting - TOC

+ +

Installation, configuration

+ + + +

High level docs

+ + + + Index: install.txt =================================================================== --- install.txt (nonexistent) +++ install.txt (revision 18515) @@ -0,0 +1 @@ +TODO Index: intro.html =================================================================== --- intro.html (nonexistent) +++ intro.html (revision 18515) @@ -0,0 +1,17 @@ + + + + pcb-rnd user manual + + + +

Scripting intro

+

+This document is an introduction to fungw for pcb-rnd users. It focuses on +scripting pcb-rnd and doesn't discuss fungw deeper than the minimum necessary. +Fungw is more generic than shown here. + +

1. The big picture

+

+ + Index: rosetta/10_hello/ID.desc =================================================================== --- rosetta/10_hello/ID.desc (nonexistent) +++ rosetta/10_hello/ID.desc (revision 18515) @@ -0,0 +1,2 @@ +Create a new action hello() that prints "Hello world!" in the message log. + Index: rosetta/10_hello/ID.name =================================================================== --- rosetta/10_hello/ID.name (nonexistent) +++ rosetta/10_hello/ID.name (revision 18515) @@ -0,0 +1 @@ +hello world (text, log) Index: rosetta/10_hello/ex.awk =================================================================== --- rosetta/10_hello/ex.awk (nonexistent) +++ rosetta/10_hello/ex.awk (revision 18515) @@ -0,0 +1,10 @@ +# An action without arguments that prints hello world in the log window +function hello() +{ + message("Hello world!\n"); +} + +# Register the action - action name matches the function name +BEGIN { + fgw_func_reg("hello") +}