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;
|
|
|
|
integer 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-01-09 10:41:24 +00:00
|
|
|
- (SchemeObject []) nextToken;
|
2005-05-02 04:58:22 +00:00
|
|
|
- (integer) lineNumber;
|
2005-05-01 11:48:36 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif //__Lexer_h
|