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

Unified Diff: forth/ForthParser.h

Issue 1559823002: remove forth experiment (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 12 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 | « forth/Forth.cpp ('k') | forth/ForthTests.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: forth/ForthParser.h
diff --git a/forth/ForthParser.h b/forth/ForthParser.h
deleted file mode 100644
index 2138d4809fccd584709438b9826986ae3a026433..0000000000000000000000000000000000000000
--- a/forth/ForthParser.h
+++ /dev/null
@@ -1,46 +0,0 @@
-
-/*
- * Copyright 2011 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-#ifndef ForthParser_DEFINED
-#define ForthParser_DEFINED
-
-#include "SkTDict.h"
-//#include "SkString.h"
-
-class ForthWord;
-class FCode;
-
-class ForthParser {
-public:
- ForthParser();
- ~ForthParser();
-
- const char* parse(const char text[], FCode*);
-
- void addWord(const char name[], ForthWord* word) {
- this->add(name, strlen(name), word);
- }
-
- void add(const char name[], size_t len, ForthWord* word) {
- // SkString str(name, len);
- // SkDebugf("add %s %p\n", str.c_str(), word);
- SkDEBUGCODE(bool isNewWord = )fDict.set(name, len, word);
- SkASSERT(isNewWord);
- }
-
- ForthWord* find(const char name[], size_t len) const {
- ForthWord* word;
- return fDict.find(name, len, &word) ? word : NULL;
- }
-
-private:
- void addStdWords();
-
- SkTDict<ForthWord*> fDict;
-};
-
-#endif
« no previous file with comments | « forth/Forth.cpp ('k') | forth/ForthTests.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698