blob: 30eccd40f6b0926a06a48f96f44f7552a85f9f9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/* LameTeX.C
*
* A LaTeX compatible text formatter that can handle arbitrary-shaped margins
* described in PostScript.
*
* Copyright 1992 Jonathan Monsarrat. Permission given to freely distribute,
* edit and use as long as this copyright statement remains intact.
*
* PreVersion 1.0 begun 7/28/92
* Version 1.0 8/31/92 -- major LaTeX features, stealth commands, fonts
* Version 1.1 9/7/92 -- added \ref and ASCII formatting
*/
#include "Global.h"
FileInput *Global::files;
Stack *Global::stack;
Labels *Global::labels;
/* The main entry point to LameTeX. */
main(int argc, char *argv[])
{
cerr << "This is LameTeX, C++ Version 1.1" << endl;
Global::files = new FileInput(argc,argv);
Global::stack = new Stack();
Global::labels = new Labels();
for(Token token = Token(); token.isvalid(); token = Token())
token.handle();
Global::stack->shutdown();
}
|