note
kvale
Regarding object query langugages, you might look at the CORBA system. As an object request broker, it needs to be fast, so the syntax is pretty simple. Of course, it may be <i>too</i> low level, but will give you ideas.
<p>
With regard to parsing, I would first create a grammar. I find [cpan://Parse::RecDescent] too slow when speed is of the essence. Writing your own top-down parser should speed things up and for a small grammar, it should be be easy to maintain as well.
<p>
Top-down parsers are constructed from a grammar as follows:
<ul>
<li>Each nonterminal in your grammar becomes a subroutine that you call
<li>Alternation '|' is handled with if-then statments
<li>Qunatifiers like '*' and '+' are handled with loops
<li>Nonterminal strings are matched using regexes.
</ul>
For learning about parsing and translation, I recommend the dragon book: Compilers, by Aho, Sethi, and Ullman.
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-145001">
<p>
-Mark
</div></div>
544977
544977