On Sat, Apr 05, 2008 at 05:32:27PM -0500, Patrick R. Michaud wrote: > On Sat, Apr 05, 2008 at 07:59:36PM -0000, John M. Dlugosz wrote: > > I'm trying to fathom STD.pm. > > > > Maybe someone can help me trace through this one? > > > > How is > > $obj!privA = 1; > > parsed? > > > > Reading expect_term, it trys <noun>, then <variable> sees the > > "$" and commits to the decision, reads "obj" as a <desigilname>, > > then checks for a ".", but doesn't have similar logic for "!". > > I'm not sure what you mean by "then checks for a '.'" -- I don't > the dot in the <variable> rule isn't the same as the method dot.
Erg, I mis-edited this. The dot that appears in the <variable> rule isn't the normal method dot -- I think it handles things like C< $.( ... ) > and C< @.( ... ) >. Pm