src/tinyape.h

Go to the documentation of this file.
00001 /* Tinya(J)P : this is not yet another (Java) parser.
00002  * Copyright (C) 2007 Damien Leroux
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00017  */
00018 
00019 #ifndef __TINYAPE_H__
00020 #define __TINYAPE_H__
00021 
00022 #include "tinyap.h"
00023 
00024 #ifndef _WAST_DEFINED
00026         typedef struct _walkable_ast_t* wast_t;
00027         #define _WAST_DEFINED
00028 #endif
00029 
00031 wast_t wa_new(const char* op, int l, int c);
00033 void wa_del(wast_t);
00035 wast_t wa_father(wast_t);
00037 const char* wa_op(wast_t);
00039 int wa_opd_count(wast_t);
00041 wast_t wa_opd(wast_t,const unsigned int);
00043 void wa_add(wast_t,wast_t);
00044 
00046 int wa_row(wast_t);
00048 int wa_col(wast_t);
00049 
00051 wast_t make_wast(ast_node_t a);
00053 ast_node_t make_ast(wast_t a);
00054 
00056 typedef enum {
00058         Up,
00060         Down,
00062         Next,
00064         Done,
00066         Error
00067 } WalkDirection;
00068 
00069 
00071 typedef struct _pilot_t* pilot_t;
00072 
00073 
00074 #endif

Generated on Sun May 11 14:32:44 2008 for TINYAP by  doxygen 1.5.3