|
Sen API
Sen Libraries
|
Parses HLA FOM files. More...
#include <fom_parser.h>
Public Member Functions | |
| FomParser (const std::vector< std::filesystem::path > &paths, const std::vector< std::filesystem::path > &extensions, const std::vector< std::filesystem::path > &mappings, const TypeSettings &settings) | |
| Stores the tokens for eventual parsing. | |
| ~FomParser () | |
| TypeSetContext | computeTypeSets () |
| Computes all underlying type sets and puts them into a TypeSetContext. | |
| TypeSetContext | convertToCompleteTypeSetContext () && |
| Computes all underlying type sets and returns a complete TypeSetContext including the current root TypeSet. | |
| const lang::TypeSet & | getRootTypeSet () const &noexcept |
Parses HLA FOM files.
| sen::lang::FomParser::FomParser | ( | const std::vector< std::filesystem::path > & | paths, |
| const std::vector< std::filesystem::path > & | extensions, | ||
| const std::vector< std::filesystem::path > & | mappings, | ||
| const TypeSettings & | settings ) |
Stores the tokens for eventual parsing.
| paths | directories of FOM modules, each directory giving its name to a package |
| extensions | files, or directories of them, that add members to types the modules declare. An extension owns no type and generates no file of its own. |
| sen::lang::FomParser::~FomParser | ( | ) |
| TypeSetContext sen::lang::FomParser::computeTypeSets | ( | ) |
Computes all underlying type sets and puts them into a TypeSetContext.
Note: By default, the root type set is not included but still stored in the FomParser. For a complete TypeSetContext call convertToCompleteTypeSetContext.
| TypeSetContext sen::lang::FomParser::convertToCompleteTypeSetContext | ( | ) | && |
Computes all underlying type sets and returns a complete TypeSetContext including the current root TypeSet.
|
nodiscardnoexcept |