WONKY



LOG | FILES | OVERVIEW


#ifndef WONKY_ID_NODE_C
#define WONKY_ID_NODE_C WONKY_ID_NODE_C

#include <id_node.h>

struct Automata_Node* get_new_id_node(struct Automata_Node *base,enum Source_Chars delta)
{
	struct Automata_Node *ret;
	enum Source_Chars i;

	ret=wonky_malloc(sizeof(struct Automata_Node));	

	ret->action=AUTOMATA_ACTION_DISPENSE_TOKEN;
	ret->keyword=KW_ID;
	ret->preprocessing_keyword=KW_ID;
	ret->data=NULL;
	
	base->delta[delta]=ret;

	for(i=0;i<CHAR_ENUM_END;++i)
		ret->delta[i]=id_node->delta[i];

	return ret;
}


#endif