Browse Source

slight stuff

QlowB 7 years ago
parent
commit
30d84e2b6e
4 changed files with 3 additions and 4 deletions
  1. 1 1
      src/Ast.h
  2. 1 0
      src/AstVisitor.cpp
  3. 0 1
      src/Semantic.h
  4. 1 2
      src/main.cpp

+ 1 - 1
src/Ast.h

@@ -66,7 +66,7 @@ namespace qlow
 
 
     namespace sem
     namespace sem
     {
     {
-        class SemanticObject;
+        struct SemanticObject;
     }
     }
 }
 }
 
 

+ 1 - 0
src/AstVisitor.cpp

@@ -36,6 +36,7 @@ std::unique_ptr<sem::SemanticObject> AstVisitor::visit(ast::MethodDefinition& as
 
 
 std::unique_ptr<sem::SemanticObject> AstVisitor::visit(ast::VariableDeclaration& ast)
 std::unique_ptr<sem::SemanticObject> AstVisitor::visit(ast::VariableDeclaration& ast)
 {
 {
+    
 }
 }
 
 
 
 

+ 0 - 1
src/Semantic.h

@@ -10,7 +10,6 @@ namespace qlow
 {
 {
     namespace sem
     namespace sem
     {
     {
-
         /*!
         /*!
          * \brief contains owning pointers to elements
          * \brief contains owning pointers to elements
          */
          */

+ 1 - 2
src/main.cpp

@@ -15,8 +15,7 @@ int main()
 
 
         std::cout << "parsing completed!" << std::endl;
         std::cout << "parsing completed!" << std::endl;
 
 
-        qlow::sem::createFromAst(*parsedClasses.get());
-        qlow::sem::SymbolTable<qlow::sem::Class> semClasses;
+        qlow::sem::SymbolTable<qlow::sem::Class> semClasses = qlow::sem::createFromAst(*parsedClasses.get());
 
 
         for (auto& [a, b] : semClasses) {
         for (auto& [a, b] : semClasses) {
             std::cout << "ay: " << a << std::endl;
             std::cout << "ay: " << a << std::endl;