Topic: Need help tokenizing this code...
Author: dweller@news.imagin.net (David Weller)
Date: 1997/05/24 Raw View
Note: I meant to make this a crossposted message, but forgot to
include this newsgroup. This is a duplicate of a message posted to
comp.lang.c++, so if you replied there...
I'm doing a little research work and attempting to understand the
correct tokenization of the following code snippet:
template<class Item, class OtherItem>
ParentTemplate<Item, OtherItem>&
ParentTemplate<Item, OtherItem>::
operator=(const ParentTemplate<Item, OtherItem>& c)
{}
I'm using the grammar specified in CD2. I'm getting hung up on
references, I thought they were a ptr-operator token, but all
referrals I see to it indicates it's a prefix token.
I suppose, to accelerate my laziness (?), I should just ask if anybody
has a tokenizer available (no, it's not a homework assignment...) so
that I can get a feel for what the "correct" breakdown is.
---
[ comp.std.c++ is moderated. To submit articles: try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
[ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu ]