only \n and ' ' are valid whitespace characters

This commit is contained in:
Andrew Kelley 2015-11-24 20:37:53 -07:00
parent c7f4cadbc7
commit cda10f0577
2 changed files with 5 additions and 5 deletions

View file

@ -41,9 +41,13 @@ readable, safe, optimal, and concise code to solve any computing problem.
## Roadmap ## Roadmap
* Debug/Release mode. * Debug/Release mode.
* don't hardcode the link against libc
* C style comments. * C style comments.
* Unit tests. * Unit tests.
* Simple .so library * Simple .so library
* Multiple files
* figure out integers
* implement a simple game using SDL2
* How should the Widget use case be solved? In Genesis I'm using C++ and inheritance. * How should the Widget use case be solved? In Genesis I'm using C++ and inheritance.
### Primitive Numeric Types: ### Primitive Numeric Types:

View file

@ -14,11 +14,7 @@
#define WHITESPACE \ #define WHITESPACE \
' ': \ ' ': \
case '\t': \ case '\n'
case '\n': \
case '\f': \
case '\r': \
case 0xb
#define DIGIT \ #define DIGIT \
'0': \ '0': \