interpreters: add Tcl support#3646
Draft
csanchezdll wants to merge 1 commit into
Draft
Conversation
Tcl is added using The Jim Interpreter. Jim is an opensource small-footprint implementation of the Tcl programming language. It implements a large subset of Tcl and adds new features like references with garbage collection, closures, built-in Object Oriented Programming system, Functional Programming commands, first-class arrays and UTF-8 support. Signed-off-by: Carlos Sánchez de La Lama <csanchezdll@gmail.com>
| JIMTCL_VERSION = 0.83 | ||
| JIMTCL_TARBALL = $(JIMTCL_VERSION).tar.gz | ||
| JIMTCL_UNPACK = jimtcl | ||
| JIMTCL_URL_BASE = https://github.com/msteveb/jimtcl/archive/refs/tags |
Contributor
There was a problem hiding this comment.
it's possible to add Cmake too?
Contributor
Author
There was a problem hiding this comment.
Sure! I'll add it.
linguini1
reviewed
Jul 16, 2026
|
|
||
| config INTERPRETERS_JIMTCL | ||
| bool "The Jim (TCL) Interpreter" | ||
| default n |
Contributor
There was a problem hiding this comment.
You should add depends on here for the config enabling setjmp support if that's a requirement as you mentioned
Contributor
|
Cool! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tcl is added using The Jim Interpreter. Jim is an opensource small-footprint implementation of the Tcl programming language. It implements a large subset of Tcl and adds new features like references with garbage collection, closures, built-in Object Oriented Programming system, Functional Programming commands, first-class arrays and UTF-8 support.
Impact
Build should be straightforward, just enable the application inside the "Interpreters" section of the configuration. You need to make sure you have
setjmpsupport, so consider enabling it in "Build Setup" -> "Customize Header Files".Testing
Tested on master, with a minimal custom board with a STM32H5. Planning to test on a nucleo as soon as I can get one.