1 /* @(#) pfcompil.h 96/12/18 1.11 */
3 #ifndef _pforth_compile_h
4 #define _pforth_compile_h
6 /***************************************************************
7 ** Include file for PForth Compiler
10 ** Copyright 1994 3DO, Phil Burk, Larry Polansky, Devid Rosenboom
12 ** The pForth software code is dedicated to the public domain,
13 ** and any third party may reproduce, distribute and modify
14 ** the pForth software code or any derivative works thereof
15 ** without any compensation or license. The pForth software
16 ** code is provided on an "as is" basis without any warranty
17 ** of any kind, including, without limitation, the implied
18 ** warranties of merchantability and fitness for a particular
19 ** purpose and their equivalents under the laws of any jurisdiction.
21 ***************************************************************/
27 Err ffPushInputStream( FileStream *InputFile );
28 ExecToken NameToToken( const ForthString *NFA );
29 FileStream * ffConvertSourceIDToStream( cell id );
30 FileStream *ffPopInputStream( void );
31 cell ffConvertStreamToSourceID( FileStream *Stream );
32 cell ffFind( const ForthString *WordName, ExecToken *pXT );
33 cell ffFindC( const char *WordName, ExecToken *pXT );
34 cell ffFindNFA( const ForthString *WordName, const ForthString **NFAPtr );
35 cell ffIncludeFile( FileStream *InputFile );
36 cell ffNumberQ( const char *FWord, cell *Num );
37 cell ffRefill( void );
38 cell ffTokenToName( ExecToken XT, const ForthString **NFAPtr );
39 cell *NameToCode( ForthString *NFA );
40 cfDictionary *pfBuildDictionary( int32 HeaderSize, int32 CodeSize );
41 char *ffWord( char c );
42 const ForthString *NameToPrevious( const ForthString *NFA );
43 int32 FindSpecialCFAs( void );
44 int32 FindSpecialXTs( void );
45 int32 NotCompiled( const char *FunctionName );
46 int32 ffInterpret( void );
47 void CreateDicEntry( ExecToken XT, const ForthStringPtr FName, uint32 Flags );
48 void CreateDicEntryC( ExecToken XT, const char *CName, uint32 Flags );
49 void ff2Literal( cell dHi, cell dLo );
50 void ffALiteral( cell Num );
53 void ffCreate( void );
54 void ffCreateSecondaryHeader( const ForthStringPtr FName);
56 void ffFinishSecondary( void );
57 void ffLiteral( cell Num );
60 void ffSemiColon( void );
61 void ffStringCreate( ForthStringPtr FName);
62 void ffStringDefer( const ForthStringPtr FName, ExecToken DefaultXT );
65 void ffFPLiteral( PF_FLOAT fnum );
72 #endif /* _pforth_compile_h */