Skip to content

shabbywu/squirrel-py

Repository files navigation

PySquirrel - A Python binding for Squirrel programming language.

Squirrel is a high level imperative, object-oriented programming language, designed to be a light-weight scripting language that fits in the size, memory bandwidth, and real-time requirements of applications like video games. PySquirrel is intended to be a comprehensive binding of Squirrel 3 for Python.

github-stars

CI status
Linux/macOS Travis Travis-CI
MSVC 2019 AppVeyor
pip builds Pip Actions Status
cibuildwheel Wheels Actions Status

An project built with pybind11. This requires Python 3.7+; for older versions of Python, check the commit history.

Installation

  • pip install squirrel-lang

License

pybind11 is provided under a BSD-style license that can be found in the LICENSE file. By using, distributing, or contributing to this project, you agree to the terms and conditions of this license.

Test call

from squirrel import SQVM

vm = SQVM()
vm.execute("""
sq <- {
function say () {
    return "hello world"
}
}
""")
sq = vm.get_roottable()["sq"]
assert str(sq.say()) == "hello world"