Loading...
Searching...
No Matches
args.hpp
Go to the documentation of this file.
1
2#pragma once
3
5#include "core/ast/obj.hpp"
6
7namespace by {
8
22 class _nout args: public narr {
23 BY(CLASS(args, narr))
24
25 public:
26 args();
27 args(const narr& rhs);
28 args(const baseObj* me);
29 args(const baseObj* me, const narr& rhs);
30 args(const me& rhs);
31
32 public:
40 const me& setMe(const node& me) const;
41 const me& setMe(const node* me) const BY_SIDE_FUNC(me, setMe(*me), *this);
42 node* getMe() const;
43
47 std::string toStr() const;
48
57 tmay<me> evalAll(const params& ps) const;
58 tmay<me> evalAll(const params* it) const BY_SIDE_FUNC(evalAll);
59
60 private:
61 mutable str _me;
62 };
63}
Function or object evaluation arguments.
Definition args.hpp:22
const me & setMe(const node &me) const
Sets the "me" object (context) for these arguments.
tmay< me > evalAll(const params &ps) const
Evaluates all arguments against a given set of parameters.
std::string toStr() const
Base class for representing byeol objects.
Definition baseObj.hpp:73
Base class for all AST nodes in the byeol language.
Definition node.hpp:195
Function parameter list container.
Definition params.hpp:16
to Top