require "testsuite.pl"; open_browser(optional machine info); goto ("http://some.url"); verify_page(some info to verify); set_form (field1 => "value1", field2 => "value2"); submit_form(optional button or image to click); verify_page(some info to verify);
Seriously, they wouldn't need to learn Perl, per se, in order to write Perl scripts that do nothing but call functions that you've predefined. Learning this syntax wouldn't be significantly harder than learning the syntax you laid out, and it saves you the trouble of writing a parser; all you have to do is write the procedures.
I've used a system comparable to this successfully. My sister, an end user, writes quizzing questions using my quizques mode in Emacs. She doesn't do anything else in Emacs and does not know *any* of the standard Emacs stuff (most notably, she does not know about Ctrl-C anything, Ctrl-X anything, or M-x anything). She just uses the mode that I set up. You can do the same thing with Perl. Write your code so that they don't have to do anything but call your prefab procedures.
$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/
In reply to Re: Keyword parser function mapping module
by jonadab
in thread Keyword parser function mapping module
by apprentice
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |