News for hackers. Stuff that matters.
Re:LuaTeX 1.0.0 by patrickg on Wednesday September 28, 2016 @02:53AM (#12595896)
No, TeX is not a compiler by a common sense of a compiler (unless you say it compiles to PDF).

TeX's input grammer can change during the TeX run, so I believe it is impossible to make an equivalent of LLVM (unless I misunderstand the concept of LLVM).

Re:LuaTeX 1.0.0 by haberman on Wednesday September 28, 2016 @03:30AM (#12596011)
> No, TeX is not a compiler by a common sense of a compiler (unless you say it compiles to PDF).

That is exactly what I am saying.

> TeX's input grammer can change during the TeX run, so I believe it is impossible to make an equivalent of LLVM

The important part is not the grammar, but the internal representation. I don't know enough about TeX to know much about its internal representation post-parsing.

Re:LuaTeX 1.0.0 by Kristine1975 on Wednesday September 28, 2016 @04:04AM (#12596120)
> I don't know enough about TeX to know much about its internal representation post-parsing.

IIRC it's a stream of tokens. A token can be a character, a built-in command, a macro etc. During processing of this token stream macros are "expanded", i.e. replaced with their definition (recursively). It is possible to control this expansion process using built-in commands.