+++ /dev/null
-#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.
-*
-*/
-
-
-
+++ /dev/null
-#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)
-{
-}
+++ /dev/null
-#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)
-{
-}
+++ /dev/null
-#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.
-*
-*/
-
-
+++ /dev/null
-
-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
-{
-};
+++ /dev/null
-#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)
-{
-
-}
-
-
-
-
+++ /dev/null
-#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;
-}
+++ /dev/null
-#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;
-}