diff options
author | John Hodge <tpg@mutabah.net> | 2015-03-13 23:11:34 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2015-03-13 23:11:34 +0800 |
commit | 2cd588ca7d71b00c93429c733ce28d78cdd415eb (patch) | |
tree | 78907803c465d44fbfb4a7c6e23e8860ac060257 /src/parse/common.hpp | |
parent | 1e77e4894c4355272de8d0bfe391a29d44608604 (diff) | |
download | mrust-2cd588ca7d71b00c93429c733ce28d78cdd415eb.tar.gz |
Various other features for libcore, now on to loops
Diffstat (limited to 'src/parse/common.hpp')
-rw-r--r-- | src/parse/common.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parse/common.hpp b/src/parse/common.hpp index ff72920c..3bc599a9 100644 --- a/src/parse/common.hpp +++ b/src/parse/common.hpp @@ -3,6 +3,7 @@ #include <iostream>
#define GET_TOK(tok, lex) ((tok = lex.getToken()).type())
+#define LOOK_AHEAD(lex) (lex.lookahead(0))
#define GET_CHECK_TOK(tok, lex, exp) do {\
if((tok = lex.getToken()).type() != exp) { \
DEBUG("GET_CHECK_TOK " << __FILE__ << ":" << __LINE__); \
|