#include <PropertyCompiler.h>
Public Methods | |
| PropertyCompiler (std::string sourcefile, MsgStream& my_log, JobOptionsCatalogue& myCat, PropertyCompiler* parent=0) | |
| Constructor of PropertyCompiler. More... | |
| virtual | ~PropertyCompiler () |
| Destructor: Closes source-file and terminates compilation. More... | |
| StatusCode | startCompiler () |
| Starts the compiler. More... | |
Private Types | |
| enum | Symbols { BOFSy, EOFSy, assignSy, semicolonSy, commaSy, stringSy, numberSy, realSy, dotSy, noSy, identifierSy, booleanSy, includeSy, minusSy, plusSy, vectorStartSy, vectorEndSy, appendSy, ifDefSy, ifNDefSy, endIfSy, elseSy, unitsSy, envSy, propSy } |
| enum | Operations { assign, append, noOperation, clear } |
Private Methods | |
| std::string | resolveEnv (const std::string& sourcefile) |
| Resolve include-File (resolve environment-settings and path-settings. More... | |
| void | ignorePlatformDependendLines () |
| void | getEntryPointOfDependendLines () |
| void | newCh () |
| Get next Characater, if EOL is reached, read in next line. More... | |
| std::string | newSy () |
| Gets the next symbol in the sourcecode and return it. More... | |
| bool | isNextEntryPoint () |
| Checks if the current symobl is another entry-point to recover from previous m_error. More... | |
| Symbols | getValueType (std::string& valueStr) |
| Get the real value type of the symbol. More... | |
| StatusCode | checkSyntax () |
| Syntax-Analysator: Checks Syntax of source-code and interprets compiled lines. More... | |
Private Attributes | |
| std::vector<std::string>* | includeFiles |
| bool | unitsDefined |
| bool | hasParent |
| UnitsExtension* | units |
| char | m_ch |
| unsigned int | m_lnr |
| unsigned int | m_cnr |
| unsigned int | m_tokenlnr |
| unsigned int | m_tokencnr |
| std::string | m_identStr |
| std::string | m_srcName |
| std::string | m_srcLine |
| std::string | m_compiledLine |
| Symbols | m_sy |
| bool | m_error |
| int | m_errorCount |
| int | m_warningCount |
| std::ifstream* | m_in |
| MsgStream* | m_log |
| JobOptionsCatalogue* | m_Cat |
|
|
Definition at line 52 of file PropertyCompiler.h. |
|
|
Definition at line 48 of file PropertyCompiler.h. |
|
|
Constructor of PropertyCompiler. Creates a new PropertyCompiler-Object which compiles the sourcefile in parameter sourcefile.
Definition at line 48 of file PropertyCompiler.cpp. Referenced by checkSyntax(). |
|
|
Destructor: Closes source-file and terminates compilation.
Definition at line 105 of file PropertyCompiler.cpp. |
|
|
Syntax-Analysator: Checks Syntax of source-code and interprets compiled lines.
Definition at line 621 of file PropertyCompiler.cpp. Referenced by startCompiler(). |
|
|
Definition at line 612 of file PropertyCompiler.cpp. Referenced by checkSyntax(). |
|
|
Get the real value type of the symbol. (Real-Numbers are merged,...)
Definition at line 462 of file PropertyCompiler.cpp. Referenced by checkSyntax(). |
|
|
Definition at line 607 of file PropertyCompiler.cpp. Referenced by checkSyntax(). |
|
|
Checks if the current symobl is another entry-point to recover from previous m_error.
Definition at line 448 of file PropertyCompiler.cpp. Referenced by checkSyntax(). |
|
|
Get next Characater, if EOL is reached, read in next line.
Definition at line 192 of file PropertyCompiler.cpp. Referenced by checkSyntax(), newSy(), and startCompiler(). |
|
|
Gets the next symbol in the sourcecode and return it.
Definition at line 232 of file PropertyCompiler.cpp. Referenced by checkSyntax(), getEntryPointOfDependendLines(), getValueType(), ignorePlatformDependendLines(), and isNextEntryPoint(). |
|
|
Resolve include-File (resolve environment-settings and path-settings.
Definition at line 118 of file PropertyCompiler.cpp. Referenced by PropertyCompiler(), and checkSyntax(). |
|
|
Starts the compiler.
Definition at line 1148 of file PropertyCompiler.cpp. Referenced by checkSyntax(), and JobOptionsSvc::readOptions(). |
|
|
Definition at line 44 of file PropertyCompiler.h. |
|
|
Definition at line 43 of file PropertyCompiler.h. |
|
|
Definition at line 66 of file PropertyCompiler.h. |
|
|
Definition at line 54 of file PropertyCompiler.h. |
|
|
Definition at line 55 of file PropertyCompiler.h. |
|
|
Definition at line 60 of file PropertyCompiler.h. |
|
|
Definition at line 62 of file PropertyCompiler.h. |
|
|
Definition at line 63 of file PropertyCompiler.h. |
|
|
Definition at line 57 of file PropertyCompiler.h. |
|
|
Definition at line 64 of file PropertyCompiler.h. |
|
|
Definition at line 55 of file PropertyCompiler.h. |
|
|
Definition at line 65 of file PropertyCompiler.h. |
|
|
Definition at line 59 of file PropertyCompiler.h. |
|
|
Definition at line 58 of file PropertyCompiler.h. |
|
|
Definition at line 61 of file PropertyCompiler.h. |
|
|
Definition at line 56 of file PropertyCompiler.h. |
|
|
Definition at line 56 of file PropertyCompiler.h. |
|
|
Definition at line 63 of file PropertyCompiler.h. |
|
|
Definition at line 45 of file PropertyCompiler.h. |
|
|
Definition at line 44 of file PropertyCompiler.h. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000