From cda10f0577fcf5794f1f583ff159311a1b186082 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 24 Nov 2015 20:37:53 -0700 Subject: [PATCH] only \n and ' ' are valid whitespace characters --- README.md | 4 ++++ src/tokenizer.cpp | 6 +----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index af763765c..4672054d0 100644 --- a/README.md +++ b/README.md @@ -41,9 +41,13 @@ readable, safe, optimal, and concise code to solve any computing problem. ## Roadmap * Debug/Release mode. + * don't hardcode the link against libc * C style comments. * Unit tests. * 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. ### Primitive Numeric Types: diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp index 0467dbcd1..9e825535e 100644 --- a/src/tokenizer.cpp +++ b/src/tokenizer.cpp @@ -14,11 +14,7 @@ #define WHITESPACE \ ' ': \ - case '\t': \ - case '\n': \ - case '\f': \ - case '\r': \ - case 0xb + case '\n' #define DIGIT \ '0': \