Kolaru / MathTeXEngine.jl

A latex math mode engine in pure Julia.
MIT License
97 stars 19 forks source link

Separate tokenization from the building of the TeXExpr #100

Closed Kolaru closed 8 months ago

Kolaru commented 1 year ago

Currently the parser tokenize the LaTeX code and parse the result in a single pass.

I now believe this is confusing, and it would be better to have two passes

  1. Use Automa without a stack to tokenize the code into commands.
  2. Go through the tokens with the current stack-logic to create the recursive TeXExpr.