Yes the entire content, including comments can be passed as a BSTR to the module. To avoid the nested brackets problem (for which you would need to parse the entire content) you could use keywords like this:
dim sMc as string=Oxygen_Eval Script
..
EndScript Oxygen_Eval
In general terms:
[
module function name] script.. EndScript [
module function name]
This syntax could easily support scripts which may contain other scripts
without getting too complicated
pseudocode:
read script
do
p=instr next_word_pos script, "endscript "
if p=0 then p= len script+1: exit (error)
w=nextword script
if w=function_name then a=next_word_pos script: exit
next_word_pos=this_word_pos
loop
if noerror then assign script ..
Bookmarks