comparison lwcc/lex.c @ 296:83fcc1ed6ad6 ccdev

Checkpoint lwcc development Initial untested version of the preprocessor with macro expansion but without file inclusion.
author William Astle <lost@l-w.ca>
date Sat, 14 Sep 2013 20:04:38 -0600
parents 4b17780f2777
children 6112c67728ba
comparison
equal deleted inserted replaced
295:4b17780f2777 296:83fcc1ed6ad6
699 699
700 case '0': case '1': case '2': case '3': case '4': 700 case '0': case '1': case '2': case '3': case '4':
701 case '5': case '6': case '7': case '8': case '9': 701 case '5': case '6': case '7': case '8': case '9':
702 strbuf = strbuf_new(); 702 strbuf = strbuf_new();
703 numlit: 703 numlit:
704 ttype = TOK_NUMBER;
704 strbuf_add(strbuf, c); 705 strbuf_add(strbuf, c);
705 for (;;) 706 for (;;)
706 { 707 {
707 c = preproc_lex_fetch_byte(pp); 708 c = preproc_lex_fetch_byte(pp);
708 if (!((c == '_') || (c >= '0' && c <= '9') || (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z'))) 709 if (!((c == '_') || (c >= '0' && c <= '9') || (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')))