/**
	\file "AST/AST_fwd.h"
	Forward declarations for classes in HAC::parser.
	$Id: AST_fwd.h,v 1.8 2008/03/20 00:03:11 fang Exp $
 */

#ifndef	__HAC_AST_AST_FWD_H__
#define	__HAC_AST_AST_FWD_H__

#include "AST/delim.h"

namespace HAC {
namespace parser {

//-----------------------------------------------------------------------------
// declared in "AST/common.h"
class expr;
class terminal;
class token_char;
class token_string;
class token_identifier;
class token_keyword;
class node_position;
class keyword_position;

template <class T>
class node_list;			// defined in "AST/node_list.h"

class expr_list;
class inst_ref_expr_list;
class template_argument_list_pair;
class root_item;
class root_body;
class qualified_id;
class qualified_id_slice;
class namespace_id;
class id_expr;
class type_base;
class type_id;
class data_type_ref_list;
class chan_type;
class statement;
class incdec_stmt;
class assign_stmt;
class def_body_item;
typedef	node_list<const def_body_item>	definition_body;
class language_body;
class namespace_body;
class using_namespace;
class instance_management;
// class template_argument_list;
typedef	node_list<const instance_management>	instance_management_list;
class concrete_type_ref;
class generic_type_ref;

// defined in "HAC/imported_root.h"
class imported_root;
class imported_root_list;

//-----------------------------------------------------------------------------
// declared in "AST/definition.h"
class definition;
class prototype;
class signature_base;
class process_signature;
class process_prototype;
class process_def;
class user_data_type_signature;
class user_data_type_prototype;
class user_data_type_def;
class enum_signature;
class enum_prototype;
class enum_member_list;
class enum_def;
class user_chan_type_signature;
class user_chan_type_prototype;
class user_chan_type_def;
class typedef_alias;

//-----------------------------------------------------------------------------
// declared in "AST/expr.h"
class inst_ref_expr;		// from "AST/expr_base.h"
class range;			// from "AST/range.h"
class range_list;		// from "AST/range_list.h"
class dense_range_list;
class unary_expr;
class prefix_expr;
// class postfix_expr;
class binary_expr;
class arith_expr;
class relational_expr;
class logical_expr;
class loop_operation;
class array_concatenation;
class loop_concatenation;
class array_construction;

//-----------------------------------------------------------------------------
// declared in "AST/reference.h"
class id_expr;
class member_expr;
class index_expr;
class reference_group_construction;

//-----------------------------------------------------------------------------
// declared in "AST/formal.h"
class data_param_id;
typedef	node_list<const data_param_id>		data_param_id_list;
class data_param_decl;
typedef	node_list<const data_param_decl>	data_param_decl_list;
class port_formal_id;
typedef	node_list<const port_formal_id>		port_formal_id_list;
class port_formal_decl;
typedef	node_list<const port_formal_decl>	port_formal_decl_list;
class template_formal_id;
typedef	node_list<const template_formal_id>	template_formal_id_list;
class template_formal_decl;
typedef	node_list<const template_formal_decl>	template_formal_decl_list;
struct template_formal_decl_list_pair;

//-----------------------------------------------------------------------------
// declared in "AST/instance.h"
class data_type_ref_list;
class instance_management;
class alias_list;
class actuals_base;
class instance_base;
typedef	node_list<const instance_base>		instance_id_list;
class instance_array;
class instance_declaration;
class instance_connection;
class connection_statement;
class instance_alias;
class loop_instantiation;
class guarded_instance_management;
typedef	node_list<const guarded_instance_management>
				 guarded_instance_management_list;
class conditional_instantiation;
class type_completion_statement;
class type_completion_connection_statement;

//-----------------------------------------------------------------------------
// declared in "AST/attribute.h"

struct generic_attribute;
typedef	node_list<const generic_attribute>	generic_attribute_list;

//-----------------------------------------------------------------------------
// declared in "AST/token.h"
class token_int;
class token_float;
class token_string;
class token_identifier;
class qualified_id;
class qualified_id_slice;
class token_keyword;
class token_bool;
class token_else;
class token_quoted_string;
class token_type;
class token_datatype;
class token_int_type;
class token_bool_type;
class token_paramtype;
class token_pbool_type;
class token_pint_type;
class token_preal_type;

//-----------------------------------------------------------------------------
typedef	node_position		char_punctuation_type;
typedef	node_position		string_punctuation_type;
typedef	keyword_position	generic_keyword_type;

//-----------------------------------------------------------------------------
// declared in "AST/parse_context.h"
class context;

//-----------------------------------------------------------------------------
}	// end namespace parser
}	// end namespace HAC

#endif	// __HAC_AST_AST_FWD_H__

