fcml  1.2.2
Public Attributes | List of all members
fcml_st_parser_config Struct Reference

Parser configuration. More...

#include <fcml_parser.h>

Public Attributes

fcml_bool ignore_undefined_symbols
 Set to true in order to ignore all undefined symbols. More...
 
fcml_bool disable_symbols_declaration
 Disables symbols support. More...
 
fcml_bool override_labels
 Set to true in order to allow overriding existing labels. More...
 
fcml_bool alloc_symbol_table_if_needed
 By default parser ignores all symbol declarations if there is no symbol table provided in the parser context. More...
 
fcml_bool enable_error_messages
 Enables textual error messages. More...
 

Detailed Description

Parser configuration.

Member Data Documentation

◆ alloc_symbol_table_if_needed

fcml_bool fcml_st_parser_config::alloc_symbol_table_if_needed

By default parser ignores all symbol declarations if there is no symbol table provided in the parser context.

By setting this value to true you can force the parser to allocate new symbol table when needed. Remember that you are then responsible for freeing it, so this functionality can be a bit dangerous because you have to check the existence of the symbol table every time it should be deallocated.

◆ disable_symbols_declaration

fcml_bool fcml_st_parser_config::disable_symbols_declaration

Disables symbols support.

It set to true every defined label will cause an error.

◆ enable_error_messages

fcml_bool fcml_st_parser_config::enable_error_messages

Enables textual error messages.

◆ ignore_undefined_symbols

fcml_bool fcml_st_parser_config::ignore_undefined_symbols

Set to true in order to ignore all undefined symbols.

In such a case every unknown symbol is treated as 0.

◆ override_labels

fcml_bool fcml_st_parser_config::override_labels

Set to true in order to allow overriding existing labels.

If set to false parser returns "Symbol already exists" error when symbol already exists.


The documentation for this struct was generated from the following file: