in reply to Keyword parser function mapping module
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$/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Keyword parser function mapping module
by dragonchild (Archbishop) on Jan 06, 2004 at 16:21 UTC | |
by jonadab (Parson) on Jan 06, 2004 at 20:54 UTC | |
by dragonchild (Archbishop) on Jan 06, 2004 at 21:54 UTC | |
by jonadab (Parson) on Jan 07, 2004 at 01:43 UTC | |
by dragonchild (Archbishop) on Jan 07, 2004 at 12:57 UTC | |
|