Since my intention is not to emulate perl but to reuse perl syntax with foreign semantics
So you want a Perl tokenizer or parser. On both counts, the answer is PPI.
Update: Mentioned PPI.
Update: Mentioned tokenizer.
In reply to Re^3: using perlsyntax for other languages?
by ikegami
in thread using perlsyntax for other languages?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |