aslrousta / mex

A TeX-inspired Macro Processor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MeX

MeX (stands for Macro eXpander) is a macro processing tool highly inspired by TeX originally written by Donald E. Knuth.

What IT IS:

  • To put it simply, a text transformation tool, somewhat like M4 and T4, but with a syntax very similar to TeX.
  • A fast macro processing tool with a minimal memory footprint.
  • A work in progress, far from complete.

What IT'S NOT:

  • A replacement for TeX or any other digital typesetting system; nor it's meant to be.
  • A production-ready solution.

TODO

  • Collapse consequent whitespaces.
  • Skip line comments (starting with #).
  • Clear shipped tokens from the input buffer.
  • Use hash-table to speed up token look-up.
  • Handle errors and buffer overruns.

License

MeX is published under GPL-3.0; see LICENSE for more details.

About

A TeX-inspired Macro Processor

License:GNU General Public License v3.0


Languages

Language:C 94.3%Language:CMake 5.7%