Loading...
Searching...
No Matches
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
14 class _nout srcFile: public node {
15 BY(CLASS(srcFile, node), VISIT())
16
17 public:
18 srcFile(const std::string& fileName, const std::string& contents);
19 srcFile();
20
21 public:
22 using super::prioritize;
23 priorType prioritize(const args& a) const override;
24
25 using super::eval;
26 str eval(const args& a) override;
27
28 scope& subs() override;
29 const std::string& getFileName() const;
30 const std::string& getContents() const;
31
32 private:
33 std::string _fileName;
34 std::string _contents;
35 };
36}
Function or object evaluation arguments.
Definition args.hpp:22
Base class for all AST nodes in the byeol language.
Definition node.hpp:195
Source code file information.
Definition srcFile.hpp:14
Definition tnarr.hpp:9
priorType
Definition tpriorities.hpp:10
to Top