--- Forwarded message -- From: Monomachus <[EMAIL PROTECTED]> To: <beginners@perl.org> Date: 08.07.06 18:24 Subject: Another exercice
OK here is the deal You have smth like this: <expresion> -> 'begin'<number><operator>'end' <number> -> 'sign'<number> <expresion> -> ''''<a><>>><b>''''';' Ok & now u should separate the elements from '' in @list1, and those from <> in @list2 . Don't forget that you could have the elements << or >> in a tag , i.e. <<<> or <>>> and u can have ' or '' in quotas, i.e. ''' or '''' and another expresion may be smth like this <a>>b> - 'a' is a lot more than 'b'. And another thing is those spaces which we should reduce with smth like s/^\s*//; This is needed to form an syntactic analyzor... And I don't know what pattern should I use to cover those lines ... C uvazheniem, Monomachus ------------------------ Don't worry, Be Happy --- End of forwarded message -- -- C uvazheniem, Monomachus ------------------------ Don't worry, Be Happy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>