Typical implementation
C version:
enum Toktype Token_type
(struct Token *tp) {
return tp->t;
}
C++ version:
Toktype Token::type() {
return t;
}
Previous slide
Next slide
Back to first slide
View graphic version