Re: problem filling a data structure
[email protected] (Marcel Grunauer)
| Newsgroups | perl.recdescent |
|---|---|
| Message-ID | <20011101220408.LCSU15000.viefep16-int.chello.at@localhost> |
Hi Richard,
> Thank you for the example. Although the provided gramar sticks in a
> endless loop, there are some hints in it that will help me to achieve
> what I need. Especially the <rulevar: ..:> directive should be
> extremly helpful.
I used your sample input and the Data::Denter'ed output is:
%
a => @
b
b => @
Hypothenuse(lang)
c => @
a(b, !d | e, f+k(j))
g => @
h, i j1, l(m), z(z(u)), 123, 12-3-44, 12.3.22
h => @
h, i j a(b, !d | e, f+k(j)), l(m>n)
j => @
a(o), b(haha hehe)
b,z
c(g(x))
mao tse tung => @
communist leader
But maybe that wasn't representative input...
> Mainly because I don´t really understand Parse::RecDescent on a good
> level, I applied some of Marcels suggestions to my gramar instead
> modifying his as I simply don´t understand how it works.
If you have specific questions on the grammar, I'd be happy to answer
them.
Marcel
--
Aspect-Oriented Perl http://codewerk.unixbeard.net/aspects/
cpan> install Aspect