srcFile.hpp
Go to the documentation of this file.
1
2#pragma once
3
4#include "core/builtin/container/native/tnchain.inl"
5#include "core/ast/node.hpp"
6
7namespace by {
8
13 class _nout srcFile: public node {
14 BY(CLASS(srcFile, node), VISIT())
15
16 public:
17 srcFile(const std::string& fileName, const std::string& contents);
18 srcFile();
19
20 public:
21 using super::prioritize;
22 priorType prioritize(const args& a) const override;
23
24 using super::run;
25 str run(const args& a) override;
26
27 scope& subs() override;
28 const std::string& getFileName() const;
29 const std::string& getContents() const;
30
31 private:
32 std::string _fileName;
33 std::string _contents;
34 };
35}
Function call arguments container.
Definition: args.hpp:13
Base class for all AST nodes in byeol language.
Definition: node.hpp:30
Source file representation.
Definition: srcFile.hpp:13
priorType
the lower value, the higher priority.
Definition: tpriorities.hpp:8