7 #define SYMBOLS "{}()[].,;+-*/&|<>=~"
8 #define SPACES "\t\n\r "
10 int has_more_tokens(char *pC
)
20 char *advance(char *pC
)
23 /* skip past C++ style comments */
24 if(*pC
== '/' && *(pC
+1) == '/')
26 while(*pC
!= '\n' && *pC
!= EOF
)
29 if(*pC
== '\n') { pC
++; }
31 /* skip past C style comments */
32 if(*pC
== '/' && *(pC
+1) == '*')
38 pC
+= 2; /* move past end of comment */
41 /* advance past spaces and newline chars */
43 while((strchr(SPACES
, ch
)) != NULL
)
53 ttype
token_type(void)
71 char *identifier(char *str
)