Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Unified Diff: regexp2000/src/ast.cc

Issue 8760: Experimental regexp: Use new RegExp parser to test syntax. (Closed)
Patch Set: Parses regexp using new parser. Rebased patch. Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « regexp2000/src/ast.h ('k') | regexp2000/src/jsregexp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: regexp2000/src/ast.cc
diff --git a/regexp2000/src/ast.cc b/regexp2000/src/ast.cc
index c0c16dedee5df73af3c19691b456c73642dd40a6..915d8fd6e91dc524b338cf3a0c58689f6425dc8a 100644
--- a/regexp2000/src/ast.cc
+++ b/regexp2000/src/ast.cc
@@ -191,6 +191,23 @@ FOR_EACH_REG_EXP_NODE_TYPE(MAKE_ACCEPT)
#undef MAKE_ACCEPT
+#define MAKE_CONVERSION(Name) \
+ RegExp##Name* RegExpTree::As##Name() { \
+ return NULL; \
+ }
+ FOR_EACH_REG_EXP_NODE_TYPE(MAKE_CONVERSION)
+#undef MAKE_CONVERSION
+
+
+#define MAKE_CONVERSION(Name) \
+RegExp##Name* RegExp##Name::As##Name() { \
+ return this; \
+}
+FOR_EACH_REG_EXP_NODE_TYPE(MAKE_CONVERSION)
+#undef MAKE_CONVERSION
+
+
+
RegExpEmpty RegExpEmpty::kInstance;
« no previous file with comments | « regexp2000/src/ast.h ('k') | regexp2000/src/jsregexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698