summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-03-31 04:29:02 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-03-31 04:34:44 +0200
commit8e7ce62c2011b725c0f875a86b27e12c5489dae8 (patch)
tree028564b484e21ddf69545e298b99ac8944049b7f /src
parenta0cc8fcb087845096462b8f5790bdbc261d3f2a8 (diff)
downloadsolar-8e7ce62c2011b725c0f875a86b27e12c5489dae8.tar
solar-8e7ce62c2011b725c0f875a86b27e12c5489dae8.zip
lex, parser: fix a few numbers ;)
Diffstat (limited to 'src')
-rw-r--r--src/lex.cpp2
-rw-r--r--src/lex.hpp4
-rw-r--r--src/parser.hpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/lex.cpp b/src/lex.cpp
index a4c64c4..05a0a9d 100644
--- a/src/lex.cpp
+++ b/src/lex.cpp
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2013-2014, Matthias Schiffer <mschiffer@universe-factory.net>
+ Copyright (c) 2013-2015, Matthias Schiffer <mschiffer@universe-factory.net>
All rights reserved.
Redistribution and use in source and binary forms, with or without
diff --git a/src/lex.hpp b/src/lex.hpp
index ea8621b..36e3c92 100644
--- a/src/lex.hpp
+++ b/src/lex.hpp
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2013-2014, Matthias Schiffer <mschiffer@universe-factory.net>
+ Copyright (c) 2013-2015, Matthias Schiffer <mschiffer@universe-factory.net>
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -55,7 +55,7 @@ private:
size_t start;
size_t end;
size_t tok_len;
- char buffer[65556];
+ char buffer[65536];
bool advance();
diff --git a/src/parser.hpp b/src/parser.hpp
index 6d21796..552dc37 100644
--- a/src/parser.hpp
+++ b/src/parser.hpp
@@ -34,7 +34,7 @@
namespace solar {
enum parser_token_t {
- TOK_TERM = 1,
+ TOK_TERM = 256,
TOK_NONTERM,
TOK_BLOCK,
TOK_CHAR,