Skip to content

Latest commit

 

History

History
12 lines (6 loc) · 550 Bytes

File metadata and controls

12 lines (6 loc) · 550 Bytes

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.)