I think you have hit a language barrier. Not a programming language barrier, but an English usage one! You may find it helpful to find someone who is more comfortable with English and can better translate your intent for you. Alternatively, post a native language version of your question and with luck another monk who understands your native language may be able to either answer your question, or at least provide a translation that better conveys your intent into English.
Or, as another alternative, extend your example with a small real example of the input to, and expected output from the script you are having trouble with.
In reply to Re^2: Writing a parser
by GrandFather
in thread Writing a parser
by Zielony
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |