You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
375 B
29 lines
375 B
|
|
#include "latexparser.h"
|
|
|
|
#include <fstream.h>
|
|
#include <iostream.h>
|
|
|
|
//extern void yylex();
|
|
extern TQPtrList<Element>* _root;
|
|
extern bool texparse(TQString);
|
|
|
|
LatexParser::LatexParser()
|
|
{
|
|
}
|
|
|
|
LatexParser::LatexParser(TQString fileIn)
|
|
{
|
|
_filename= fileIn;
|
|
}
|
|
|
|
LatexParser::~LatexParser()
|
|
{
|
|
}
|
|
|
|
TQPtrList<Element>* LatexParser::parse()
|
|
{
|
|
texparse(_filename);
|
|
return _root;
|
|
}
|