Engine¶
Internal documentation for the amalgam.engine
module.
-
class
amalgam.engine.
Engine
[source]¶ Class that serves as the frontend for parsing and running programs.
-
parser
¶ A
parser.Parser
instance.- Type
-
environment
¶ An
environment.Environment
instance containing the built-in functions and a reference to theengine.Engine
instance wrapped within aamalgams.Internal
, accessible through the ~engine~ key.
-
parse_and_run
(text: str) → amalgam.amalgams.Amalgam[source]¶ Parses and runs the given text string.
-