hi,

I don't know very much about internals or about how the parser works in
reality but something like this can be helpfull I think !! What I have in
mind ? Micro-perl-parser may be this is external interface (written in
perl).


rule:do {
   /do/ and "{" call(token) and "}" and action
 }

rule:token {
 /\S+/ action
}


i.e we are describing the parser in a way similar to the real PARSER like
yacc but this is in reality perl-code.
Very limited perl the things that need to be implemented are ALL LOGICAL
operators plus  Following subs - call and rule!! and may be return!! and
braces for precedence.
The action must be something like addopcode, removeopcede ... etc...
I repeat !! I can figure out about the more complex structures but think it
will work ?!!
Also state information need to be saved too...
=====
iVAN
[EMAIL PROTECTED]
=====





Reply via email to