defSeqExpr.hpp
Go to the documentation of this file.
1
2#pragma once
3
4#include "core/ast/expr.hpp"
5
6namespace by {
7
8 class visitor;
9
14 class _nout defSeqExpr: public expr {
15 BY(CLASS(defSeqExpr, expr, expr::exprType), VISIT())
16 friend class func;
17 friend class verifier;
18
19 public:
20 defSeqExpr(const node& start, const node& end);
21
22 public:
23 using super::run;
24 str run(const args& a) override;
25
26 str getEval() const override;
27
28 const node& getStart() const;
29 const node& getEnd() const;
30
31 private:
32 str _start;
33 str _end;
34 };
35}
Function call arguments container.
Definition: args.hpp:13
seq definition expression
Definition: defSeqExpr.hpp:14
str getEval() const override
Deferred execution utility like defer keyword in other languages.
Definition: end.hpp:14
Type information for expression nodes
Definition: expr.hpp:22
Base class for all expressions.
Definition: expr.hpp:15
Function definition in byeol language.
Definition: func.hpp:20
Base class for all AST nodes in byeol language.
Definition: node.hpp:30
AST verifier for semantic analysis.
Definition: verifier.hpp:20