/*
 *	aegis - project change supervisor
 *	Copyright (C) 1991-1994, 1999, 2001-2003 Peter Miller;
 *	All rights reserved.
 *
 *	This program is free software; you can redistribute it and/or modify
 *	it under the terms of the GNU General Public License as published by
 *	the Free Software Foundation; either version 2 of the License, or
 *	(at your option) any later version.
 *
 *	This program is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *
 *	You should have received a copy of the GNU General Public License
 *	along with this program; if not, write to the Free Software
 *	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
 *
 * MANIFEST: interface definition for aegis/parse.c
 */

#ifndef PARSE_H
#define PARSE_H

#include <main.h>
#include <str.h>
#include <type.h>

typedef struct sem_ty sem_ty;
struct sem_ty
{
	type_ty	*type;
	sem_ty	*next;
	void	*addr;
};

void sem_push(type_ty *, void *);
void sem_pop(void);
void sem_integer(long);
void sem_real(double);
void sem_string(string_ty *);
void sem_enum(string_ty *);
void sem_list(void);
void sem_field(string_ty *);

void *parse(string_ty *, type_ty *);
void *parse_env(const char *, type_ty *);
struct input_ty; /* existence */
void *parse_input(struct input_ty *, type_ty *);

#endif /* PARSE_H */
