8 #include <hilti/ast/expressions/ctor.h> 10 #include <spicy/compiler/detail/codegen/production.h> 20 spicy::Ctor ctor()
const {
return _ctor; };
22 std::optional<spicy::Type> type()
const {
return _ctor.type(); }
23 bool nullable()
const {
return false; }
24 bool eodOk()
const {
return nullable(); }
25 bool atomic()
const {
return true; }
26 int64_t tokenID()
const {
return production::tokenID(
hilti::util::fmt(
"%s|%s", _ctor, _ctor.type())); }
27 std::string render()
const {
return hilti::util::fmt(
"%s (%s)", _ctor, _ctor.type()); }
const std::string & symbol() const
Definition: production.h:191
Definition: production.h:170
Definition: production.h:25
std::string fmt(const char *fmt, const Args &... args)
Definition: util.h:80
Definition: location.h:17
ProductionBase(std::string symbol, Location l=location::None)
Definition: production.h:181