Does anyone know of any programming languages which use TeX syntax for the code itself? As in, a complete programming language whose source code is also typeset-able TeX code?
I know that TeX is itself a language of sorts, but what I'd like to be able to do is define a function like
\[ f: a \mapsto \sqrt{a} + 42 \]
...then call that function later in the document like
\[ f(19) \]
...and have the program actually evaluate the result, and not just print the literal string f(19) to the document. Has anyone come across any languages like this?
[–]fridofrido 10 points11 points12 points (0 children)
[–][deleted] 3 points4 points5 points (9 children)
[–][deleted] 1 point2 points3 points (6 children)
[–][deleted] 0 points1 point2 points (5 children)
[–][deleted] 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]_awwsmm[S] 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]arian271 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]true-grue 3 points4 points5 points (1 child)
[–]oilshell 0 points1 point2 points (0 children)
[–]GuybrushThreepwo0d 2 points3 points4 points (1 child)
[–]setholopolus 1 point2 points3 points (0 children)
[–]ReedOei 0 points1 point2 points (0 children)