![]() |
PhoenixLecture
2.0.0
Set of tools to make lectures
|
Parse the pdata confguration file. More...
#include <PConfigParser.h>
Public Member Functions | |
void | addCommentConfig (const PMultiCommentConfig &commentConfig) |
Adds a comment config for the parser. More... | |
void | addCommentConfig (const PString &beginStringComment, const PString &endStringComment="\n") |
Adds a comment config for the parser. More... | |
bool | checkExpectedMatch (const PString &tokenExpected, const PString &tokenBefore="") |
Check if the tokenExpected match. More... | |
bool | checkExpectedToken (const PString &tokenExpected, const PString &tokenBefore="") |
Check if the p_currentToken == tokenExpected. More... | |
void | clearComment () |
Clear comment. More... | |
void | errorAt () |
Write a parsing error. More... | |
bool | fullParsing () |
Perform the full parsing pf data. More... | |
bool | getBookEnableFeedback () const |
Say if the book feedback if enable or not. More... | |
const PString & | getBookGitlabUrl () const |
Get the book gitlab url. More... | |
const PString & | getBookMail () const |
Get the book mail list. More... | |
const PLatexObj & | getBookMainPageLink () const |
Get the book main page link. More... | |
const PString & | getBookMasterProjectUrl () const |
Get the book master project url. More... | |
const PString & | getBookSideBarWidth () const |
Get the width of the book sidebar. More... | |
PFileParser * | getCurrentParser () |
Gets the current parser. More... | |
void | getCurrentTokenWithoutComment () |
Get the current token and skip the comment. More... | |
PString & | getLastComment () |
Get the last comment. More... | |
const PString & | getLastComment () const |
Get the last comment. More... | |
PMapBiblioEntry & | getMapBiblioEntry () |
Get the map of all bibliography entries. More... | |
const PMapBiblioEntry & | getMapBiblioEntry () const |
Get the map of all bibliography entries. More... | |
PLatexObj & | getSource () |
Get the current source. More... | |
const PLatexObj & | getSource () const |
Get the current source. More... | |
PString | getStrComposedOf (const PString &charset) |
Get the string composed of charset charcters. More... | |
std::vector< PString > & | getVecIncludeDir () |
Get the vector of include directories. More... | |
const std::vector< PString > & | getVecIncludeDir () const |
Get the vector of include directories. More... | |
bool | isMatch (const PString &patern, const PString &forbiddenCharBefore) |
Says if the patern match with the current caracters of the PFileParser. More... | |
bool | isMatch (const PString &token) |
Check if the given token matches the current read file. More... | |
PString | isMatch (const PVecString &vecToken) |
Check if the one entry of the vector of token matches. More... | |
bool | isMatchRewind (const PString &token) |
Check if the given token matches the current read file and goes back even if the token matches. More... | |
bool | isMatchSeq (const PVecString &patern, bool alwaysPopBack=false) |
Match a sequence of token in a vector. More... | |
PString | isMatchToken (const PVecString &vecToken) |
Check the matching between the current caracters and all the string in the vector but treats the string as a token (cannot be part of a word) More... | |
bool | load (const PPath &configFile) |
Load the PMultiFileParser with the configFile. More... | |
PConfigParser & | operator= (const PConfigParser &other) |
Definition of equal operator of PConfigParser. More... | |
PConfigParser (const PConfigParser &other) | |
Copy constructor of PConfigParser. More... | |
PConfigParser (const PString &installPrefix="") | |
Default constructeur of PConfigParser. More... | |
void | pointAtRow () |
Point the problem. More... | |
bool | saveCss () |
Save the css file. More... | |
void | setDebugMode (bool isDebugMode) |
Set if the PGenericParser is in debug mode. More... | |
void | setFileContent (const PString &fileContent) |
Set the file content to be parsed. More... | |
void | skipComment () |
Skip comment. More... | |
void | stopParsing () |
Stop the parsing of all the files. More... | |
void | unexpectedToken () |
Print unexpected token error. More... | |
virtual | ~PConfigParser () |
Destructeur of PConfigParser. More... | |
Protected Member Functions | |
void | addLatexObj (PLatexObj &parent, const PLatexObj &obj) |
Add latex obj in parent. More... | |
void | clearLatexObj (PLatexObj &obj) |
Clear a latex obj. More... | |
PPath | copyFile (const PPath &outputDir, const PPath &fileName) |
Copy a file. More... | |
void | copyPConfigParser (const PConfigParser &other) |
Copy function of PConfigParser. More... | |
void | copyPGenericParser (const PGenericParser &other) |
Copy function of PGenericParser. More... | |
PString | executeLatexCommand (const PString &inputStr) |
Execute the given latex command. More... | |
PPath | getAbsoluteFileName (const PPath &fileName) |
Get the absolute path of a file. More... | |
PString | getOptionStringBetweenBraces () |
Get optional string between braces {...}. More... | |
PString | getOptionStringBetweenHook () |
Get optional string between hooks [...]. More... | |
PString | getStringBetweenBraces (const PString &previousToken) |
Get the string between the braces {...}. More... | |
void | incrementCurrentChar (PLatexObj &textObj) |
Increment current char position. More... | |
void | loadCss (const PPath &inputDir) |
Load the css. More... | |
void | loadDirExtraEnvironement (const PPath &inputDir) |
Load the extra environements. More... | |
void | loadDirExtraEnvironementFile (const PPath &inputFile) |
Load the extra environements with input file. More... | |
void | loadDirExtraFunction (const PPath &inputDir) |
Load the extra functions. More... | |
void | loadDirExtraFunctionFile (const PPath &inputFile) |
Load the extra functions with input file. More... | |
void | loadDirExtraParser (const PPath &inputDir) |
Load the extra parsers. More... | |
void | loadDirExtraParserFile (const PPath &inputFile) |
Load the extra environements with input file. More... | |
void | loadMapFile () |
Load the map of copied files. More... | |
bool | parseBookEnableFeedback (PLatexObj &parent, PLatexObj &textObj) |
Parse the book enable feedback mode. More... | |
bool | parseBookGitlabUrl (PLatexObj &parent, PLatexObj &textObj) |
Parse the gitlab url in book mode. More... | |
bool | parseBookMail (PLatexObj &parent, PLatexObj &textObj) |
Parse the mail in book mode. More... | |
bool | parseBookMasterProject (PLatexObj &parent, PLatexObj &textObj) |
Parse the master project in book mode. More... | |
bool | parseBookSizeBarWidth (PLatexObj &parent, PLatexObj &textObj) |
Parse the width of the book sidebar. More... | |
virtual bool | parseFile () |
Parse the input file. More... | |
bool | parseGenericLatexObj (PLatexObj &parent, PLatexObj &textObj) |
Parse the generic latex function which have to be used in the latex parser and the markdown parser too. More... | |
bool | parseLabel (PLatexObj &parent, PLatexObj &textObj) |
Parse latex label. More... | |
bool | parseMainAuthor (PLatexObj &parent, PLatexObj &textObj) |
Parse the main author of the site. More... | |
bool | parseMainDate (PLatexObj &parent, PLatexObj &textObj) |
Parse the main date of the site. More... | |
bool | parseMainSubTitle (PLatexObj &parent, PLatexObj &textObj) |
Parse the main title of the site. More... | |
bool | parseMainTitle (PLatexObj &parent, PLatexObj &textObj) |
Parse the main title of the site. More... | |
bool | parseMonoParam (PLatexObj &parent, PLatexObj &textObj, const PString &functionName, PLatexType::PLatexType type) |
Parse all the functions which have mono parameter in braces {...}. More... | |
bool | parserGetEnv (PLatexObj &parent, PLatexObj &textObj) |
Parse a getenv function. More... | |
bool | playTextLatexObj (PLatexObj &parent, PLatexObj &textObj, bool isRemoveFirstLastSpace=false) |
Play the text latex obj. More... | |
virtual void | postLoadFile () |
Initialisation to be done just after loading a file. More... | |
virtual void | preLoadFile () |
Initialisation to be done just before loading a file. More... | |
void | saveMapFile () |
Save the map of copied files. More... | |
Protected Attributes | |
PString | p_bookGitlabUrl |
Gitlab url of the current sources of the project. More... | |
PString | p_bookMail |
Mail to be used to contact authors in book mode. More... | |
PLatexObj | p_bookMainPageLink |
Main page definition of the full site. More... | |
PString | p_bookMasterProjectUrl |
Master project url in book mode. More... | |
PString | p_bookSideBarWidth |
Witdh of the book side bar. More... | |
std::map< PString, PString > | p_cssContent |
Css of all the configurations. More... | |
PLatexObj | p_currentSource |
Current completed source. More... | |
PLatexObj | p_currentText |
Current text. More... | |
PString | p_currentToken |
CurrentToken parsed. More... | |
PPath | p_inputDirectory |
Input directory of the parser. More... | |
bool | p_isDebugMode |
True if be parse in debug mode. More... | |
bool | p_isEnableBookFeedback |
True to enable feedback in book mode. More... | |
PString | p_lastComment |
last comment More... | |
std::list< PFileParser > | p_listFileParser |
List of all the parsers for all the loaded files. More... | |
PMapBiblioEntry | p_mapBiblioEntry |
Map of all bibliography entries. More... | |
PMapFile | p_mapCopiedFile |
Map of copied files. More... | |
PPath | p_outputDirectory |
Output directory of the parser. More... | |
PFileParser * | p_parser |
Parser helper for the config file. More... | |
bool | p_run |
Run the parsing if true. More... | |
PVecLatexEnv | p_vecEnv |
Vector of all the environements. More... | |
PMapExtraEnv | p_vecExtraEnv |
Vector of extra environements. More... | |
PMapExtraEnv | p_vecExtraFunction |
Vector of extra function. More... | |
PVecParserEnv | p_vecExtraParser |
Vector of extra parser. More... | |
PVecLatexFunc | p_vecFunc |
Vector of all the functions. More... | |
std::vector< PString > | p_vecIncludeDir |
Vector of the include directories. More... | |
std::vector< PString > | p_vecNameExtraEnv |
Vector of the name of the extra environement. More... | |
std::vector< PString > | p_vecNameExtraFunction |
Vector of the name of the extra function. More... | |
std::vector< PString > | p_vecNameExtraParser |
Vector of the name of the extra environement. More... | |
std::vector< PString > | p_vecNameFunctionExtraEnv |
Vector of the name of the extra environement. More... | |
std::vector< PString > | p_vecNameFunctionExtraParser |
Vector of the function name of the extra environement. More... | |
std::vector< PString > | p_vecNameMarkdownExtraEnv |
Vector of the name of the extra environement (for markdown) More... | |
std::vector< PString > | p_vecNameMarkdownExtraParser |
Vector of the markdown name of the extra environement. More... | |
std::vector< PString > | p_vecRemoveLatexKeyword |
Vector of removed latex functions. More... | |
std::vector< PLatexSpeaker > | p_vecSpeaker |
Vector of all Speakers in the project. More... | |
Private Member Functions | |
void | initialisationPConfigParser (const PString &baseInstallPrefix) |
Initialisation function of the class PConfigParser. More... | |
void | initialisationPGenericParser (const PString &baseInstallPrefix) |
Initialisation function of the class PGenericParser. More... | |
void | initialisationPMultiFileParser (const PPath &inputDirectory, const PPath &outputDirectory) |
Initialisation function of the class PMultiFileParser. More... | |
bool | loadInclude (PLatexObj &parent, PLatexObj &textObj, const PPath &fileName) |
Load a included file. More... | |
bool | parseAddSpeaker (PLatexObj &parent, PLatexObj &textObj) |
Parse the addspeakers command. More... | |
bool | parseAllLatexObj (PLatexObj &parent, PLatexObj &textObj) |
Parse all the latex obj. More... | |
bool | parseBookMainPageLink (PLatexObj &parent, PLatexObj &textObj) |
Parse the book main page link. More... | |
bool | parseComment (PLatexObj &parent, PLatexObj &textObj) |
Parse a comment. More... | |
bool | parseComplexMonoParam (PLatexObj &parent, PLatexObj &textObj, const PString &functionName, PLatexType::PLatexType type) |
Parse all the functions which have complex mono parameter in braces {...}. More... | |
bool | parseDebug (PLatexObj &parent, PLatexObj &textObj) |
Parse the debug function. More... | |
bool | parseDots (PLatexObj &parent, PLatexObj &textObj) |
Parse a space paragraphe. More... | |
bool | parseDoubleInlineMath (PLatexObj &parent, PLatexObj &textObj) |
Parse an inline math formula. More... | |
bool | parseEnvironement (PLatexObj &parent, PLatexObj &textObj, const PString &environementName, PLatexType::PLatexType type) |
Parse latex environement. More... | |
bool | parseEnvironementContent (PLatexObj &parent, PLatexObj &textObj, const PString &environementName, PLatexType::PLatexType type, bool isAllowComment, bool isAllowMath, const PString &envBalise) |
Parse latex environement. More... | |
bool | parseEnvStringOnly (PLatexObj &parent, PLatexObj &textObj, const PString &environementName, PLatexType::PLatexType type) |
Parse an environement which contains only a string. More... | |
bool | parseExtraEnvironement (PLatexObj &parent, PLatexObj &textObj) |
Parse extra environement (terminal, cplusplus, cmake, conseil, attention, ...) More... | |
bool | parseExtraEnvironementContent (PLatexObj &parent, PLatexObj &textObj, const PString &environementName, PLatexType::PLatexType type) |
Parse latex environement. More... | |
bool | parseExtraEnvironementFunction (PLatexObj &parent, PLatexObj &textObj) |
Parse extra environement (terminal, cplusplus, cmake, conseil, attention, ...) More... | |
bool | parseExtraFunction (PLatexObj &parent, PLatexObj &textObj) |
Parse extra environement (terminal, cplusplus, cmake, conseil, attention, ...) More... | |
bool | parseHref (PLatexObj &parent, PLatexObj &textObj) |
Parse latex Href. More... | |
bool | parseIncludeFile (PLatexObj &parent, PLatexObj &textObj) |
Parse a file inclusion. More... | |
bool | parseIncludeGraphic (PLatexObj &parent, PLatexObj &textObj) |
Parse the includegraphic command. More... | |
bool | parseInlineMath (PLatexObj &parent, PLatexObj &textObj) |
Parse an inline math formula. More... | |
bool | parseInputFile (PLatexObj &parent, PLatexObj &textObj) |
Parse a file inclusion. More... | |
bool | parseItem (PLatexObj &parent, PLatexObj &textObj) |
Parse an item. More... | |
bool | parseNewLine (PLatexObj &parent, PLatexObj &textObj) |
Parse a new line. More... | |
bool | parseParserLanguage (PLatexObj &parent, PLatexObj &textObj) |
Parse language parser (cplusplus, cmake, glsl, cuda, ...) More... | |
bool | parseParserLanguageFunction (PLatexObj &parent, PLatexObj &textObj) |
Parse a language parser with a function which get an input file. More... | |
bool | parsePercent (PLatexObj &parent, PLatexObj &textObj) |
Parse latex percent. More... | |
bool | parserCallDot (PLatexObj &parent, PLatexObj &textObj) |
Parse a call to dot. More... | |
bool | parserDetails (PLatexObj &parent, PLatexObj &textObj) |
Parse a detail environement. More... | |
bool | parseRealNewLine (PLatexObj &parent, PLatexObj &textObj) |
Parse a new line. More... | |
bool | parserQuote (PLatexObj &parent, PLatexObj &textObj) |
Parse a quote environnement. More... | |
bool | parserSvgToPng (PLatexObj &parent, PLatexObj &textObj) |
Parse a svg to png function. More... | |
bool | parseSaveSpeaker (PLatexObj &parent, PLatexObj &textObj) |
Parse the savespeakers command. More... | |
bool | parseSectionTitle (PLatexObj &parent, PLatexObj &textObj, const PString &functionName, PLatexType::PLatexType type) |
Parse all the functions which have complex mono parameter in braces {...}. More... | |
bool | parseSpaceParagraphe (PLatexObj &parent, PLatexObj &textObj) |
Parse a space paragraphe. More... | |
bool | parseStringAndGoBack (const PString &str) |
Parse a string an go back if the string exists. More... | |
bool | parseTabular (PLatexObj &parent, PLatexObj &textObj) |
Parse a tabular environement. More... | |
bool | parseTimeTable (PLatexObj &parent, PLatexObj &textObj) |
Parse the timetable command. More... | |
void | parseVecLatexObj (PLatexObj &parent, PLatexObj &textObj, const PString &beginPatern, const PString &endPatern) |
Parse a vector of latex object. More... | |
bool | parseVideo (PLatexObj &parent, PLatexObj &textObj) |
Parse a file inclusion. More... | |
bool | skipMonoParam (const PString &functionName) |
Skip a mon parameter. More... | |
Private Attributes | |
bool | p_isAllowComment |
True to allow comments. More... | |
bool | p_isAllowMath |
True to allow math. More... | |
PListMultiCommentConfig | p_listCommentConfig |
Defines the differents comments we allow in the parsing. More... | |
Parse the pdata confguration file.
Definition at line 13 of file PConfigParser.h.
PConfigParser::PConfigParser | ( | const PString & | installPrefix = "" | ) |
Default constructeur of PConfigParser.
installPrefix | : installation prefix |
Definition at line 24 of file PConfigParser.cpp.
References initialisationPConfigParser().
PConfigParser::PConfigParser | ( | const PConfigParser & | other | ) |
Copy constructor of PConfigParser.
other | : class to copy |
Definition at line 33 of file PConfigParser.cpp.
References copyPConfigParser().
|
virtual |
Destructeur of PConfigParser.
Definition at line 40 of file PConfigParser.cpp.
References PGenericParser::saveMapFile().
|
inherited |
Adds a comment config for the parser.
commentConfig | : comment config for the PMultiFileParser |
Definition at line 84 of file PMultiFileParser.cpp.
References PMultiFileParser::p_listCommentConfig.
|
inherited |
Adds a comment config for the parser.
beginStringComment | : string which defines the begining of a comment |
endStringComment | : string which defines the ending of a comment |
Definition at line 92 of file PMultiFileParser.cpp.
References PMultiFileParser::p_listCommentConfig.
Add latex obj in parent.
Definition at line 296 of file PGenericParser.cpp.
References PLatexObj::getVecContent().
Referenced by PMarkdownParser::getProperParent(), PMarkdownParser::insertItemInItemize(), loadInclude(), parseComment(), PMarkdownParser::parseComment(), parseComplexMonoParam(), PMarkdownParser::parseComplexMonoParam(), parseDebug(), parseDots(), parseDoubleInlineMath(), PMarkdownParser::parseEnumerate(), PMarkdownParser::parseEnvDecoration(), parseEnvironementContent(), parseEnvStringOnly(), PMarkdownParser::parseExtraEnvironement(), parseExtraEnvironementFunction(), parseExtraFunction(), PMarkdownParser::parseExtraParser(), parseHref(), PMarkdownParser::parseHref(), parseIncludeGraphic(), PMarkdownParser::parseIncludeGraphic(), parseInlineMath(), parseItem(), PMarkdownParser::parseItemize(), PGenericParser::parseMonoParam(), parseNewLine(), PMarkdownParser::parseNewLine(), parseParserLanguage(), parseParserLanguageFunction(), parsePercent(), PMarkdownParser::parsePercent(), parserCallDot(), parserDetails(), parseRealNewLine(), PGenericParser::parserGetEnv(), parserQuote(), parserSvgToPng(), parseSectionTitle(), PMarkdownParser::parseSectionTitle(), parseSpaceParagraphe(), parseTabular(), PMarkdownParser::parseTextDecoration(), PMarkdownParser::parseUrl(), parseVideo(), and PMarkdownParser::parseWip().
|
inherited |
Check if the tokenExpected match.
tokenExpected | : token we expect |
tokenBefore | : token before the exprected one |
Definition at line 166 of file PMultiFileParser.cpp.
References PMultiFileParser::errorAt(), PFileParser::getNextToken(), PFileParser::isMatch(), PMultiFileParser::p_parser, and PMultiFileParser::stopParsing().
|
inherited |
Check if the p_currentToken == tokenExpected.
tokenExpected | : token we expect |
tokenBefore | : token before the exprected one |
Definition at line 151 of file PMultiFileParser.cpp.
References PMultiFileParser::errorAt(), PMultiFileParser::p_currentToken, and PMultiFileParser::stopParsing().
|
inherited |
Clear comment.
Definition at line 193 of file PMultiFileParser.cpp.
References PMultiFileParser::p_lastComment.
Referenced by PMultiFileParser::initialisationPMultiFileParser().
|
protectedinherited |
Clear a latex obj.
[out] | obj | : PLatexObj to be cleared |
Definition at line 255 of file PGenericParser.cpp.
References PLatexObj::getVecContent(), PLatexObj::setLabelName(), PLatexObj::setName(), PLatexObj::setText(), PLatexObj::setType(), and PLatexType::TEXT.
Referenced by PGenericParser::playTextLatexObj(), preLoadFile(), and PMarkdownParser::preLoadFile().
|
protectedinherited |
Copy a file.
outputDir | : output directory where to put the input file |
fileName | ; name of the file to be copied |
Definition at line 832 of file PGenericParser.cpp.
References PPath::createDirectory(), PMultiFileParser::errorAt(), PGenericParser::getAbsoluteFileName(), PPath::getFileModificationTime(), PPath::getFileName(), PPath::getParentDirectory(), PPath::isFileExist(), PGenericParser::p_mapCopiedFile, PString::replace(), and PMultiFileParser::stopParsing().
Referenced by parseHref(), PMarkdownParser::parseHref(), parseIncludeGraphic(), PMarkdownParser::parseIncludeGraphic(), and parseVideo().
|
protected |
Copy function of PConfigParser.
other | : class to copy |
Definition at line 56 of file PConfigParser.cpp.
References p_isAllowComment, and p_isAllowMath.
Referenced by operator=(), and PConfigParser().
|
protectedinherited |
Copy function of PGenericParser.
other | : class to copy |
Vector of all the environements
Vector of all the functions
Vector of the include directories
Vector of the name of the extra environement
Vector of the name of the extra environement
Vector of the name of the extra environement
Vector of extra environements
Vector of the name of the extra function
Vector of extra function
Vector of the name of the extra environement
Vector of the function name of the extra environement
Vector of the markdown name of the extra environement
Vector of removed latex functions
Vector of extra parser
Css of all the configurations
Map of all bibliography entries
Map of copied files
Definition at line 201 of file PGenericParser.cpp.
References PGenericParser::p_bookGitlabUrl, PGenericParser::p_bookMail, PGenericParser::p_bookMainPageLink, PGenericParser::p_bookMasterProjectUrl, PGenericParser::p_bookSideBarWidth, PGenericParser::p_cssContent, PGenericParser::p_isDebugMode, PGenericParser::p_isEnableBookFeedback, PGenericParser::p_mapBiblioEntry, PGenericParser::p_mapCopiedFile, PGenericParser::p_vecEnv, PGenericParser::p_vecExtraEnv, PGenericParser::p_vecExtraFunction, PGenericParser::p_vecExtraParser, PGenericParser::p_vecFunc, PGenericParser::p_vecIncludeDir, PGenericParser::p_vecNameExtraEnv, PGenericParser::p_vecNameExtraFunction, PGenericParser::p_vecNameExtraParser, PGenericParser::p_vecNameFunctionExtraEnv, PGenericParser::p_vecNameFunctionExtraParser, PGenericParser::p_vecNameMarkdownExtraEnv, PGenericParser::p_vecNameMarkdownExtraParser, and PGenericParser::p_vecRemoveLatexKeyword.
Referenced by loadInclude(), PGenericParser::operator=(), and PGenericParser::PGenericParser().
|
inherited |
Write a parsing error.
Definition at line 126 of file PMultiFileParser.cpp.
References PFileParser::getLocation(), and PMultiFileParser::p_parser.
Referenced by PMultiFileParser::checkExpectedMatch(), PMultiFileParser::checkExpectedToken(), PGenericParser::copyFile(), PMarkdownParser::getProperParent(), PGenericParser::getStringBetweenBraces(), loadInclude(), parseAddSpeaker(), parseExtraEnvironement(), parseHref(), PMarkdownParser::parseHref(), parseIncludeGraphic(), PMarkdownParser::parseIncludeGraphic(), parseTimeTable(), parseVideo(), and PMultiFileParser::unexpectedToken().
Execute the given latex command.
inputStr | : input latex string |
Definition at line 304 of file PGenericParser.cpp.
References PMultiFileParser::fullParsing(), PGenericParser::getSource(), platexobj_text(), and PMultiFileParser::setFileContent().
Referenced by PGenericParser::parseBookEnableFeedback(), PGenericParser::parseBookGitlabUrl(), PGenericParser::parseBookMail(), PGenericParser::parseBookMasterProject(), PGenericParser::parseBookSizeBarWidth(), PGenericParser::parseMainAuthor(), PGenericParser::parseMainDate(), PGenericParser::parseMainSubTitle(), and PGenericParser::parseMainTitle().
|
inherited |
Perform the full parsing pf data.
Definition at line 57 of file PMultiFileParser.cpp.
References PFileParser::getCurrentCharIdx(), PFileParser::getLocation(), PFileParser::isEndOfFile(), PMultiFileParser::p_listFileParser, PMultiFileParser::p_parser, PMultiFileParser::p_run, PMultiFileParser::parseFile(), PMultiFileParser::pointAtRow(), PMultiFileParser::postLoadFile(), PMultiFileParser::preLoadFile(), and PMultiFileParser::unexpectedToken().
Referenced by checkPMultiFileParser(), PGenericParser::executeLatexCommand(), PMultiFileParser::load(), and platexobj_parseStr().
Get the absolute path of a file.
fileName | : file to be used |
Definition at line 815 of file PGenericParser.cpp.
References PFileParser::getFileName(), PPath::getParentDirectory(), PPath::isFileExist(), and PMultiFileParser::p_parser.
Referenced by PGenericParser::copyFile(), and parseVideo().
|
inherited |
Say if the book feedback if enable or not.
Definition at line 139 of file PGenericParser.cpp.
References PGenericParser::p_isEnableBookFeedback.
|
inherited |
Get the book gitlab url.
Definition at line 132 of file PGenericParser.cpp.
References PGenericParser::p_bookGitlabUrl.
|
inherited |
Get the book mail list.
Definition at line 146 of file PGenericParser.cpp.
References PGenericParser::p_bookMail.
|
inherited |
Get the book main page link.
Definition at line 160 of file PGenericParser.cpp.
References PGenericParser::p_bookMainPageLink.
|
inherited |
Get the book master project url.
Definition at line 153 of file PGenericParser.cpp.
References PGenericParser::p_bookMasterProjectUrl.
|
inherited |
Get the width of the book sidebar.
Definition at line 125 of file PGenericParser.cpp.
References PGenericParser::p_bookSideBarWidth.
|
inherited |
Gets the current parser.
Definition at line 303 of file PMultiFileParser.cpp.
References PMultiFileParser::p_parser.
Referenced by ConfigParser::preLoadFile().
|
inherited |
Get the current token and skip the comment.
Definition at line 280 of file PMultiFileParser.cpp.
References PFileParser::getNextToken(), PFileParser::getUntilKey(), PFileParser::isEndOfFile(), PFileParser::isMatch(), PMultiFileParser::p_currentToken, PMultiFileParser::p_lastComment, PMultiFileParser::p_listCommentConfig, PMultiFileParser::p_parser, and PMultiFileParser::p_run.
|
inherited |
Get the last comment.
Definition at line 106 of file PMultiFileParser.cpp.
References PMultiFileParser::p_lastComment.
|
inherited |
Get the last comment.
Definition at line 99 of file PMultiFileParser.cpp.
References PMultiFileParser::p_lastComment.
|
inherited |
Get the map of all bibliography entries.
Definition at line 120 of file PGenericParser.cpp.
References PGenericParser::p_mapBiblioEntry.
|
inherited |
Get the map of all bibliography entries.
Definition at line 115 of file PGenericParser.cpp.
References PGenericParser::p_mapBiblioEntry.
|
protectedinherited |
Get optional string between braces {...}.
Definition at line 335 of file PGenericParser.cpp.
References PFileParser::getUntilKeyWithoutPaternRecurse(), PMultiFileParser::isMatch(), and PMultiFileParser::p_parser.
Referenced by parseAddSpeaker(), parseDots(), parseSaveSpeaker(), parseSpaceParagraphe(), parseTabular(), parseTimeTable(), and skipMonoParam().
|
protectedinherited |
Get optional string between hooks [...].
Definition at line 346 of file PGenericParser.cpp.
References PFileParser::getCurrentCh(), PFileParser::getNextChar(), PFileParser::getUntilKeyWithoutPatern(), PMultiFileParser::p_parser, and PARSER_SKIP_SPACE.
Referenced by parseComplexMonoParam(), PMarkdownParser::parseComplexMonoParam(), PGenericParser::parseMonoParam(), parseSectionTitle(), and skipMonoParam().
|
inherited |
Get the current source.
Definition at line 94 of file PGenericParser.cpp.
References PGenericParser::p_currentSource.
|
inherited |
Get the current source.
Definition at line 87 of file PGenericParser.cpp.
References PGenericParser::p_currentSource.
Referenced by PGenericParser::executeLatexCommand(), loadInclude(), and platexobj_parseStr().
Get the string composed of charset charcters.
charset | : set of allowed characters |
Definition at line 272 of file PMultiFileParser.cpp.
References PFileParser::getStrComposedOf(), PMultiFileParser::p_parser, and PMultiFileParser::skipComment().
Get the string between the braces {...}.
previousToken | : previous token to be used |
Definition at line 320 of file PGenericParser.cpp.
References PMultiFileParser::errorAt(), PFileParser::getNextChar(), PFileParser::getUntilKeyWithoutPaternRecurse(), PMultiFileParser::isMatch(), PMultiFileParser::p_parser, and PMultiFileParser::stopParsing().
Referenced by PGenericParser::parseBookEnableFeedback(), PGenericParser::parseBookGitlabUrl(), PGenericParser::parseBookMail(), PGenericParser::parseBookMasterProject(), PGenericParser::parseBookSizeBarWidth(), parseDebug(), parseEnvStringOnly(), parseHref(), parseIncludeFile(), parseInputFile(), PGenericParser::parseLabel(), PGenericParser::parseMainAuthor(), PGenericParser::parseMainDate(), PGenericParser::parseMainSubTitle(), PGenericParser::parseMainTitle(), PGenericParser::parseMonoParam(), and PGenericParser::parserGetEnv().
|
inherited |
Get the vector of include directories.
Definition at line 108 of file PGenericParser.cpp.
References PGenericParser::p_vecIncludeDir.
|
inherited |
Get the vector of include directories.
Definition at line 101 of file PGenericParser.cpp.
References PGenericParser::p_vecIncludeDir.
|
protectedinherited |
Increment current char position.
[out] | textObj | : obh to be used to store text |
Definition at line 266 of file PGenericParser.cpp.
References PFileParser::getCurrentCh(), PFileParser::getNextChar(), PLatexObj::getText(), and PMultiFileParser::p_parser.
Referenced by loadInclude(), PMarkdownParser::parseEnumerateItem(), parseEnvironementContent(), PMarkdownParser::parseExtraEnvironement(), parseFile(), PMarkdownParser::parseFile(), parseItem(), PMarkdownParser::parseItem(), parserDetails(), parserQuote(), parseTabular(), parseVecLatexObj(), PMarkdownParser::parseVecLatexObj(), and PMarkdownParser::parseWip().
|
private |
Initialisation function of the class PConfigParser.
baseInstallPrefix | : installation prefix |
Definition at line 101 of file PConfigParser.cpp.
References p_isAllowComment, and p_isAllowMath.
Referenced by PConfigParser().
|
privateinherited |
Initialisation function of the class PGenericParser.
baseInstallPrefix | : installation prefix |
Definition at line 893 of file PGenericParser.cpp.
References PLatexType::FILE, PGenericParser::loadCss(), PGenericParser::loadDirExtraEnvironement(), PGenericParser::loadDirExtraFunction(), PGenericParser::loadDirExtraParser(), PGenericParser::loadMapFile(), PLatexType::NONE, PGenericParser::p_bookMainPageLink, PGenericParser::p_bookSideBarWidth, PGenericParser::p_currentSource, PGenericParser::p_currentText, PGenericParser::p_isDebugMode, PGenericParser::p_isEnableBookFeedback, PGenericParser::p_vecRemoveLatexKeyword, PLatexObj::setType(), and PLatexType::TEXT.
Referenced by PGenericParser::PGenericParser().
|
privateinherited |
Initialisation function of the class PMultiFileParser.
inputDirectory | : input directory of the PMultiFileParser |
outputDirectory | : output directory of the PMultiFileParser |
Definition at line 311 of file PMultiFileParser.cpp.
References PMultiFileParser::clearComment(), PMultiFileParser::p_currentToken, PMultiFileParser::p_inputDirectory, PMultiFileParser::p_outputDirectory, PMultiFileParser::p_parser, and PMultiFileParser::p_run.
Referenced by PMultiFileParser::PMultiFileParser().
|
inherited |
Says if the patern match with the current caracters of the PFileParser.
patern | : patern we want to check (this patern should not begin with white caracters) |
forbiddenCharBefore | : lisr of characters which cannot be just before the first character of the patern |
Definition at line 239 of file PMultiFileParser.cpp.
References PFileParser::isMatch(), PMultiFileParser::p_parser, and PMultiFileParser::skipComment().
|
inherited |
Check if the given token matches the current read file.
token | : token to be checked |
Definition at line 202 of file PMultiFileParser.cpp.
References PFileParser::isMatch(), PMultiFileParser::p_parser, and PMultiFileParser::skipComment().
Referenced by PGenericParser::getOptionStringBetweenBraces(), PGenericParser::getStringBetweenBraces(), ConfigParser::parseDocString(), parseDots(), ConfigParser::parseFile(), and parseSpaceParagraphe().
|
inherited |
Check if the one entry of the vector of token matches.
vecToken | : vector of token |
Definition at line 250 of file PMultiFileParser.cpp.
References PFileParser::isMatch(), PMultiFileParser::p_parser, and PMultiFileParser::skipComment().
|
inherited |
Check if the given token matches the current read file and goes back even if the token matches.
token | : token to be checked |
Definition at line 214 of file PMultiFileParser.cpp.
References PFileParser::isMatchRewind(), PMultiFileParser::p_parser, and PMultiFileParser::skipComment().
Referenced by parseExtraFunction().
|
inherited |
Match a sequence of token in a vector.
patern | : set of token to match in this order and totally |
alwaysPopBack | : true to make the PFileParser at the exact same place before the check even is the sequence matches |
Definition at line 226 of file PMultiFileParser.cpp.
References PFileParser::isMatchSeq(), PMultiFileParser::p_parser, and PMultiFileParser::skipComment().
|
inherited |
Check the matching between the current caracters and all the string in the vector but treats the string as a token (cannot be part of a word)
vecToken | : vector of token |
Definition at line 261 of file PMultiFileParser.cpp.
References PFileParser::isMatchToken(), PMultiFileParser::p_parser, and PMultiFileParser::skipComment().
|
inherited |
Load the PMultiFileParser with the configFile.
configFile | : file name of the cnofiguration file |
Definition at line 27 of file PMultiFileParser.cpp.
References PMultiFileParser::fullParsing(), MULTI_PARSER_SEPARATORS_STRING, PFileParser::open(), PMultiFileParser::p_listFileParser, and PMultiFileParser::p_parser.
Referenced by checkPMultiFileParser(), and loadInclude().
|
protectedinherited |
Load the css.
inputDir | : input directory |
Definition at line 786 of file PGenericParser.cpp.
References PPath::getAllElementInDir(), PPath::loadFileContent(), and PGenericParser::p_cssContent.
Referenced by PGenericParser::initialisationPGenericParser().
|
protectedinherited |
Load the extra environements.
inputDir | : input directory |
Definition at line 622 of file PGenericParser.cpp.
References PPath::getAllElementInDir(), and PGenericParser::loadDirExtraEnvironementFile().
Referenced by PGenericParser::initialisationPGenericParser().
|
protectedinherited |
Load the extra environements with input file.
inputFile | : input directory |
Definition at line 572 of file PGenericParser.cpp.
References PXmlAttr::getValue(), PXml::getVecChild(), PGenericParser::p_vecExtraEnv, PGenericParser::p_vecNameExtraEnv, PGenericParser::p_vecNameFunctionExtraEnv, PGenericParser::p_vecNameMarkdownExtraEnv, pxml_getAttrIfExist(), pxml_getChildIfExist(), pxml_getFullContent(), pxml_getVecChildIfExist(), pxml_parserFile(), PEnvironement::setBalise(), setBoolFromAttr(), PEnvironement::setCss(), PEnvironement::setIsAllowComment(), PEnvironement::setIsAlloxMath(), and PEnvironement::setName().
Referenced by PGenericParser::loadDirExtraEnvironement().
|
protectedinherited |
Load the extra functions.
inputDir | : input directory |
Definition at line 677 of file PGenericParser.cpp.
References PPath::getAllElementInDir(), and PGenericParser::loadDirExtraFunctionFile().
Referenced by PGenericParser::initialisationPGenericParser().
|
protectedinherited |
Load the extra functions with input file.
inputFile | : input directory |
Definition at line 636 of file PGenericParser.cpp.
References PXmlAttr::getValue(), PXml::getVecChild(), PGenericParser::p_vecExtraFunction, PGenericParser::p_vecNameExtraFunction, pxml_getAttrIfExist(), pxml_getChildIfExist(), pxml_getFullContent(), pxml_getVecChildIfExist(), pxml_parserFile(), PEnvironement::setBalise(), PEnvironement::setCss(), and PEnvironement::setName().
Referenced by PGenericParser::loadDirExtraFunction().
|
protectedinherited |
Load the extra parsers.
inputDir | : input directory |
Definition at line 772 of file PGenericParser.cpp.
References PPath::getAllElementInDir(), and PGenericParser::loadDirExtraParserFile().
Referenced by PGenericParser::initialisationPGenericParser().
|
protectedinherited |
Load the extra environements with input file.
inputFile | : input directory |
Definition at line 691 of file PGenericParser.cpp.
References convertBackSlahedStr(), PPath::eraseExtension(), PPath::getFileName(), PXmlAttr::getValue(), PXml::getVecChild(), PParserEnv::getVecContext(), PVecParserEnv::getVecEnv(), PContext::getVecKeyword(), loadParserSeq(), PGenericParser::p_vecExtraParser, PGenericParser::p_vecNameExtraParser, PGenericParser::p_vecNameFunctionExtraParser, PGenericParser::p_vecNameMarkdownExtraParser, pxml_getAttrIfExist(), pxml_getChildIfExist(), pxml_getFullContent(), pxml_getVecChildIfExist(), pxml_parserFile(), PContext::setBegin(), PContext::setEnd(), PContext::setName(), PParserEnv::setName(), PContext::setNotAfterBegin(), PContext::setNotBeforeBegin(), PContext::setNotBeforeEnd(), PParserEnv::setPlainText(), and PContext::setSeq().
Referenced by PGenericParser::loadDirExtraParser().
|
private |
Load a included file.
[out] | parent | : parent PLatexObj |
[out] | textObj | : saved text |
fileName | : name of the file to be loaded |
Definition at line 112 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PGenericParser::copyPGenericParser(), PMultiFileParser::errorAt(), PFileParser::getCurrentCharIdx(), PPath::getExtension(), PPath::getFileName(), PFileParser::getLocation(), PGenericParser::getSource(), PLatexObj::getVecContent(), PGenericParser::incrementCurrentChar(), PFileParser::isEndOfFile(), PString::isSameBegining(), PMultiFileParser::load(), MULTI_PARSER_SEPARATORS_STRING, PFileParser::open(), PMultiFileParser::p_listFileParser, PMultiFileParser::p_parser, PMultiFileParser::p_run, parseAllLatexObj(), PGenericParser::playTextLatexObj(), PFileParser::setSeparator(), PFileParser::setWhiteSpace(), and wgetFile().
Referenced by parseIncludeFile(), and parseInputFile().
|
protectedinherited |
Load the map of copied files.
Definition at line 800 of file PGenericParser.cpp.
References COPIED_RECOVER_FILE, data_load(), and PGenericParser::p_mapCopiedFile.
Referenced by PGenericParser::initialisationPGenericParser().
PConfigParser & PConfigParser::operator= | ( | const PConfigParser & | other | ) |
Definition of equal operator of PConfigParser.
other | : class to copy |
Definition at line 48 of file PConfigParser.cpp.
References copyPConfigParser().
Parse the addspeakers command.
Definition at line 752 of file PConfigParser.cpp.
References PMultiFileParser::errorAt(), PFileParser::getFileName(), PGenericParser::getOptionStringBetweenBraces(), PPath::getParentDirectory(), PFileParser::isMatchToken(), PMultiFileParser::p_parser, PGenericParser::p_vecSpeaker, PGenericParser::playTextLatexObj(), ptimetable_loadSpeaker(), and PMultiFileParser::stopParsing().
Referenced by parseAllLatexObj().
Parse all the latex obj.
Definition at line 200 of file PConfigParser.cpp.
References PLatexType::BOOKPARTSEPARATOR, PLatexType::CAPTION, PLatexType::CENTER, PLatexType::CHAPTER, PLatexType::CHAPTERSTAR, PLatexType::COLUMN, PLatexType::COLUMNS, PLatexType::DISPLAYMATH, PLatexType::ENUMERATE, PLatexType::EQNARRAY, PLatexType::FIGURE, PLatexType::FOOTNOTE, PFileParser::isMatch(), PLatexType::ITEMIZE, PMultiFileParser::p_parser, PGenericParser::p_vecRemoveLatexKeyword, PLatexType::PARAGRAPHE, parseAddSpeaker(), parseBookMainPageLink(), parseComment(), parseComplexMonoParam(), parseDebug(), parseDots(), parseDoubleInlineMath(), parseEnvironement(), parseEnvStringOnly(), parseExtraEnvironement(), parseExtraEnvironementFunction(), parseExtraFunction(), PGenericParser::parseGenericLatexObj(), parseHref(), parseIncludeFile(), parseIncludeGraphic(), parseInlineMath(), parseInputFile(), parseItem(), PGenericParser::parseMonoParam(), parseNewLine(), parseParserLanguage(), parseParserLanguageFunction(), parsePercent(), parserCallDot(), parserDetails(), parseRealNewLine(), parserQuote(), parserSvgToPng(), parseSaveSpeaker(), parseSectionTitle(), parseSpaceParagraphe(), parseTabular(), parseTimeTable(), parseVideo(), PLatexType::PART, PLatexType::PARTSTAR, PLatexType::SECTION, PLatexType::SECTIONSTAR, skipMonoParam(), PLatexType::SUBSECTION, PLatexType::SUBSECTIONSTAR, PLatexType::SUBSUBSECTION, PLatexType::SUBSUBSECTIONSTAR, PLatexType::TABLE, PLatexType::URL, and PLatexType::WORK_IN_PROGRESS.
Referenced by loadInclude(), parseEnvironementContent(), parseFile(), parseItem(), parserDetails(), parserQuote(), parseTabular(), and parseVecLatexObj().
|
protectedinherited |
Parse the book enable feedback mode.
Definition at line 521 of file PGenericParser.cpp.
References PGenericParser::executeLatexCommand(), PGenericParser::getStringBetweenBraces(), PFileParser::isMatchToken(), PGenericParser::p_isEnableBookFeedback, PMultiFileParser::p_parser, and PGenericParser::playTextLatexObj().
Referenced by PGenericParser::parseGenericLatexObj().
|
protectedinherited |
Parse the gitlab url in book mode.
Definition at line 508 of file PGenericParser.cpp.
References PString::eraseLastChar(), PGenericParser::executeLatexCommand(), PGenericParser::getStringBetweenBraces(), PFileParser::isMatchToken(), PGenericParser::p_bookGitlabUrl, PMultiFileParser::p_parser, and PGenericParser::playTextLatexObj().
Referenced by PGenericParser::parseGenericLatexObj().
Parse the mail in book mode.
Definition at line 535 of file PGenericParser.cpp.
References PGenericParser::executeLatexCommand(), PGenericParser::getStringBetweenBraces(), PFileParser::isMatchToken(), PGenericParser::p_bookMail, PMultiFileParser::p_parser, and PGenericParser::playTextLatexObj().
Referenced by PGenericParser::parseGenericLatexObj().
Parse the book main page link.
Definition at line 291 of file PConfigParser.cpp.
References PLatexType::BOOKMAINPAGELINK, PLatexObj::getVecContent(), PGenericParser::p_bookMainPageLink, and parseComplexMonoParam().
Referenced by parseAllLatexObj().
|
protectedinherited |
Parse the master project in book mode.
Definition at line 548 of file PGenericParser.cpp.
References PString::eraseLastChar(), PGenericParser::executeLatexCommand(), PGenericParser::getStringBetweenBraces(), PFileParser::isMatchToken(), PGenericParser::p_bookMasterProjectUrl, PMultiFileParser::p_parser, and PGenericParser::playTextLatexObj().
Referenced by PGenericParser::parseGenericLatexObj().
|
protectedinherited |
Parse the width of the book sidebar.
Definition at line 495 of file PGenericParser.cpp.
References PGenericParser::executeLatexCommand(), PGenericParser::getStringBetweenBraces(), PFileParser::isMatchToken(), PGenericParser::p_bookSideBarWidth, PMultiFileParser::p_parser, and PGenericParser::playTextLatexObj().
Referenced by PGenericParser::parseGenericLatexObj().
Parse a comment.
Definition at line 577 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PLatexType::COMMENT, PFileParser::getUntilKeyWithoutPatern(), PFileParser::isMatch(), p_isAllowComment, PMultiFileParser::p_parser, PGenericParser::playTextLatexObj(), PLatexObj::setName(), and PLatexObj::setType().
Referenced by parseAllLatexObj().
|
private |
Parse all the functions which have complex mono parameter in braces {...}.
[out] | parent | : parent PLatexObj |
[out] | textObj | : PLatexObj to deal with text |
functionName | : name of the expected function | |
type | : type of the expected function |
Definition at line 180 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PGenericParser::getOptionStringBetweenHook(), PFileParser::isMatchToken(), PMultiFileParser::p_parser, parseVecLatexObj(), PGenericParser::playTextLatexObj(), PLatexObj::setText(), and PLatexObj::setType().
Referenced by parseAllLatexObj(), and parseBookMainPageLink().
Parse the debug function.
Definition at line 594 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PLatexType::DEBUG, PGenericParser::getStringBetweenBraces(), PFileParser::isMatchToken(), PGenericParser::p_isDebugMode, PMultiFileParser::p_parser, PGenericParser::playTextLatexObj(), PLatexObj::setName(), and PLatexObj::setType().
Referenced by parseAllLatexObj().
Parse a space paragraphe.
Definition at line 353 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PGenericParser::getOptionStringBetweenBraces(), PMultiFileParser::isMatch(), PGenericParser::playTextLatexObj(), PLatexObj::setText(), PLatexObj::setType(), and PLatexType::TEXT.
Referenced by parseAllLatexObj().
Parse an inline math formula.
Definition at line 970 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PLatexType::DISPLAYMATH, PFileParser::getUntilKeyWithoutPatern(), PFileParser::isMatch(), p_isAllowMath, PMultiFileParser::p_parser, PGenericParser::playTextLatexObj(), PLatexObj::setText(), and PLatexObj::setType().
Referenced by parseAllLatexObj().
|
private |
Parse latex environement.
[out] | parent | : parent PLatexObj |
[out] | textObj | : PLatexObj to deal with text |
environementName | : name of the evironement | |
type | : type of the environement |
Definition at line 825 of file PConfigParser.cpp.
References getBeginSeqEnv(), PFileParser::isMatchSeq(), PMultiFileParser::p_parser, and parseEnvironementContent().
Referenced by parseAllLatexObj().
|
private |
Parse latex environement.
[out] | parent | : parent PLatexObj |
[out] | textObj | : PLatexObj to deal with text |
environementName | : name of the evironement | |
type | : type of the environement | |
isAllowComment | : true to allow comment, false otherwise | |
isAllowMath | : true to allow math, false otherwise | |
envBalise | : balise of the env to be used |
Definition at line 841 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), getEndSeqEnv(), PGenericParser::incrementCurrentChar(), PFileParser::isEndOfFile(), PFileParser::isMatchSeq(), p_isAllowComment, p_isAllowMath, PMultiFileParser::p_parser, PMultiFileParser::p_run, parseAllLatexObj(), PGenericParser::playTextLatexObj(), PLatexObj::setBalise(), PLatexObj::setName(), PLatexObj::setType(), and PLatexType::TEXT.
Referenced by parseEnvironement(), and parseExtraEnvironementContent().
|
private |
Parse an environement which contains only a string.
[out] | parent | : parent PLatexObj |
[out] | textObj | : PLatexObj to deal with text |
environementName | : name of the environement | |
type | : type of the environement |
Definition at line 928 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), eraseFirstLastChar(), PGenericParser::getStringBetweenBraces(), PFileParser::getUntilKeyWithoutPatern(), PFileParser::isMatchToken(), PMultiFileParser::p_parser, PGenericParser::playTextLatexObj(), PFileParser::popPosition(), PFileParser::pushPosition(), PLatexObj::setText(), and PLatexObj::setType().
Referenced by parseAllLatexObj().
Parse extra environement (terminal, cplusplus, cmake, conseil, attention, ...)
Definition at line 1140 of file PConfigParser.cpp.
References PLatexType::ENVIRONEMENT, PMultiFileParser::errorAt(), PFileParser::getCurrentCh(), PFileParser::getNextChar(), PFileParser::isMatch(), PMultiFileParser::p_parser, PGenericParser::p_vecNameExtraEnv, parseExtraEnvironementContent(), PARSER_SKIP_SPACE, PFileParser::popPosition(), PFileParser::pushPosition(), and PMultiFileParser::stopParsing().
Referenced by parseAllLatexObj().
|
private |
Parse latex environement.
[out] | parent | : parent PLatexObj |
[out] | textObj | : PLatexObj to deal with text |
environementName | : name of the evironement | |
type | : type of the environement |
Definition at line 1177 of file PConfigParser.cpp.
References PEnvironement::getBalise(), PEnvironement::getIsAllowComment(), PEnvironement::getIsAlloxMath(), PGenericParser::p_vecExtraEnv, and parseEnvironementContent().
Referenced by parseExtraEnvironement().
|
private |
Parse extra environement (terminal, cplusplus, cmake, conseil, attention, ...)
Definition at line 1189 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PLatexType::ENVIRONEMENT, PString::eraseChar(), PString::eraseFirstLastChar(), PEnvironement::getBalise(), PFileParser::getCurrentCh(), PFileParser::getFileName(), PFileParser::getNextChar(), PPath::getParentDirectory(), PFileParser::getUntilKeyWithoutPatern(), PLatexObj::getVecContent(), PFileParser::isMatch(), PPath::loadFileContent(), PMultiFileParser::p_parser, PGenericParser::p_vecExtraEnv, PGenericParser::p_vecNameFunctionExtraEnv, PARSER_SKIP_SPACE, PGenericParser::playTextLatexObj(), PFileParser::popPosition(), PFileParser::pushPosition(), PLatexObj::setBalise(), PLatexObj::setName(), PLatexObj::setText(), PLatexObj::setType(), and PLatexType::TEXT.
Referenced by parseAllLatexObj().
Parse extra environement (terminal, cplusplus, cmake, conseil, attention, ...)
Definition at line 1234 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PString::eraseChar(), PLatexType::FUNCTION, PEnvironement::getBalise(), PFileParser::isMatch(), PMultiFileParser::isMatchRewind(), PMultiFileParser::p_parser, PGenericParser::p_vecExtraFunction, PGenericParser::p_vecNameExtraFunction, parseVecLatexObj(), PGenericParser::playTextLatexObj(), PFileParser::popPosition(), PFileParser::pushPosition(), PLatexObj::setBalise(), PLatexObj::setName(), and PLatexObj::setType().
Referenced by parseAllLatexObj().
|
protectedvirtual |
Parse the input file.
Implements PMultiFileParser.
Definition at line 64 of file PConfigParser.cpp.
References PPath::eraseExtension(), PLatexType::FILE, PPath::getFileName(), PFileParser::getFileName(), PLocation::getFileName(), PFileParser::getLocation(), PGenericParser::incrementCurrentChar(), PFileParser::isEndOfFile(), PGenericParser::p_currentSource, PGenericParser::p_currentText, PMultiFileParser::p_parser, PMultiFileParser::p_run, parseAllLatexObj(), PGenericParser::playTextLatexObj(), PLatexObj::setLink(), PLatexObj::setName(), PLatexObj::setSourceFile(), PLatexObj::setSourceLine(), and PLatexObj::setType().
|
protectedinherited |
Parse the generic latex function which have to be used in the latex parser and the markdown parser too.
Definition at line 385 of file PGenericParser.cpp.
References PLatexType::CITATION, PGenericParser::parseBookEnableFeedback(), PGenericParser::parseBookGitlabUrl(), PGenericParser::parseBookMail(), PGenericParser::parseBookMasterProject(), PGenericParser::parseBookSizeBarWidth(), PGenericParser::parseLabel(), PGenericParser::parseMainAuthor(), PGenericParser::parseMainDate(), PGenericParser::parseMainSubTitle(), PGenericParser::parseMainTitle(), PGenericParser::parseMonoParam(), PGenericParser::parserGetEnv(), PLatexType::REF, and PLatexType::UPDATESTYLE.
Referenced by parseAllLatexObj(), and PMarkdownParser::parseAllLatexObj().
Parse latex Href.
Definition at line 612 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PGenericParser::copyFile(), PMultiFileParser::errorAt(), PPath::getExtension(), PLatexObj::getName(), PGenericParser::getStringBetweenBraces(), PLatexType::HREF, PFileParser::isMatchToken(), PString::isSameBegining(), LATEX_RESSOURCES_OUTPUT_DIR, PMultiFileParser::p_parser, parseVecLatexObj(), PGenericParser::playTextLatexObj(), PLatexObj::setName(), and PLatexObj::setType().
Referenced by parseAllLatexObj().
Parse a file inclusion.
Definition at line 368 of file PConfigParser.cpp.
References PFileParser::getFileName(), PPath::getParentDirectory(), PGenericParser::getStringBetweenBraces(), PFileParser::isMatchToken(), loadInclude(), PMultiFileParser::p_parser, and PGenericParser::playTextLatexObj().
Referenced by parseAllLatexObj().
Parse the includegraphic command.
Definition at line 708 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PGenericParser::copyFile(), PMultiFileParser::errorAt(), PFileParser::getCurrentCh(), PFileParser::getNextChar(), PFileParser::getUntilKeyWithoutPatern(), PLatexType::IMAGE, PFileParser::isMatchToken(), PString::isSameBegining(), LATEX_IMAGE_OUTPUT_DIR, PMultiFileParser::p_parser, PARSER_SKIP_SPACE, PGenericParser::playTextLatexObj(), PLatexObj::setName(), PLatexObj::setText(), PLatexObj::setType(), and PMultiFileParser::stopParsing().
Referenced by parseAllLatexObj().
Parse an inline math formula.
Definition at line 952 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PFileParser::getUntilKeyWithoutPatern(), PLatexType::INLINEMATH, PFileParser::isMatch(), p_isAllowMath, PMultiFileParser::p_parser, PGenericParser::playTextLatexObj(), PLatexObj::setText(), and PLatexObj::setType().
Referenced by parseAllLatexObj().
Parse a file inclusion.
Definition at line 387 of file PConfigParser.cpp.
References PFileParser::getFileName(), PPath::getParentDirectory(), PGenericParser::getStringBetweenBraces(), PFileParser::isMatchToken(), loadInclude(), PMultiFileParser::p_parser, and PGenericParser::playTextLatexObj().
Referenced by parseAllLatexObj().
Parse an item.
Definition at line 999 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PGenericParser::incrementCurrentChar(), PFileParser::isEndOfFile(), PFileParser::isMatch(), PFileParser::isMatchSeq(), PLatexType::ITEM, PMultiFileParser::p_parser, PMultiFileParser::p_run, parseAllLatexObj(), parseStringAndGoBack(), PGenericParser::playTextLatexObj(), PLatexObj::setType(), and PLatexType::TEXT.
Referenced by parseAllLatexObj().
Parse latex label.
Definition at line 409 of file PGenericParser.cpp.
References getLastPLatexObj(), PGenericParser::getStringBetweenBraces(), PFileParser::isMatchToken(), PMultiFileParser::p_parser, PGenericParser::playTextLatexObj(), and PLatexObj::setLabelName().
Referenced by PGenericParser::parseGenericLatexObj().
Parse the main author of the site.
Definition at line 469 of file PGenericParser.cpp.
References PGenericParser::executeLatexCommand(), PGenericParser::getStringBetweenBraces(), PFileParser::isMatchToken(), PMultiFileParser::p_parser, PGenericParser::playTextLatexObj(), and PLatexObj::setAuthor().
Referenced by PGenericParser::parseGenericLatexObj().
Parse the main date of the site.
Definition at line 482 of file PGenericParser.cpp.
References PGenericParser::executeLatexCommand(), PGenericParser::getStringBetweenBraces(), PFileParser::isMatchToken(), PMultiFileParser::p_parser, PGenericParser::playTextLatexObj(), and PLatexObj::setDate().
Referenced by PGenericParser::parseGenericLatexObj().
|
protectedinherited |
Parse the main title of the site.
Definition at line 456 of file PGenericParser.cpp.
References PGenericParser::executeLatexCommand(), PGenericParser::getStringBetweenBraces(), PFileParser::isMatchToken(), PMultiFileParser::p_parser, PGenericParser::playTextLatexObj(), and PLatexObj::setSubTitle().
Referenced by PGenericParser::parseGenericLatexObj().
Parse the main title of the site.
Definition at line 443 of file PGenericParser.cpp.
References PGenericParser::executeLatexCommand(), PGenericParser::getStringBetweenBraces(), PFileParser::isMatchToken(), PMultiFileParser::p_parser, PGenericParser::playTextLatexObj(), and PLatexObj::setName().
Referenced by PGenericParser::parseGenericLatexObj().
|
protectedinherited |
Parse all the functions which have mono parameter in braces {...}.
[out] | parent | : parent PLatexObj |
[out] | textObj | : PLatexObj to deal with text |
functionName | : name of the expected function | |
type | : type of the expected function |
Definition at line 364 of file PGenericParser.cpp.
References PGenericParser::addLatexObj(), PGenericParser::getOptionStringBetweenHook(), PGenericParser::getStringBetweenBraces(), PFileParser::isMatch(), PMultiFileParser::p_parser, PGenericParser::playTextLatexObj(), PLatexObj::setName(), PLatexObj::setText(), and PLatexObj::setType().
Referenced by parseAllLatexObj(), and PGenericParser::parseGenericLatexObj().
Parse a new line.
Definition at line 325 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PLatexType::AUTOSPACEPARAGRAPH, PFileParser::isMatch(), PMultiFileParser::p_parser, PGenericParser::playTextLatexObj(), and PLatexObj::setType().
Referenced by parseAllLatexObj().
Parse language parser (cplusplus, cmake, glsl, cuda, ...)
Definition at line 1043 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PString::count(), PString::eraseFirstLastChar(), PFileParser::getCurrentCh(), PFileParser::getEscapeChar(), PFileParser::getNextChar(), getParserEnv(), PFileParser::getUntilKeyWithoutPatern(), PFileParser::isMatch(), PFileParser::isMatchToken(), PMultiFileParser::p_parser, PGenericParser::p_vecExtraParser, PGenericParser::p_vecNameExtraParser, PLatexType::PARSER, parser_makeHighlighting(), PARSER_SKIP_SPACE, PGenericParser::playTextLatexObj(), PFileParser::popPosition(), PFileParser::pushPosition(), PFileParser::setEscapeChar(), PLatexObj::setName(), PLatexObj::setNbline(), PLatexObj::setText(), and PLatexObj::setType().
Referenced by parseAllLatexObj().
Parse a language parser with a function which get an input file.
Definition at line 1090 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PString::count(), PString::eraseChar(), PString::eraseFirstLastChar(), PFileParser::getCurrentCh(), PFileParser::getFileName(), PFileParser::getNextChar(), PPath::getParentDirectory(), getParserEnv(), PFileParser::getUntilKeyWithoutPaternRecurse(), PPath::isFileExist(), PFileParser::isMatch(), PPath::loadFileContent(), PMultiFileParser::p_parser, PGenericParser::p_vecExtraParser, PGenericParser::p_vecNameFunctionExtraParser, PLatexType::PARSER, parser_makeHighlighting(), PARSER_SKIP_SPACE, PGenericParser::playTextLatexObj(), PFileParser::popPosition(), PFileParser::pushPosition(), PLatexObj::setName(), PLatexObj::setNbline(), PLatexObj::setText(), and PLatexObj::setType().
Referenced by parseAllLatexObj().
Parse latex percent.
Definition at line 642 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PFileParser::isMatch(), PMultiFileParser::p_parser, PLatexType::PERCENT, PGenericParser::playTextLatexObj(), and PLatexObj::setType().
Referenced by parseAllLatexObj().
Parse a call to dot.
Definition at line 540 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PLatexType::CALLDOT, PFileParser::getFileName(), PFileParser::getNextChar(), PFileParser::getUntilKeyWithoutPaternRecurse(), PFileParser::isMatchToken(), PMultiFileParser::p_parser, PGenericParser::playTextLatexObj(), PLatexObj::setName(), PLatexObj::setText(), and PLatexObj::setType().
Referenced by parseAllLatexObj().
Parse a detail environement.
Definition at line 462 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PLatexType::DETAILS, getBeginSeqEnv(), getEndSeqEnv(), PGenericParser::incrementCurrentChar(), PFileParser::isEndOfFile(), PFileParser::isMatchSeq(), PMultiFileParser::p_parser, PMultiFileParser::p_run, parseAllLatexObj(), parseVecLatexObj(), PGenericParser::playTextLatexObj(), PLatexObj::setBalise(), PLatexObj::setName(), PLatexObj::setType(), PLatexType::SUMMARY, and PLatexType::TEXT.
Referenced by parseAllLatexObj().
Parse a new line.
Definition at line 339 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PFileParser::isMatch(), PLatexType::NEWLINE, PMultiFileParser::p_parser, PGenericParser::playTextLatexObj(), and PLatexObj::setType().
Referenced by parseAllLatexObj().
Parse a getenv function.
Definition at line 426 of file PGenericParser.cpp.
References PGenericParser::addLatexObj(), PLatexType::GETENV, PGenericParser::getStringBetweenBraces(), PFileParser::isMatchToken(), PMultiFileParser::p_parser, PGenericParser::playTextLatexObj(), PLatexObj::setName(), and PLatexObj::setType().
Referenced by PGenericParser::parseGenericLatexObj().
Parse a quote environnement.
Definition at line 498 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PLatexType::CENTER, PLatexType::FUNCTION, getBeginSeqEnv(), getEndSeqEnv(), PGenericParser::incrementCurrentChar(), PFileParser::isEndOfFile(), PFileParser::isMatchSeq(), PMultiFileParser::p_parser, PMultiFileParser::p_run, parseAllLatexObj(), parseVecLatexObj(), PGenericParser::playTextLatexObj(), PLatexType::QUOTE, PLatexObj::setBalise(), PLatexObj::setName(), PLatexObj::setType(), and PLatexType::TEXT.
Referenced by parseAllLatexObj().
Parse a svg to png function.
Definition at line 559 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PFileParser::getFileName(), PFileParser::getNextChar(), PFileParser::getUntilKeyWithoutPatern(), PFileParser::isMatchToken(), PMultiFileParser::p_parser, PGenericParser::playTextLatexObj(), PLatexObj::setName(), PLatexObj::setText(), PLatexObj::setType(), and PLatexType::SVGTOPNG.
Referenced by parseAllLatexObj().
Parse the savespeakers command.
Definition at line 773 of file PConfigParser.cpp.
References PGenericParser::getOptionStringBetweenBraces(), PLatexObj::getVecContent(), PFileParser::isMatchToken(), PMultiFileParser::p_parser, PGenericParser::p_vecSpeaker, PGenericParser::playTextLatexObj(), and pspeaker_tex().
Referenced by parseAllLatexObj().
|
private |
Parse all the functions which have complex mono parameter in braces {...}.
[out] | parent | : parent PLatexObj |
[out] | textObj | : PLatexObj to deal with text |
functionName | : name of the expected function | |
type | : type of the expected function |
Definition at line 658 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PLocation::getFileName(), PLocation::getLine(), PFileParser::getLocation(), PGenericParser::getOptionStringBetweenHook(), PLatexObj::getVecContent(), PFileParser::isMatchToken(), PMultiFileParser::p_parser, parseVecLatexObj(), PGenericParser::playTextLatexObj(), PLatexObj::setComplexTitle(), PLatexObj::setSourceFile(), PLatexObj::setSourceLine(), PLatexObj::setText(), and PLatexObj::setType().
Referenced by parseAllLatexObj().
Parse a space paragraphe.
Definition at line 310 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PGenericParser::getOptionStringBetweenBraces(), PMultiFileParser::isMatch(), PGenericParser::playTextLatexObj(), PLatexObj::setType(), and PLatexType::SPACEPARAGRAPH.
Referenced by parseAllLatexObj().
|
private |
Parse a string an go back if the string exists.
str | : string to be serached |
Definition at line 987 of file PConfigParser.cpp.
References PFileParser::isMatch(), PMultiFileParser::p_parser, PFileParser::popPosition(), and PFileParser::pushPosition().
Referenced by parseItem().
Parse a tabular environement.
Definition at line 875 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), getBeginSeqEnv(), getEndSeqEnv(), PGenericParser::getOptionStringBetweenBraces(), PLatexObj::getVecContent(), PGenericParser::incrementCurrentChar(), PFileParser::isEndOfFile(), PFileParser::isMatch(), PFileParser::isMatchRewind(), PFileParser::isMatchSeq(), PMultiFileParser::p_parser, PMultiFileParser::p_run, parseAllLatexObj(), PGenericParser::playTextLatexObj(), PLatexObj::setName(), PLatexObj::setType(), PLatexType::TABCELL, PLatexType::TABROW, PLatexType::TABULAR, and PLatexType::TEXT.
Referenced by parseAllLatexObj().
Parse the timetable command.
Definition at line 787 of file PConfigParser.cpp.
References PMultiFileParser::errorAt(), PFileParser::getFileName(), PGenericParser::getOptionStringBetweenBraces(), PPath::getParentDirectory(), PLatexObj::getVecContent(), PFileParser::isMatchToken(), LATEX_INVITATION_OUTPUT_DIR, PMultiFileParser::p_parser, PGenericParser::p_vecSpeaker, PGenericParser::playTextLatexObj(), ptimetable_load(), ptimetable_tex(), ptimetable_updateEndTime(), PTimeTable::setVecSpeaker(), and PMultiFileParser::stopParsing().
Referenced by parseAllLatexObj().
|
private |
Parse a vector of latex object.
[out] | parent | : parent PLatexObj |
[out] | textObj | : PLatexObj to deal with text |
beginPatern | : starting partern to start the parsing of the vector of PLatexObj (disabled is empty) | |
endPatern | : end patern of the vector of latex obj |
Definition at line 681 of file PConfigParser.cpp.
References PFileParser::getCurrentCharIdx(), PFileParser::getLocation(), PGenericParser::incrementCurrentChar(), PFileParser::isEndOfFile(), PFileParser::isMatch(), PMultiFileParser::p_parser, PMultiFileParser::p_run, parseAllLatexObj(), PARSER_SKIP_SPACE, and PGenericParser::playTextLatexObj().
Referenced by parseComplexMonoParam(), parseExtraFunction(), parseHref(), parserDetails(), parserQuote(), and parseSectionTitle().
Parse a file inclusion.
Definition at line 406 of file PConfigParser.cpp.
References PGenericParser::addLatexObj(), PPath::checkFileBegning(), PGenericParser::copyFile(), PMultiFileParser::errorAt(), PGenericParser::getAbsoluteFileName(), PFileParser::getCurrentCh(), PPath::getExtension(), PFileParser::getNextChar(), PFileParser::getUntilKeyWithoutPatern(), PFileParser::isMatchToken(), PString::isSameBegining(), LATEX_VIDEO_OUTPUT_DIR, PPath::loadFileContent(), PMultiFileParser::p_parser, PARSER_SKIP_SPACE, PGenericParser::playTextLatexObj(), PLatexObj::setName(), PLatexObj::setText(), PLatexObj::setType(), PMultiFileParser::stopParsing(), and PLatexType::VIDEO.
Referenced by parseAllLatexObj().
|
protectedinherited |
Play the text latex obj.
[out] | parent | : parent PMacro |
[out] | textObj | : PLatexObj to deal with text |
isRemoveFirstLastSpace | : true to remove first and last spaces (tabs and newline) before added the text object |
Definition at line 279 of file PGenericParser.cpp.
References PGenericParser::clearLatexObj(), PString::eraseFirstLastChar(), PLatexObj::getText(), PLatexObj::getVecContent(), and PLatexObj::setText().
Referenced by loadInclude(), parseAddSpeaker(), PGenericParser::parseBookEnableFeedback(), PGenericParser::parseBookGitlabUrl(), PGenericParser::parseBookMail(), PGenericParser::parseBookMasterProject(), PGenericParser::parseBookSizeBarWidth(), parseComment(), PMarkdownParser::parseComment(), parseComplexMonoParam(), PMarkdownParser::parseComplexMonoParam(), parseDebug(), parseDots(), parseDoubleInlineMath(), PMarkdownParser::parseEnumerate(), PMarkdownParser::parseEnumerateItem(), PMarkdownParser::parseEnvDecoration(), parseEnvironementContent(), parseEnvStringOnly(), PMarkdownParser::parseExtraEnvironement(), parseExtraEnvironementFunction(), parseExtraFunction(), PMarkdownParser::parseExtraParser(), parseFile(), PMarkdownParser::parseFile(), parseHref(), PMarkdownParser::parseHref(), parseIncludeFile(), parseIncludeGraphic(), PMarkdownParser::parseIncludeGraphic(), parseInlineMath(), parseInputFile(), parseItem(), PMarkdownParser::parseItem(), PMarkdownParser::parseItemize(), PGenericParser::parseLabel(), PGenericParser::parseMainAuthor(), PGenericParser::parseMainDate(), PGenericParser::parseMainSubTitle(), PGenericParser::parseMainTitle(), PGenericParser::parseMonoParam(), parseNewLine(), PMarkdownParser::parseNewLine(), parseParserLanguage(), parseParserLanguageFunction(), parsePercent(), PMarkdownParser::parsePercent(), parserCallDot(), parserDetails(), parseRealNewLine(), PGenericParser::parserGetEnv(), parserQuote(), parserSvgToPng(), parseSaveSpeaker(), parseSectionTitle(), PMarkdownParser::parseSectionTitle(), parseSpaceParagraphe(), parseTabular(), PMarkdownParser::parseTextDecoration(), parseTimeTable(), PMarkdownParser::parseUrl(), parseVecLatexObj(), PMarkdownParser::parseVecLatexObj(), parseVideo(), and PMarkdownParser::parseWip().
|
inherited |
Point the problem.
Definition at line 138 of file PMultiFileParser.cpp.
References PFileParser::getColumn(), PFileParser::getCurrentRow(), and PMultiFileParser::p_parser.
Referenced by PMultiFileParser::fullParsing(), and ConfigParser::parseFile().
|
protectedvirtual |
Initialisation to be done just after loading a file.
Reimplemented from PMultiFileParser.
Definition at line 94 of file PConfigParser.cpp.
|
protectedvirtual |
Initialisation to be done just before loading a file.
Reimplemented from PMultiFileParser.
Definition at line 85 of file PConfigParser.cpp.
References PGenericParser::clearLatexObj(), PGenericParser::p_currentSource, PGenericParser::p_currentText, PMultiFileParser::p_parser, PFileParser::setSeparator(), and PFileParser::setWhiteSpace().
|
inherited |
Save the css file.
Definition at line 167 of file PGenericParser.cpp.
References PGenericParser::p_cssContent, PGenericParser::p_vecExtraEnv, PGenericParser::p_vecExtraFunction, PPath::saveFileContent(), and select_css_theme().
|
protectedinherited |
Save the map of copied files.
Definition at line 806 of file PGenericParser.cpp.
References COPIED_RECOVER_FILE, data_save(), and PGenericParser::p_mapCopiedFile.
Referenced by ~PConfigParser().
|
inherited |
Set if the PGenericParser is in debug mode.
isDebugMode | : true if the PGenericParser is in debug mode, false if not |
Definition at line 80 of file PGenericParser.cpp.
References PGenericParser::p_isDebugMode.
|
inherited |
Set the file content to be parsed.
fileContent | : file content to be parsed |
Definition at line 43 of file PMultiFileParser.cpp.
References MULTI_PARSER_SEPARATORS_STRING, PMultiFileParser::p_listFileParser, PMultiFileParser::p_parser, and PFileParser::setFileContent().
Referenced by checkPMultiFileParser(), PGenericParser::executeLatexCommand(), and platexobj_parseStr().
|
inherited |
Skip comment.
Definition at line 177 of file PMultiFileParser.cpp.
References PFileParser::getUntilKey(), PFileParser::isEndOfFile(), PFileParser::isMatch(), PMultiFileParser::p_lastComment, PMultiFileParser::p_listCommentConfig, PMultiFileParser::p_parser, and PMultiFileParser::p_run.
Referenced by PMultiFileParser::getStrComposedOf(), PMultiFileParser::isMatch(), PMultiFileParser::isMatchRewind(), PMultiFileParser::isMatchSeq(), and PMultiFileParser::isMatchToken().
|
private |
Skip a mon parameter.
functionName | : name of the function to be parsed |
Definition at line 1265 of file PConfigParser.cpp.
References PGenericParser::getOptionStringBetweenBraces(), PGenericParser::getOptionStringBetweenHook(), PFileParser::isMatchToken(), and PMultiFileParser::p_parser.
Referenced by parseAllLatexObj().
|
inherited |
Stop the parsing of all the files.
Definition at line 121 of file PMultiFileParser.cpp.
References PMultiFileParser::p_run.
Referenced by PMultiFileParser::checkExpectedMatch(), PMultiFileParser::checkExpectedToken(), PGenericParser::copyFile(), PMarkdownParser::getProperParent(), PGenericParser::getStringBetweenBraces(), parseAddSpeaker(), parseExtraEnvironement(), parseIncludeGraphic(), PMarkdownParser::parseIncludeGraphic(), parseTimeTable(), parseVideo(), and PMultiFileParser::unexpectedToken().
|
inherited |
Print unexpected token error.
Definition at line 131 of file PMultiFileParser.cpp.
References PMultiFileParser::errorAt(), PFileParser::getNextToken(), PMultiFileParser::p_parser, and PMultiFileParser::stopParsing().
Referenced by PMultiFileParser::fullParsing(), and ConfigParser::parseFile().
|
protectedinherited |
Gitlab url of the current sources of the project.
Definition at line 156 of file PGenericParser.h.
Referenced by PGenericParser::copyPGenericParser(), PGenericParser::getBookGitlabUrl(), and PGenericParser::parseBookGitlabUrl().
|
protectedinherited |
Mail to be used to contact authors in book mode.
Definition at line 160 of file PGenericParser.h.
Referenced by PGenericParser::copyPGenericParser(), PGenericParser::getBookMail(), and PGenericParser::parseBookMail().
|
protectedinherited |
Main page definition of the full site.
Definition at line 164 of file PGenericParser.h.
Referenced by PGenericParser::copyPGenericParser(), PGenericParser::getBookMainPageLink(), PGenericParser::initialisationPGenericParser(), and parseBookMainPageLink().
|
protectedinherited |
Master project url in book mode.
Definition at line 162 of file PGenericParser.h.
Referenced by PGenericParser::copyPGenericParser(), PGenericParser::getBookMasterProjectUrl(), and PGenericParser::parseBookMasterProject().
|
protectedinherited |
Witdh of the book side bar.
Definition at line 154 of file PGenericParser.h.
Referenced by PGenericParser::copyPGenericParser(), PGenericParser::getBookSideBarWidth(), PGenericParser::initialisationPGenericParser(), and PGenericParser::parseBookSizeBarWidth().
Css of all the configurations.
Definition at line 146 of file PGenericParser.h.
Referenced by PGenericParser::copyPGenericParser(), PGenericParser::loadCss(), and PGenericParser::saveCss().
|
protectedinherited |
Current completed source.
Definition at line 109 of file PGenericParser.h.
Referenced by PGenericParser::getSource(), PGenericParser::initialisationPGenericParser(), parseFile(), PMarkdownParser::parseFile(), preLoadFile(), and PMarkdownParser::preLoadFile().
|
protectedinherited |
Current text.
Definition at line 106 of file PGenericParser.h.
Referenced by PGenericParser::initialisationPGenericParser(), parseFile(), PMarkdownParser::parseFile(), preLoadFile(), and PMarkdownParser::preLoadFile().
|
protectedinherited |
CurrentToken parsed.
Definition at line 78 of file PMultiFileParser.h.
Referenced by PMultiFileParser::checkExpectedToken(), PMultiFileParser::getCurrentTokenWithoutComment(), and PMultiFileParser::initialisationPMultiFileParser().
|
protectedinherited |
Input directory of the parser.
Definition at line 80 of file PMultiFileParser.h.
Referenced by PMultiFileParser::initialisationPMultiFileParser().
|
private |
True to allow comments.
Definition at line 85 of file PConfigParser.h.
Referenced by copyPConfigParser(), initialisationPConfigParser(), parseComment(), and parseEnvironementContent().
|
private |
True to allow math.
Definition at line 87 of file PConfigParser.h.
Referenced by copyPConfigParser(), initialisationPConfigParser(), parseDoubleInlineMath(), parseEnvironementContent(), and parseInlineMath().
|
protectedinherited |
True if be parse in debug mode.
Definition at line 103 of file PGenericParser.h.
Referenced by PGenericParser::copyPGenericParser(), PGenericParser::initialisationPGenericParser(), parseDebug(), and PGenericParser::setDebugMode().
|
protectedinherited |
True to enable feedback in book mode.
Definition at line 158 of file PGenericParser.h.
Referenced by PGenericParser::copyPGenericParser(), PGenericParser::getBookEnableFeedback(), PGenericParser::initialisationPGenericParser(), and PGenericParser::parseBookEnableFeedback().
|
protectedinherited |
last comment
Definition at line 76 of file PMultiFileParser.h.
Referenced by PMultiFileParser::clearComment(), PMultiFileParser::getCurrentTokenWithoutComment(), PMultiFileParser::getLastComment(), and PMultiFileParser::skipComment().
|
privateinherited |
Defines the differents comments we allow in the parsing.
Definition at line 88 of file PMultiFileParser.h.
Referenced by PMultiFileParser::addCommentConfig(), PMultiFileParser::getCurrentTokenWithoutComment(), and PMultiFileParser::skipComment().
|
protectedinherited |
List of all the parsers for all the loaded files.
Definition at line 72 of file PMultiFileParser.h.
Referenced by PMultiFileParser::fullParsing(), PMultiFileParser::load(), loadInclude(), and PMultiFileParser::setFileContent().
|
protectedinherited |
Map of all bibliography entries.
Definition at line 148 of file PGenericParser.h.
Referenced by PGenericParser::copyPGenericParser(), and PGenericParser::getMapBiblioEntry().
|
protectedinherited |
Map of copied files.
Definition at line 150 of file PGenericParser.h.
Referenced by PGenericParser::copyFile(), PGenericParser::copyPGenericParser(), PGenericParser::loadMapFile(), and PGenericParser::saveMapFile().
|
protectedinherited |
Output directory of the parser.
Definition at line 82 of file PMultiFileParser.h.
Referenced by PMultiFileParser::initialisationPMultiFileParser().
|
protectedinherited |
Parser helper for the config file.
Definition at line 70 of file PMultiFileParser.h.
Referenced by PMultiFileParser::checkExpectedMatch(), PMultiFileParser::errorAt(), PMultiFileParser::fullParsing(), PGenericParser::getAbsoluteFileName(), PMultiFileParser::getCurrentParser(), PMultiFileParser::getCurrentTokenWithoutComment(), PGenericParser::getOptionStringBetweenBraces(), PGenericParser::getOptionStringBetweenHook(), PMultiFileParser::getStrComposedOf(), PGenericParser::getStringBetweenBraces(), PGenericParser::incrementCurrentChar(), PMultiFileParser::initialisationPMultiFileParser(), PMarkdownParser::isEnumerateItem(), PMarkdownParser::isItem(), PMultiFileParser::isMatch(), PMultiFileParser::isMatchRewind(), PMultiFileParser::isMatchSeq(), PMultiFileParser::isMatchToken(), PMultiFileParser::load(), loadInclude(), parseAddSpeaker(), parseAllLatexObj(), PGenericParser::parseBookEnableFeedback(), PGenericParser::parseBookGitlabUrl(), PGenericParser::parseBookMail(), PGenericParser::parseBookMasterProject(), PGenericParser::parseBookSizeBarWidth(), parseComment(), PMarkdownParser::parseComment(), parseComplexMonoParam(), PMarkdownParser::parseComplexMonoParam(), parseDebug(), ConfigParser::parseDocString(), parseDoubleInlineMath(), PMarkdownParser::parseEnumerate(), PMarkdownParser::parseEnumerateItem(), PMarkdownParser::parseEnvDecoration(), parseEnvironement(), parseEnvironementContent(), parseEnvStringOnly(), parseExtraEnvironement(), PMarkdownParser::parseExtraEnvironement(), parseExtraEnvironementFunction(), parseExtraFunction(), PMarkdownParser::parseExtraParser(), ConfigParser::parseFile(), parseFile(), PMarkdownParser::parseFile(), parseHref(), PMarkdownParser::parseHref(), parseIncludeFile(), parseIncludeGraphic(), PMarkdownParser::parseIncludeGraphic(), parseInlineMath(), parseInputFile(), parseItem(), PMarkdownParser::parseItem(), PMarkdownParser::parseItemize(), PGenericParser::parseLabel(), PGenericParser::parseMainAuthor(), PGenericParser::parseMainDate(), PGenericParser::parseMainSubTitle(), PGenericParser::parseMainTitle(), PGenericParser::parseMonoParam(), parseNewLine(), PMarkdownParser::parseNewLine(), parseParserLanguage(), parseParserLanguageFunction(), parsePercent(), PMarkdownParser::parsePercent(), parserCallDot(), parserDetails(), parseRealNewLine(), PGenericParser::parserGetEnv(), parserQuote(), parserSvgToPng(), parseSaveSpeaker(), parseSectionTitle(), PMarkdownParser::parseSectionTitle(), parseStringAndGoBack(), parseTabular(), PMarkdownParser::parseTextDecoration(), parseTimeTable(), PMarkdownParser::parseUrl(), parseVecLatexObj(), PMarkdownParser::parseVecLatexObj(), parseVideo(), PMarkdownParser::parseWip(), PMultiFileParser::pointAtRow(), preLoadFile(), PMarkdownParser::preLoadFile(), PMultiFileParser::setFileContent(), PMultiFileParser::skipComment(), skipMonoParam(), and PMultiFileParser::unexpectedToken().
|
protectedinherited |
Run the parsing if true.
Definition at line 74 of file PMultiFileParser.h.
Referenced by PMultiFileParser::fullParsing(), PMultiFileParser::getCurrentTokenWithoutComment(), PMultiFileParser::initialisationPMultiFileParser(), loadInclude(), PMarkdownParser::parseEnumerate(), PMarkdownParser::parseEnumerateItem(), parseEnvironementContent(), PMarkdownParser::parseExtraEnvironement(), ConfigParser::parseFile(), parseFile(), PMarkdownParser::parseFile(), parseItem(), PMarkdownParser::parseItem(), PMarkdownParser::parseItemize(), parserDetails(), parserQuote(), parseTabular(), parseVecLatexObj(), PMarkdownParser::parseVecLatexObj(), PMarkdownParser::parseWip(), PMultiFileParser::skipComment(), and PMultiFileParser::stopParsing().
|
protectedinherited |
Vector of all the environements.
Definition at line 112 of file PGenericParser.h.
Referenced by PGenericParser::copyPGenericParser().
|
protectedinherited |
Vector of extra environements.
Definition at line 126 of file PGenericParser.h.
Referenced by PGenericParser::copyPGenericParser(), PGenericParser::loadDirExtraEnvironementFile(), PMarkdownParser::parseExtraEnvironement(), parseExtraEnvironementContent(), parseExtraEnvironementFunction(), and PGenericParser::saveCss().
|
protectedinherited |
Vector of extra function.
Definition at line 131 of file PGenericParser.h.
Referenced by PGenericParser::copyPGenericParser(), PGenericParser::loadDirExtraFunctionFile(), parseExtraFunction(), and PGenericParser::saveCss().
|
protectedinherited |
Vector of extra parser.
Definition at line 143 of file PGenericParser.h.
Referenced by PGenericParser::copyPGenericParser(), PGenericParser::loadDirExtraParserFile(), PMarkdownParser::parseExtraParser(), parseParserLanguage(), and parseParserLanguageFunction().
|
protectedinherited |
Vector of all the functions.
Definition at line 114 of file PGenericParser.h.
Referenced by PGenericParser::copyPGenericParser().
|
protectedinherited |
Vector of the include directories.
Definition at line 117 of file PGenericParser.h.
Referenced by PGenericParser::copyPGenericParser(), and PGenericParser::getVecIncludeDir().
|
protectedinherited |
Vector of the name of the extra environement.
Definition at line 120 of file PGenericParser.h.
Referenced by PGenericParser::copyPGenericParser(), PGenericParser::loadDirExtraEnvironementFile(), and parseExtraEnvironement().
|
protectedinherited |
Vector of the name of the extra function.
Definition at line 129 of file PGenericParser.h.
Referenced by PGenericParser::copyPGenericParser(), PGenericParser::loadDirExtraFunctionFile(), and parseExtraFunction().
|
protectedinherited |
Vector of the name of the extra environement.
Definition at line 134 of file PGenericParser.h.
Referenced by PGenericParser::copyPGenericParser(), PGenericParser::loadDirExtraParserFile(), and parseParserLanguage().
|
protectedinherited |
Vector of the name of the extra environement.
Definition at line 122 of file PGenericParser.h.
Referenced by PGenericParser::copyPGenericParser(), PGenericParser::loadDirExtraEnvironementFile(), and parseExtraEnvironementFunction().
|
protectedinherited |
Vector of the function name of the extra environement.
Definition at line 136 of file PGenericParser.h.
Referenced by PGenericParser::copyPGenericParser(), PGenericParser::loadDirExtraParserFile(), and parseParserLanguageFunction().
|
protectedinherited |
Vector of the name of the extra environement (for markdown)
Definition at line 124 of file PGenericParser.h.
Referenced by PGenericParser::copyPGenericParser(), PGenericParser::loadDirExtraEnvironementFile(), and PMarkdownParser::parseExtraEnvironement().
|
protectedinherited |
Vector of the markdown name of the extra environement.
Definition at line 138 of file PGenericParser.h.
Referenced by PGenericParser::copyPGenericParser(), PGenericParser::loadDirExtraParserFile(), and PMarkdownParser::parseExtraParser().
|
protectedinherited |
Vector of removed latex functions.
Definition at line 141 of file PGenericParser.h.
Referenced by PGenericParser::copyPGenericParser(), PGenericParser::initialisationPGenericParser(), and parseAllLatexObj().
|
protectedinherited |
Vector of all Speakers in the project.
Definition at line 166 of file PGenericParser.h.
Referenced by parseAddSpeaker(), parseSaveSpeaker(), and parseTimeTable().