/*****
 NAME
 	ctoken.h - header file for CToken class
 VERSION
 	$Id$
 CHANGELOG
 	$Log$
 */

#if !defined(CTOKEN_H_INCLUDED)
#define CTOKEN_H_INCLUDED

#include <coconut/cobject.h>
#include <coconut/plang.h>

@interface CToken : CObject <PToken>
{
	token_t		token_type ;
	union {
		error_code_t	error_code ;
		struct {
			int		rword_id ;
			id <PConstStr>	rword_str ;
		} rword ;
		id <PNumber>	number_obj ;
		id <PConstStr>	string_obj ;
		id <PConstStr>	ident_obj ;
	} token_value ;
}

+ (id <PToken>) newToken ;

@end

#endif /* !defined(CTOKEN_H_INCLUDED) */

