[llvm-commits] [hlvm] r38004 - in /hlvm/trunk/hlvm/Reader/Yaml: Makefile YamlReader.cpp YamlReader.h
Reid Spencer
reid at x10sys.com
Sat Jul 7 16:58:52 PDT 2007
Author: reid
Date: Sat Jul 7 18:58:51 2007
New Revision: 38004
URL: http://llvm.org/viewvc/llvm-project?rev=38004&view=rev
Log:
Initial slice at YamlReader implementation.
Added:
hlvm/trunk/hlvm/Reader/Yaml/YamlReader.cpp
hlvm/trunk/hlvm/Reader/Yaml/YamlReader.h
Modified:
hlvm/trunk/hlvm/Reader/Yaml/Makefile
Modified: hlvm/trunk/hlvm/Reader/Yaml/Makefile
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/hlvm/Reader/Yaml/Makefile?rev=38004&r1=38003&r2=38004&view=diff
==============================================================================
--- hlvm/trunk/hlvm/Reader/Yaml/Makefile (original)
+++ hlvm/trunk/hlvm/Reader/Yaml/Makefile Sat Jul 7 18:58:51 2007
@@ -1,5 +1,9 @@
##===- hlvm/Reader/XML/Makefile ----------------------------*- Makefile -*-===##
LEVEL=../../..
DIRS=
+LIBRARYNAME = HLVMYamlReader
+DONT_BUILD_RELINKED := 1
+BUILD_ARCHIVE := 1
+INSTALL_INCLUDES := YamlReader.h
include $(LEVEL)/Makefile.hlvm
Added: hlvm/trunk/hlvm/Reader/Yaml/YamlReader.cpp
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/hlvm/Reader/Yaml/YamlReader.cpp?rev=38004&view=auto
==============================================================================
--- hlvm/trunk/hlvm/Reader/Yaml/YamlReader.cpp (added)
+++ hlvm/trunk/hlvm/Reader/Yaml/YamlReader.cpp Sat Jul 7 18:58:51 2007
@@ -0,0 +1,36 @@
+//
+// Copyright (C) 2006 HLVM Group. All Rights Reserved.
+//
+// This program is open source software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License (GPL) as published by
+// the Free Software Foundation; either version 2 of the License, or (at your
+// option) any later version. You should have received a copy of the GPL in a
+// file named COPYING that was included with this program; if not, you can
+// obtain a copy of the license through the Internet at http://www.fsf.org/
+//
+// This program is distributed in the hope that it will be useful, but
+// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+// for more details.
+//
+////////////////////////////////////////////////////////////////////////////////
+/// @file hlvm/Reader/Yaml/YamlReader.cpp
+/// @author Reid Spencer <reid at hlvm.org> (original author)
+/// @date 2006/05/04
+/// @since 0.1.0
+/// @brief Declares the class hlvm::YamlReader.cpp
+////////////////////////////////////////////////////////////////////////////////
+
+#include "YamlReader.h"
+#include <syck.h>
+
+namespace hlvm {
+
+class YamlReaderImpl : public YamlReader {
+};
+
+YamlReader* YamlReader::create() {
+ return new YamlReaderImpl();
+}
+
+} // hlvm
Added: hlvm/trunk/hlvm/Reader/Yaml/YamlReader.h
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/hlvm/Reader/Yaml/YamlReader.h?rev=38004&view=auto
==============================================================================
--- hlvm/trunk/hlvm/Reader/Yaml/YamlReader.h (added)
+++ hlvm/trunk/hlvm/Reader/Yaml/YamlReader.h Sat Jul 7 18:58:51 2007
@@ -0,0 +1,64 @@
+//
+// Copyright (C) 2006 HLVM Group. All Rights Reserved.
+//
+// This program is open source software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License (GPL) as published by
+// the Free Software Foundation; either version 2 of the License, or (at your
+// option) any later version. You should have received a copy of the GPL in a
+// file named COPYING that was included with this program; if not, you can
+// obtain a copy of the license through the Internet at http://www.fsf.org/
+//
+// This program is distributed in the hope that it will be useful, but
+// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+// for more details.
+//
+////////////////////////////////////////////////////////////////////////////////
+/// @file hlvm/Reader/Yaml/YamlReader.h
+/// @author Reid Spencer <reid at hlvm.org> (original author)
+/// @date 2006/05/04
+/// @since 0.1.0
+/// @brief Declares the class hlvm::YamlReader.h
+////////////////////////////////////////////////////////////////////////////////
+
+#ifndef HLVM_YAML_READER_YAMLREADER_H
+#define HLVM_YAML_READER_YAMLREADER_H
+
+#include <llvm/System/Path.h>
+
+namespace hlvm {
+
+ /// This class provides an interface to reading HLVM's AST via a Yaml
+ /// document.
+ /// @brief Interface to Reading Yaml AST documents.
+ class YamlReader
+ {
+ /// @name Constructors
+ /// @{
+ public:
+ /// The constructor static method to create a YamlReader. This creates
+ /// the correct sublcass of YamlReader which is an implementation detail.
+ static YamlReader* create();
+ protected:
+ YamlReader() {}
+
+ /// @}
+ /// @name Accessors
+ /// @{
+ public:
+
+ /// @}
+ /// @name Mutators
+ /// @{
+ public:
+ void parse(const llvm::sys::Path& path);
+
+ /// @}
+ /// @name Data
+ /// @{
+ protected:
+ /// @}
+ };
+
+} // hlvm
+#endif
More information about the llvm-commits
mailing list