[Parrot-users] working with term's
Jay Emerson
jayemerson at gmail.com
Thu Jul 7 01:16:55 UTC 2011
I'm building my grammar, proposing
rule statement:sym<terminus> {
<term>
}
and action (well, placeholder action):
method statement:sym<terminus>($/) {
print("TERMINUS!");
}
just to see what it does. As expected, it prints the message for lines like:
> 5
TERMINUS!
> a
TERMINUS!
> b[3]
TERMINUS!
Now, what I'd really like to do is print the evaluated terms, so the
former would give t, the a would give the evaluated a, and the b[3]
would give the 3rd element of b. Any simple, clever way to do this?
I've been working all day on other things and have learned a lot, so
if this is obvious and I should have picked it up from one of the
docs, again please forgive me. !-)
JAy
--
John W. Emerson (Jay)
Associate Professor of Statistics
Department of Statistics
Yale University
http://www.stat.yale.edu/~jay
More information about the Parrot-users
mailing list