summaryrefslogtreecommitdiff
path: root/src/macro_rules/pattern_checks.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-05-22 22:39:26 +0800
committerJohn Hodge <tpg@mutabah.net>2016-05-22 22:39:26 +0800
commit1f9a4180a3b54f85f37919ba4ca709f8e8250bb6 (patch)
treec00cef798d26bf5f68f1657b01a490533365f015 /src/macro_rules/pattern_checks.hpp
parenteba9d8f840a5b81f0188d109e63631c9a34c28e9 (diff)
downloadmrust-1f9a4180a3b54f85f37919ba4ca709f8e8250bb6.tar.gz
macro_rules - Rework pattern matching to not use try-catch
Diffstat (limited to 'src/macro_rules/pattern_checks.hpp')
-rw-r--r--src/macro_rules/pattern_checks.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/macro_rules/pattern_checks.hpp b/src/macro_rules/pattern_checks.hpp
new file mode 100644
index 00000000..820a9ef4
--- /dev/null
+++ b/src/macro_rules/pattern_checks.hpp
@@ -0,0 +1,10 @@
+/*
+ */
+#pragma once
+
+extern bool is_token_path(eTokenType tt);
+extern bool is_token_pat(eTokenType tt);
+extern bool is_token_type(eTokenType tt);
+extern bool is_token_expr(eTokenType tt);
+extern bool is_token_stmt(eTokenType tt);
+