37 lines
720 B
C
37 lines
720 B
C
|
|
#ifndef NODE_IMPLS_H
|
||
|
|
#define NODE_IMPLS_H
|
||
|
|
|
||
|
|
#include "ast_foundation.h"
|
||
|
|
|
||
|
|
namespace SyntaxNode {
|
||
|
|
class Document : public Ast::ASTList {
|
||
|
|
public:
|
||
|
|
Document(const QString &path);
|
||
|
|
virtual ~Document() = default;
|
||
|
|
|
||
|
|
virtual QString filePath() const;
|
||
|
|
|
||
|
|
// ASTTree interface
|
||
|
|
public:
|
||
|
|
virtual QString toString() const override;
|
||
|
|
|
||
|
|
private:
|
||
|
|
QString path_store;
|
||
|
|
};
|
||
|
|
|
||
|
|
class NodeChain : public Ast::ASTList {
|
||
|
|
public:
|
||
|
|
NodeChain(ASTList *parent, const QString &name);
|
||
|
|
|
||
|
|
// ASTTree interface
|
||
|
|
public:
|
||
|
|
virtual QString toString() const override;
|
||
|
|
|
||
|
|
private:
|
||
|
|
QString name_store;
|
||
|
|
};
|
||
|
|
|
||
|
|
} // namespace SyntaxNode
|
||
|
|
|
||
|
|
#endif // NODE_IMPLS_H
|