Why convert LOBSTER to PY?
People assume Lobster maps to .py because its syntax looks Python-esque, but that resemblance is only surface deep. Lobster relies on static typing, compile-time reference-counting memory management, and its own OpenGL/SDL engine that have no automatic equivalent in Python, so a mechanical conversion would produce nothing that runs.
How to convert LOBSTER to PY
Compile to C++ instead (Lobster --cpp) OPEN-SOURCE
If you need a portable, fast build rather than Python, run lobster --cpp my.lobster to emit C++ that compiles into a native executable.
Bundle as a pakfile (Lobster --pak) OPEN-SOURCE
To distribute the program itself, run lobster --pak my.lobster to produce a default.lpak you ship with the Lobster runtime.
Rewrite by hand in Python FREE
Port the program's logic manually into Python, replacing Lobster's built-in graphics calls with a Python library such as pygame. There is no automated shortcut.
About these formats
A .lobster file holds source code written in the Lobster programming language, a statically typed language with Python-like indentation created by Wouter van Oortmerssen and aimed mainly at…
Open .LOBSTER details →A .py file is a Python source code file - plain text containing a program or script written in the Python language. To read the code, open it in any text editor. To run it, install Python…
Open .PY details →Quality & what to watch
- There is no automated Lobster-to-Python converter; any port is a manual rewrite.
- Lobster's static types and built-in OpenGL/SDL engine have no direct Python equivalent, so graphics code must be reimplemented against a Python library.
- A hand port will not match Lobster's performance or behavior exactly and needs its own testing.
Frequently asked questions
Is there a Lobster-to-Python transpiler?
.lobster source.Why does Lobster look so much like Python then?
What should I do if I need Python?
--cpp or --pak outputs instead.Can I at least reuse the graphics code?
pygame.