stdlib ¶
Char ¶
RegexMatchableObject ¶
Bases: MatchableObject
To match atoms with regular expressions
Source code in python/hyperon/stdlib.py
__eq__ ¶
Compares the equality of this ValueObject with another based on their content.
Source code in python/hyperon/atoms.py
__repr__ ¶
Returns the object's ID if present, or a string representation of its content if not.
Source code in python/hyperon/atoms.py
copy ¶
Returns a copy of this GroundedObject instance.
Note: Currently, this method returns the original instance.
serialize ¶
Serialize standard Python values. This implementation is used to pass Python values into the foreign runtime.
Source code in python/hyperon/atoms.py
text_ops ¶
Add text operators
repr: convert Atom to string. parse: convert String to Atom. stringToChars: convert String to tuple of Char. charsToString: convert tuple of Char to String.
see test_stdlib.py for examples.