Commit MetaInfo

Revisión8fdb786f59eb117f167328e5c371f3c7db30ac77 (tree)
Tiempo2013-02-24 21:24:22
Autorttwilb <someone@exam...>
Commiterttwilb

Log Message

aiueo

Cambiar Resumen

Diferencia incremental

--- /dev/null
+++ b/Tokenizer.cpp
@@ -0,0 +1,19 @@
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/common_cpp.h
+++ b/common_cpp.h
@@ -27,9 +27,6 @@ class Stream
2727 public:
2828 Stream(void);
2929 ~Stream(void);
30-
31-
32-
3330 };
3431
3532 class TextFileStream : public Stream
@@ -55,3 +52,13 @@ public:
5552 Namespace(void);
5653 ~Namespace(void);
5754 };
55+
56+
57+/*** Tokenizer.cpp ***/
58+
59+class Tokenizer
60+{
61+public:
62+ Tokenizer(Stream st);
63+ ~Tokenizer(void);
64+};
--- /dev/null
+++ b/compile.cpp
@@ -0,0 +1,19 @@
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+void compile_onefile(Tokenizer tkns)
13+{
14+
15+}
16+
17+
18+
19+
--- a/toplev_cpp.cpp
+++ b/toplev_cpp.cpp
@@ -11,6 +11,15 @@
1111
1212 int toplev_main_cpp(int argc, const char** argv)
1313 {
14-
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+
1524 return 0;
1625 }
Show on old repository browser