OSDN Git Service

オブジェクト指向言語としての癖による生産性及びパフォーマンスの悪化を受け、C++での開発を断念。C言語への移行。
authorttwilb <someone@example.com>
Fri, 1 Mar 2013 09:08:41 +0000 (18:08 +0900)
committerttwilb <someone@example.com>
Fri, 1 Mar 2013 09:08:41 +0000 (18:08 +0900)
Definition.cpp [deleted file]
Stream.cpp [deleted file]
Tokenizer.cpp [deleted file]
cmdline.c [deleted file]
common_cpp.h [deleted file]
compile.cpp [deleted file]
error.cpp [deleted file]
toplev_cpp.cpp [deleted file]

diff --git a/Definition.cpp b/Definition.cpp
deleted file mode 100644 (file)
index fa6b35b..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#include "common_cpp.h"
-
-/*
-* Definition.cpp       --compile tokens
-* 
-* Copyright(C) 2013(Heisei 25) ttwilb All rights reserved.
-* 
-* This source code is released on the BSD licensing.
-* 
-*/
-
-
-
diff --git a/Stream.cpp b/Stream.cpp
deleted file mode 100644 (file)
index d27c9ec..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#include "common_cpp.h"
-
-/*** class Stream ***/
-
-Stream::Stream(void)
-{
-}
-
-Stream::~Stream(void)
-{
-}
-
-
-/*** class TextFileStream ***/
-
-int TextFileStream::Load(string fname)
-{
-       fileName = fname;
-       return 0;
-}
-
-TextFileStream::~TextFileStream(void)
-{
-}
diff --git a/Tokenizer.cpp b/Tokenizer.cpp
deleted file mode 100644 (file)
index 9b4c65d..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "common_cpp.h"
-
-/*
-* Tokenizer.cpp        --divide stream into tokens
-* 
-* Copyright(C) 2013(Heisei 25) ttwilb All rights reserved.
-* 
-* This source code is released on the BSD licensing.
-* 
-*/
-
-Tokenizer::Tokenizer(Stream st)
-{
-}
-
-
-Tokenizer::~Tokenizer(void)
-{
-}
diff --git a/cmdline.c b/cmdline.c
deleted file mode 100644 (file)
index 013d03d..0000000
--- a/cmdline.c
+++ /dev/null
@@ -1,12 +0,0 @@
-#include "common.h"
-
-/*
-* cmdline.c    --glent interactive user interface
-* 
-* Copyright(C) 2013(Heisei 25) ttwilb All rights reserved.
-* 
-* This source code is released on the BSD licensing.
-* 
-*/
-
-
diff --git a/common_cpp.h b/common_cpp.h
deleted file mode 100644 (file)
index 923c94c..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-
-extern"C"
-{
-       #include "common.h"
-}
-
-/*
-* common_cpp.h --glent main header for C++
-* 
-* Copyright(C) 2013(Heisei 25) ttwilb All rights reserved.
-* 
-* This source code is released on the BSD licensing.
-* 
-*/
-
-
-#include <iostream>
-#include <string>
-
-using namespace std;
-
-
-/*** Stream.cpp ***/
-
-class Stream
-{
-public:
-       Stream(void);
-       ~Stream(void);
-};
-
-class TextFileStream : public Stream
-{
-public:
-       TextFileStream(void);
-       ~TextFileStream(void);
-
-       int TextFileStream::Load(string fname);
-
-private:
-       string fileName;
-
-       
-};
-
-
-/*** error.cpp ***/
-
-void show_err(char* msg);
-
-
-/*** Tokenizer.cpp ***/
-
-class Tokenizer
-{
-public:
-       Tokenizer(Stream st);
-       bool isNull();
-};
-
-
-/*** Definition ***/
-
-class Definition
-{
-};
diff --git a/compile.cpp b/compile.cpp
deleted file mode 100644 (file)
index b538718..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-#include "common_cpp.h"
-
-/*
-* compile.cpp  --compile tokens
-* 
-* Copyright(C) 2013(Heisei 25) ttwilb All rights reserved.
-* 
-* This source code is released on the BSD licensing.
-* 
-*/
-
-int compile_onefile(Tokenizer tkns)
-{
-       Definition def = compile_definition(tkns);
-
-       if(!tkns.isNull())
-       {
-               //err: too many '}' token and the tree structure was destroyed.
-               show_err("Too many '}' tokens");
-
-       }else
-       {
-               //TODO: register def to the default namespace (with good definition name)
-       }
-}
-
-Definition compile_definition(Tokenizer tkns)
-{
-
-}
-
-
-
-
diff --git a/error.cpp b/error.cpp
deleted file mode 100644 (file)
index 160f4cd..0000000
--- a/error.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-#include "common_cpp.h"
-
-/*
-* error.cpp    --show errors
-* 
-* Copyright(C) 2013(Heisei 25) ttwilb All rights reserved.
-* 
-* This source code is released on the BSD licensing.
-* 
-*/
-
-void show_err(char* msg)
-{
-       cout << "ERROR: " << msg << endl;
-}
diff --git a/toplev_cpp.cpp b/toplev_cpp.cpp
deleted file mode 100644 (file)
index fc0d9ec..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-#include "common_cpp.h"
-
-/*
-* toplev_cpp.cpp       --glent entry point
-* 
-* Copyright(C) 2013(Heisei 25) ttwilb All rights reserved.
-* 
-* This source code is released on the BSD licensing.
-* 
-*/
-
-int toplev_main_cpp(int argc, const char** argv)
-{
-       int i;
-
-       for(i = 0; i < argc; i++)
-       {
-               TextFileStream st = TextFileStream();
-               st.Load(string(argv[i]));
-               Tokenizer tk(st);
-
-       }
-
-       return 0;
-}