The Machine Perception Toolbox

[Introduction]- [News]- [Download]- [Screenshots]- [Manual (pdf)]- [Forums]- [API Reference]- [Repository ]

 

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

parse.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 1993, 2000 Christopher Seiwald.
00003  *
00004  * This file is part of Jam - see jam.c for Copyright information.
00005  */
00006 
00007 /*  This file is ALSO:
00008  *  (C) Copyright David Abrahams 2001. Permission to copy, use,
00009  *  modify, sell and distribute this software is granted provided this
00010  *  copyright notice appears in all copies. This software is provided
00011  *  "as is" without express or implied warranty, and with no claim as
00012  *  to its suitability for any purpose.
00013  */
00014 
00015 #ifndef PARSE_DWA20011020_H
00016 # define PARSE_DWA20011020_H
00017 # include "frames.h"
00018 # include "modules.h"
00019 # include "lists.h"
00020 
00021 /*
00022  * parse.h - make and destroy parse trees as driven by the parser
00023  */
00024 
00025 /*
00026  * parse tree node
00027  */
00028 
00029 struct _PARSE {
00030     LIST    *(*func)( PARSE *p, FRAME *frame );
00031     PARSE   *left;
00032     PARSE   *right;
00033     PARSE   *third;
00034     char    *string;
00035     char    *string1;
00036     int      num;
00037     int      refs;
00038 /*    module*  module; */
00039     char*    rulename;
00040     char*    file;
00041     int      line;
00042 } ;
00043 
00044 void    parse_file( char *f, FRAME* frame );
00045 void    parse_save( PARSE *p );
00046 
00047 PARSE * parse_make( 
00048     LIST    *(*func)( PARSE *p, FRAME* frame ),
00049     PARSE   *left,
00050     PARSE   *right,
00051     PARSE   *third,
00052     char    *string,
00053     char    *string1,
00054     int      num );
00055 
00056 void    parse_refer( PARSE *p );
00057 void    parse_free( PARSE *p );
00058 LIST*   parse_evaluate( PARSE *p, FRAME* frame );
00059 
00060 #endif
00061 

Generated on Mon Nov 8 17:07:46 2004 for MPT by  doxygen 1.3.9.1