2005-05-01 11:48:36 +00:00
|
|
|
#ifndef __Lexer_h
|
|
|
|
#define __Lexer_h
|
|
|
|
#include "SchemeObject.h"
|
|
|
|
#include "Symbol.h"
|
|
|
|
|
2005-05-06 23:25:06 +00:00
|
|
|
@interface Lexer: SchemeObject
|
2005-05-01 11:48:36 +00:00
|
|
|
{
|
|
|
|
string source;
|
2005-05-02 04:58:22 +00:00
|
|
|
string filename;
|
2011-03-25 07:46:32 +00:00
|
|
|
int linenum;
|
2005-05-01 11:48:36 +00:00
|
|
|
}
|
2005-05-02 04:58:22 +00:00
|
|
|
+ (id) newFromSource: (string) s file: (string) f;
|
|
|
|
- (id) initWithSource: (string) s file: (string) f;
|
2011-02-14 13:39:43 +00:00
|
|
|
- (SchemeObject *) nextToken;
|
2011-03-25 07:46:32 +00:00
|
|
|
- (int) lineNumber;
|
2005-05-01 11:48:36 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif //__Lexer_h
|