aboutsummaryrefslogtreecommitdiff
path: root/include/openvic-dataloader/v2script/Parser.hpp
diff options
context:
space:
mode:
author George L. Albany <Megacake1234@gmail.com>2023-09-05 21:38:13 +0200
committer GitHub <noreply@github.com>2023-09-05 21:38:13 +0200
commit870068cf33057348000b1422d4bf40772aaf0b87 (patch)
treef7569029f45ec019b0387e63aa7b94d1da7cc03a /include/openvic-dataloader/v2script/Parser.hpp
parent238ab9dfaa8ec7a48142154d227605ae367d53d1 (diff)
parent1d2c5ce39d12adcb584d586952a59e15f2495f67 (diff)
Merge pull request #9 from OpenVicProject/node-line-column
Diffstat (limited to 'include/openvic-dataloader/v2script/Parser.hpp')
-rw-r--r--include/openvic-dataloader/v2script/Parser.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/openvic-dataloader/v2script/Parser.hpp b/include/openvic-dataloader/v2script/Parser.hpp
index 1c524b2..fb9022a 100644
--- a/include/openvic-dataloader/v2script/Parser.hpp
+++ b/include/openvic-dataloader/v2script/Parser.hpp
@@ -43,12 +43,18 @@ namespace ovdl::v2script {
const FileNode* get_file_node() const;
+ void generate_node_location_map();
+
+ const ast::Node::line_col get_node_begin(const ast::NodeCPtr node) const;
+ const ast::Node::line_col get_node_end(const ast::NodeCPtr node) const;
+
Parser(Parser&&);
Parser& operator=(Parser&&);
~Parser();
private:
+ friend class ::ovdl::v2script::ast::Node;
class BufferHandler;
std::unique_ptr<BufferHandler> _buffer_handler;
std::unique_ptr<FileNode> _file_node;