Using Swift as a embedded scripting language for a macOS App?

someone tried this: Demo of my Swift Interpreter that uses SwiftSyntax but this is done by an Swift Interpreter (closed sourse) which parse the swift to AST.