2006/7/5, Joshua Gatcomb <[EMAIL PROTECTED]>:
I have not had a chance to look at Flavio's links yet. Since no one who
actually knows rules seemed to be inspired to write an example for me - I
will *eventually* figure it out on my own and post back to the list as an
FYI.
Here is a simple one t
On 7/3/06, Paul Seamons <[EMAIL PROTECTED]> wrote:
It isn't specifically a parser designed for general language parsing, but
CGI::Ex::Template does have a mathematical expression parser.
Thanks, but this falls into the realm of existing wheels which is a
different part of this project.
pe
> In any case, I was wondering if someone could provide me with an example of
> a mathematical expression parser (and evaluator).
> To properly compare to the others, it would need to handle the following
> operators
>
> +, - (left associative)
> *, /, % (left associative)
> ^ (right as
2006/7/3, Joshua Gatcomb <[EMAIL PROTECTED]>:
I am specifically interested in examples that can be run in Perl 5 today
without needing Pugs or Parrot.
http://svn.openfoundry.org/pugs/perl5/Pugs-Compiler-Rule/compile_p6grammar.pl
- doesn't do exactly what you want, but you can see what the synt
On Sun, Jun 05, 2005 at 05:11:55PM +0200, BÁRTHÁZI András wrote:
> Thanks, it helped me!
>
> More questions. ;) It seems to me, that the following constructs not
> yet(?) implemented in Pugs. Is it true?
I'll note briefly here that questions regarding implementation (in Perl 6
or Pugs) generally
Hi,
I'll take a shot at it since no one else seems to want to. :-)
> Hope this is helpful. Corrections are welcome from anyone who spots
> any mistakes.
Thanks, it helped me!
More questions. ;) It seems to me, that the following constructs not
yet(?) implemented in Pugs. Is it true?
Built
I'll take a shot at it since no one else seems to want to. :-)
On 6/3/05, BÁRTHÁZI András <[EMAIL PROTECTED]> wrote:
> How can I catch the matched elem name, and block content? I'm guessing
> that hypotetical variables can be the solution, but it says, that those
> variables should have been defin
Hi,
No ideas?
Bye,
Andras
I'm working on a web templating system, and I'm wondering how should I
use rules?
I have these defs:
rule elem {
\< wts \: (<[a..z]>+) \/ \>
}
rule block {
\< wts \: (<[a..z]>+)\>(.*?)\< \/ wts \: $1 \>
}
I would like to execute subroutines during the e