Permalink
Browse files

Reorganization of the directory tree. From here git may fail tracking…

… source files moved to src directory.
  • Loading branch information...
1 parent 5848db9 commit 5dd60af5587233c0e32b69b18c0f370f4c92632f @franapoli committed Oct 27, 2012
View
@@ -0,0 +1,10 @@
+project (LGLCompiler)
+cmake_minimum_required (VERSION 2.6)
+file(GLOB lglc_SRC
+ "src/*.h"
+ "src/*.cpp"
+ "src/*.cc"
+)
+add_executable(lglc ${lglc_SRC})
+install (TARGETS lglc DESTINATION bin)
+
View
@@ -1,17 +0,0 @@
-/*
- * CallStack.cpp
- *
- * Created on: 23/mag/2010
- * Author: ciccio
- */
-
-#include "CallStack.h"
-
-CallStack::CallStack() {
- // TODO Auto-generated constructor stub
-
-}
-
-CallStack::~CallStack() {
- // TODO Auto-generated destructor stub
-}
View
@@ -1,26 +0,0 @@
-/*
- * CallStack.h
- *
- * Created on: 23/mag/2010
- * Author: ciccio
- */
-
-#ifndef CALLSTACK_H_
-#define CALLSTACK_H_
-
-#include "Frame.h"
-#include <stack>
-#include "Linkable.h"
-
-class CallStack: public std::stack<Frame> {
-public:
- CallStack();
- virtual ~CallStack();
- Linkable &Run(void) {
- Linkable &g = top().run();
- pop();
- return g;
- }
-};
-
-#endif /* CALLSTACK_H_ */
View
@@ -1,19 +0,0 @@
-/*
- * SymbolTable.cpp
- *
- * Created on: 06/mag/2010
- * Author: ciccio
- */
-
-#include "Environment.h"
-#include "NameSpace.h"
-
-Environment::Environment() {
- NameSpace *global = new NameSpace;
- this->addNameSpace("global", *global);
-
-}
-
-Environment::~Environment() {
- // TODO Auto-generated destructor stub
-}
View
@@ -1,17 +0,0 @@
-/*
- * Function.cpp
- *
- * Created on: 23/mag/2010
- * Author: ciccio
- */
-
-#include "Function.h"
-
-Function::Function() {
- // TODO Auto-generated constructor stub
-
-}
-
-Function::~Function() {
- // TODO Auto-generated destructor stub
-}
View
@@ -1,23 +0,0 @@
-/*
- * Function.h
- *
- * Created on: 23/mag/2010
- * Author: ciccio
- */
-
-#ifndef FUNCTION_H_
-#define FUNCTION_H_
-#include <string>
-
-class Function {
-public:
- Function();
- virtual ~Function();
-
-private:
- long _srcoffset;
- std::string _name;
- unsigned char _numpar;
-};
-
-#endif /* FUNCTION_H_ */
View
@@ -0,0 +1,27 @@
+
+A Makefile can be generated using cmake (you need to install cmake if
+you don't have it already).
+
+In order to create the Makefile:
+
+ > cd build
+ > cmake ..
+
+Then to build lglc:
+
+ > make
+
+Or to install it:
+
+ > make install
+
+Once installed, test lglc by issuing the following command from the
+samples directory:
+
+ > lglc test.lf
+
+You should get a file named test.lf.dot. If you have Graphviz
+installed (http://www.graphviz.org), you can obtain a pdf graph
+visualization:
+
+ > dot test.lf.dot -o test.pdf
Oops, something went wrong.

0 comments on commit 5dd60af

Please sign in to comment.