MWCC/includes/compiler/CPrepTokenizer.h

33 lines
911 B
C
Raw Permalink Normal View History

2022-11-07 03:06:21 +00:00
#ifndef COMPILER_CPREPTOKENIZER_H
#define COMPILER_CPREPTOKENIZER_H
#include "compiler/common.h"
#include "compiler/tokens.h"
#ifdef __MWERKS__
#pragma options align=mac68k
#endif
extern short prepskipnextchar(void);
extern short prepnextchar(void);
2023-01-10 11:05:21 +00:00
extern short prepnextstringchar(StringPtr str, Boolean flag);
2022-11-07 03:06:21 +00:00
extern void CPrep_MatchChar(char ch, Boolean flag);
extern char *CPrep_MatchChar2(char *start, char ch, Boolean flag);
extern short prepcurchar(void);
2023-01-10 11:05:21 +00:00
extern char *ReadIdentifier(const char *p);
extern StringPtr CPrep_SkipNewComment(StringPtr str);
extern Boolean skipendoflinematch(StringPtr str, short token);
2022-11-07 03:06:21 +00:00
extern void skipendofline(void);
extern void CPrep_SkipAsmComment(void);
extern short lookahead(void);
extern short lookahead_noeol(void);
extern short lex(void);
extern short plex(void);
extern short lexidentifier(void);
#ifdef __MWERKS__
#pragma options align=reset
#endif
#endif