This commit is contained in:
Paul 2000-12-11 20:28:41 +00:00
parent f6a49831f1
commit c83e9cbd5a
12 changed files with 786 additions and 471 deletions

View file

@ -15,11 +15,34 @@ protected:
virtual int yyaction(int action);
public:
#line 23 "C:\\spongebob\\Utils\\scripter\\lexer.l"
#line 24 "C:\\spongebob\\Utils\\scripter\\lexer.l"
// place any extra class members here
int openInputFile(char *_filename);
int closeInputFile();
#line 23 "C:\\spongebob\\Utils\\scripter\\lexer.h"
void setCurrentParser(class myparser *_parser) {m_currentParser=_parser;}
class myparser *getCurrentParser() {return m_currentParser;}
int getCurrentLine() {return m_lineCount+1;}
int getCurrentCharOnLine() {return m_currentCharOnLine;}
int getErrorCount() {return m_errorCount;}
void error() {m_errorCount++;}
// Overridden lexer functions
int yygetchar();
private:
FILE *m_fhInput;
int m_charCount;
int m_lineCount;
int m_currentCharOnLine;
int m_errorCount;
class myparser *m_currentParser;
#line 46 "C:\\spongebob\\Utils\\scripter\\lexer.h"
};
#ifndef YYLEXNAME