Replies: 1 comment 1 reply
-
Thanks for your interesting in expanding Fable @BrothersRM! Unfortunately, we haven't abstracted yet the language target in the compiler, so there are a few places you need to wire manually to add a new language, but the compiler should help you along the way. These are the modules you need to create to add a new language:
These are usually in a language-specific folder within What I would do is take one of the languages as base and transform it until it looks like TCL :) I would suggest Dart. You can try to start duplicating all Dart files and whenever there's a language switch, as in src/Fable.Cli/Pipeline.fs. Or to make it easier, in your experimental branch you can just replace Dart with TCL incrementally. We can add Dart files later. Not sure how's the testing story with TCL but I will also try to setup a minimal test suite quickly so you can progress with confidence. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone. I'm interested in investigating TCL as a compile target for Fable.
TCL is used extensively in the hardware design industry, as it's the only language a lot of our tooling understands. We end up writing very long, difficult to maintain scripts that would greatly benefit from the type-safety and rigor of F# and its toolchain.
Where would I get started exploring this? I've used F# and Fable for a while, but I've never done much work with compilers or looked at the internals of Fable.
The main site for the language is linked below.
https://www.tcl.tk/
Beta Was this translation helpful? Give feedback.
All reactions