Main Page | Data Structures | File List | Data Fields | Globals

vocabfuncts.h

Go to the documentation of this file.
00001 #ifndef _TOKE_VOCABFUNCTS_H
00002 #define _TOKE_VOCABFUNCTS_H
00003 
00004 /*
00005  *                     OpenBIOS - free your system!
00006  *                         ( FCode tokenizer )
00007  *
00008  *  This program is part of a free implementation of the IEEE 1275-1994
00009  *  Standard for Boot (Initialization Configuration) Firmware.
00010  *
00011  *  Copyright (C) 2001-2005 Stefan Reinauer, <stepan@openbios.org>
00012  *
00013  *  This program is free software; you can redistribute it and/or modify
00014  *  it under the terms of the GNU General Public License as published by
00015  *  the Free Software Foundation; version 2 of the License.
00016  *
00017  *  This program is distributed in the hope that it will be useful,
00018  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  *  GNU General Public License for more details.
00021  *
00022  *  You should have received a copy of the GNU General Public License
00023  *  along with this program; if not, write to the Free Software
00024  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA
00025  *
00026  */
00027 
00028 /* **************************************************************************
00029  *
00030  *      External/Prototype definitions for Vocabulary functions
00031  *           in dictionary.c for Tokenizer
00032  *
00033  *      (C) Copyright 2005 IBM Corporation.  All Rights Reserved.
00034  *      Module Author:  David L. Paktor    dlpaktor@us.ibm.com
00035  *
00036  **************************************************************************** */
00037 
00038 
00039 #include "types.h"
00040 #include "ticvocab.h"
00041 
00042 
00043 /* ************************************************************************** *
00044  *
00045  *      Global Variables Exported
00046  *
00047  **************************************************************************** */
00048 
00049 extern bool scope_is_global;
00050 
00051 /* ************************************************************************** *
00052  *
00053  *      Function Prototypes / Functions Exported:
00054  *
00055  **************************************************************************** */
00056 
00057 
00058 tic_hdr_t *lookup_core_word( char *tname);
00059 bool exists_in_core( char *name);
00060 bool handle_core_word( char *tname );
00061 bool create_core_alias( char *new_name, char *old_name);
00062 
00063 void enter_global_scope( void );
00064 void resume_device_scope( void );
00065 
00066 tic_hdr_t *lookup_current( char *name);
00067 bool exists_in_current( char *tname);
00068 bool handle_current( char *tname );
00069 tic_hdr_t *lookup_in_dev_node( char *tname);
00070 void add_to_current( char *name,
00071                            TIC_P_DEFLT_TYPE fc_token,
00072                                fwtoken definer,
00073                                    bool define_token);
00074 void hide_last_colon ( void );
00075 void reveal_last_colon ( void );
00076 bool create_current_alias( char *new_name, char *old_name );
00077 
00078 void emit_token( const char *fc_name);
00079 tic_hdr_t *lookup_token( char *tname);
00080 bool entry_is_token( tic_hdr_t *test_entry );
00081 void token_entry_warning( tic_hdr_t *t_entry);
00082 
00083 tic_hdr_t *lookup_shared_word( char *tname);
00084 bool handle_shared_word( char *tname );
00085 tic_hdr_t *lookup_shared_f_exec_word( char *tname);
00086 
00087 void init_dictionary( void );
00088 void reset_normal_vocabs( void );
00089 void reset_vocabs( void );
00090 
00091 
00092 #endif   /*  _TOKE_VOCABFUNCTS_H    */

Generated on Fri Aug 18 14:03:39 2006 for Toke1.0 by  doxygen 1.4.4