|
Posted by cjl on 02/10/07 00:27
As a learning exercise, I am trying to write a web-based version of
'drawbot' in PHP.
See: http://just.letterror.com/ltrwiki/DrawBot
I am interested in hearing ideas about how to approach the user input
parsing problem. I would like to allow people to type in simple code
and have it executed, but I need to limit the code they can write to a
few pre-defined drawing functions, as well as control structures like
loops, if thens, etc...
Short of writing a parser, which is clearly beyond me, what are some
reasonable approaches to handling user input that will be executed?
Thanks in advance,
-CJL
[Back to original message]
|