This is lex.h in view mode; [Download] [Up]
/***********************************************************************
*
* External definitions for the Lexer module.
*
* $Revision: 1.3 $
* $Date: 1995/07/18 06:25:59 $
* $Author: sbb $
*
***********************************************************************/
/***********************************************************************
*
* Copyright (C) 1990, 1991, 1992, 1994, 1995 Free Software Foundation, Inc.
* Written by Steve Byrne.
*
* This file is part of GNU Smalltalk.
*
* GNU Smalltalk 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 1, or (at your option) any later
* version.
*
* GNU Smalltalk 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
* GNU Smalltalk; see the file COPYING. If not, write to the Free Software
* Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
*
***********************************************************************/
/*
* Change Log
* ============================================================================
* Author Date Change
* sbb 23 Jun 95 Switched to GST header guard prefix.
*
* brd 15 Jun 95 Added isKernelFile() and
* getMethodSourceFromCurFile().
*
* sbb 30 May 95 Boolean => mst_Boolean (darn X!).
*
* sbyrne 3 Sep 89 added getCurFileName
*
* sbyrne 14 May 89 Created.
*
*/
#ifndef __GSTLEX__
#define __GSTLEX__
typedef enum {
unknownStreamType,
fileStreamType,
stringStreamType
#ifdef USE_READLINE
, readlineStreamType
#endif /* USE_READLINE */
} StreamType;
extern mst_Boolean reportErrors;
extern char *firstErrorStr, *firstErrorFile;
extern long firstErrorLine;
#ifdef USE_READLINE
extern OOP getCurReadline();
extern void pushReadlineString(), initializeReadline();
#endif /* USE_READLINE */
extern OOP getCurFileName(), getCurString();
extern void pushUNIXFile(), pushSmalltalkString(),
popStream(), clearMethodStartPos(),
setStreamInfo(), initChangesStream(),
resetChangesFile(), pushCString(), initLexer(),
errorf(), yyerror();
extern int getCurFilePos(), getMethodStartPos(), yylex();
extern StreamType getCurStreamType();
extern char *getMethodSourceFromCurFile();
extern mst_Boolean isKernelFile();
#endif /* __GSTLEX__ */
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.