Skip to content

simondoesstuff/TexToIL

Repository files navigation

TeX -> IL Code

TexToIL is a compiler for TeX math expressions. They are lexed, parsed, assembled into an AST, and ultimately compiled into a lambda function. The variables in the original expression are used as parameters in the lambda function which can be called with new parameters for free without recompiling the original expression.


Example usage can be seen in Program.cs

Demo Gif

(Here we use + instead of \pm because the lambda function must have a single return value.)

About

Compile TeX math expressions into lambda expressions for c#

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages