Commit MetaInfo

Revisiónc4a5c380dd19d71e7fa9ad746d3b8eb6981e2478 (tree)
Tiempo2013-03-01 18:08:41
Autorttwilb <someone@exam...>
Commiterttwilb

Log Message

オブジェクト指向言語としての癖による生産性及びパフォーマンスの悪化を受け、C++での開発を断念。C言語への移行。

Cambiar Resumen

  • delete: Definition.cpp
  • delete: Stream.cpp
  • delete: Tokenizer.cpp
  • delete: cmdline.c
  • delete: common_cpp.h
  • delete: compile.cpp
  • delete: error.cpp
  • delete: toplev_cpp.cpp

Diferencia incremental

--- a/Definition.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
1-#include "common_cpp.h"
2-
3-/*
4-* Definition.cpp --compile tokens
5-*
6-* Copyright(C) 2013(Heisei 25) ttwilb All rights reserved.
7-*
8-* This source code is released on the BSD licensing.
9-*
10-*/
11-
12-
13-
--- a/Stream.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
1-#include "common_cpp.h"
2-
3-/*** class Stream ***/
4-
5-Stream::Stream(void)
6-{
7-}
8-
9-Stream::~Stream(void)
10-{
11-}
12-
13-
14-/*** class TextFileStream ***/
15-
16-int TextFileStream::Load(string fname)
17-{
18- fileName = fname;
19- return 0;
20-}
21-
22-TextFileStream::~TextFileStream(void)
23-{
24-}
--- a/Tokenizer.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
1-#include "common_cpp.h"
2-
3-/*
4-* Tokenizer.cpp --divide stream into tokens
5-*
6-* Copyright(C) 2013(Heisei 25) ttwilb All rights reserved.
7-*
8-* This source code is released on the BSD licensing.
9-*
10-*/
11-
12-Tokenizer::Tokenizer(Stream st)
13-{
14-}
15-
16-
17-Tokenizer::~Tokenizer(void)
18-{
19-}
--- a/cmdline.c
+++ /dev/null
@@ -1,12 +0,0 @@
1-#include "common.h"
2-
3-/*
4-* cmdline.c --glent interactive user interface
5-*
6-* Copyright(C) 2013(Heisei 25) ttwilb All rights reserved.
7-*
8-* This source code is released on the BSD licensing.
9-*
10-*/
11-
12-
--- a/common_cpp.h
+++ /dev/null
@@ -1,66 +0,0 @@
1-
2-extern"C"
3-{
4- #include "common.h"
5-}
6-
7-/*
8-* common_cpp.h --glent main header for C++
9-*
10-* Copyright(C) 2013(Heisei 25) ttwilb All rights reserved.
11-*
12-* This source code is released on the BSD licensing.
13-*
14-*/
15-
16-
17-#include <iostream>
18-#include <string>
19-
20-using namespace std;
21-
22-
23-/*** Stream.cpp ***/
24-
25-class Stream
26-{
27-public:
28- Stream(void);
29- ~Stream(void);
30-};
31-
32-class TextFileStream : public Stream
33-{
34-public:
35- TextFileStream(void);
36- ~TextFileStream(void);
37-
38- int TextFileStream::Load(string fname);
39-
40-private:
41- string fileName;
42-
43-
44-};
45-
46-
47-/*** error.cpp ***/
48-
49-void show_err(char* msg);
50-
51-
52-/*** Tokenizer.cpp ***/
53-
54-class Tokenizer
55-{
56-public:
57- Tokenizer(Stream st);
58- bool isNull();
59-};
60-
61-
62-/*** Definition ***/
63-
64-class Definition
65-{
66-};
--- a/compile.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
1-#include "common_cpp.h"
2-
3-/*
4-* compile.cpp --compile tokens
5-*
6-* Copyright(C) 2013(Heisei 25) ttwilb All rights reserved.
7-*
8-* This source code is released on the BSD licensing.
9-*
10-*/
11-
12-int compile_onefile(Tokenizer tkns)
13-{
14- Definition def = compile_definition(tkns);
15-
16- if(!tkns.isNull())
17- {
18- //err: too many '}' token and the tree structure was destroyed.
19- show_err("Too many '}' tokens");
20-
21- }else
22- {
23- //TODO: register def to the default namespace (with good definition name)
24- }
25-}
26-
27-Definition compile_definition(Tokenizer tkns)
28-{
29-
30-}
31-
32-
33-
34-
--- a/error.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
1-#include "common_cpp.h"
2-
3-/*
4-* error.cpp --show errors
5-*
6-* Copyright(C) 2013(Heisei 25) ttwilb All rights reserved.
7-*
8-* This source code is released on the BSD licensing.
9-*
10-*/
11-
12-void show_err(char* msg)
13-{
14- cout << "ERROR: " << msg << endl;
15-}
--- a/toplev_cpp.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
1-#include "common_cpp.h"
2-
3-/*
4-* toplev_cpp.cpp --glent entry point
5-*
6-* Copyright(C) 2013(Heisei 25) ttwilb All rights reserved.
7-*
8-* This source code is released on the BSD licensing.
9-*
10-*/
11-
12-int toplev_main_cpp(int argc, const char** argv)
13-{
14- int i;
15-
16- for(i = 0; i < argc; i++)
17- {
18- TextFileStream st = TextFileStream();
19- st.Load(string(argv[i]));
20- Tokenizer tk(st);
21-
22- }
23-
24- return 0;
25-}
Show on old repository browser