/pytcl

Minimal Tcl DSL interpreter in Python

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

pytcl

Minimal Tcl DSL interpreter in Python

Python package

Next steps

  • Variable expansion.
  • Recursive expressions.
  • expr
  • lists
  • arrays
  • conditionals (and thus expr)

Features to add

Interpreter

  • Save state to file.
  • Save tokenised script to file.
  • Count cost of calls and optionally limit.
  • Track and optionally limit memory used.
  • Virtual file system including stdio.
  • Exceptions with script line number and position.

Libraries

  • Importable libraries.
  • Command class
    • Help function.
    • Get number of expected args and maybe type.

Notes

https://python-packaging.readthedocs.io/en/latest/minimal.html https://craftinginterpreters.com/