summaryrefslogtreecommitdiffstats
path: root/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-10-27 00:32:13 -0400
committerTavian Barnes <tavianator@gmail.com>2009-10-27 00:48:47 -0400
commit5ec5ae21da84cc96676b6cae39a5ded820a5492a (patch)
tree4b057822c1b824509d8b0a6c1ba91ba7b611a9c7 /dimension
parent30754dcca0f8a4d553e9c865f7cd27f85d2919ee (diff)
downloaddimension-5ec5ae21da84cc96676b6cae39a5ded820a5492a.tar.xz
New tokenizer test.
Diffstat (limited to 'dimension')
-rw-r--r--dimension/tokenize.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dimension/tokenize.c b/dimension/tokenize.c
index efa7fce..fc715b8 100644
--- a/dimension/tokenize.c
+++ b/dimension/tokenize.c
@@ -53,7 +53,7 @@ dmnsn_tokenize(FILE *file)
break;
case '}':
- token.type = DMNSN_LBRACE;
+ token.type = DMNSN_RBRACE;
token.value = NULL;
dmnsn_array_push(tokens, &token);
break;
@@ -123,12 +123,12 @@ dmnsn_token_name(dmnsn_token_type token_type)
{
switch (token_type) {
case DMNSN_LBRACE:
- return "DMNSN_LBRACE";
+ return "{";
case DMNSN_RBRACE:
- return "DMNSN_RBRACE";
+ return "}";
default:
- return "UNRECOGNIZED-TOKEN";
+ return "unrecognized-token";
}
}