-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Structs] Added initial support for structs
- Loading branch information
Showing
24 changed files
with
1,988 additions
and
1,571 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#ifndef OCCA_LANG_STATEMENT_STRUCTSTATEMENT_HEADER | ||
#define OCCA_LANG_STATEMENT_STRUCTSTATEMENT_HEADER | ||
|
||
#include <occa/lang/statement/statement.hpp> | ||
#include <occa/lang/type/struct.hpp> | ||
|
||
namespace occa { | ||
namespace lang { | ||
class structStatement : public statement_t { | ||
public: | ||
struct_t &struct_; | ||
|
||
structStatement(blockStatement *up_, | ||
struct_t &struct_); | ||
structStatement(blockStatement *up_, | ||
const structStatement& other); | ||
|
||
virtual statement_t& clone_(blockStatement *up_) const; | ||
|
||
virtual int type() const; | ||
virtual std::string statementName() const; | ||
|
||
bool addStructToParentScope(); | ||
|
||
virtual void print(printer &pout) const; | ||
}; | ||
} | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.