Loading...
Searching...
No Matches
boolStela.hpp
Go to the documentation of this file.
1
2
#pragma once
3
4
#include "
stela/ast/valStela.hpp
"
5
6
namespace
by {
7
13
class
_nout
boolStela
:
public
valStela
{
14
BY(
CLASS
(
boolStela
,
valStela
),
VISIT
())
15
16
public
:
17
boolStela
(
nbool
val
,
const
std::string& name =
""
);
18
boolStela
(
const
std::string&
rawVal
,
const
std::string& name =
""
);
19
boolStela
(
const
nchar
*
rawVal
,
const
std::string& name =
""
);
20
// a bare literal like boolStela("true") must keep reaching the string ctor
21
// above, so the numeric ones are refused rather than left to convert.
22
boolStela
(
nint
val
,
const
std::string& name =
""
) =
delete
;
23
boolStela
(
nflt
val
,
const
std::string& name =
""
) =
delete
;
24
};
25
}
// namespace by
by::boolStela
Boolean literal — the BOOLVAL form of stela source.
Definition
boolStela.hpp:13
by::valStela
Scalar value — the abstract base of every leaf form.
Definition
valStela.hpp:21
by::noWrap
Rich logging support with polymorphic type conversion.
Definition
richLog.hpp:34
valStela.hpp