NAME

Logic::Relational::Atom - Represents a symbolic constant (atom) in the logic engine.

SYNOPSIS

use Logic::Relational::Atom;
my $atom = Logic::Relational::Atom->new('gold');
say $atom->value; # gold

DESCRIPTION

Logic::Relational::Atom represents a symbolic constant/atom in the relational logic engine. These are immutable constants and are used in structural unification.

METHODS

new

Constructor. Takes a single scalar value.

value

Returns the raw scalar value.

as_string

Returns the string representation of the atom.

freshen

Returns the atom itself (since constants do not contain variables).