Skip to content
Authors

File toml_parser.h

FileList > source > toml_parser > src > toml_parser.h

Go to the source code of this file

Parses a TOML string into a production store and frees a store created with the module. More...

  • #include <stdint.h>
  • #include <production_store.h>

Public Functions

Type Name
void tomlprsr_free (prodstr_store_t * store)
Free a store created by the TOML parsing Function.
prodstr_store_t *const tomlprsr_parse (const char * toml_data)
Parse a language spec TOML string into a production store.

Detailed Description

Author:

Joe Starr

Public Functions Documentation

function tomlprsr_free

Free a store created by the TOML parsing Function.

void tomlprsr_free (
    prodstr_store_t * store
) 

Free each pointer allocated by the parsing function.

Parameters:

  • store The store to free.

function tomlprsr_parse

Parse a language spec TOML string into a production store.

prodstr_store_t *const tomlprsr_parse (
    const char * toml_data
) 

Read the TOML into an object. From the object parse into a production store. Ensure the existence of an entry symbol production.

Parameters:

  • toml_data String TOML data to parse.

Returns:

A pointer to a production store on success. A NULL pointer on failure.



The documentation for this class was generated from the following file source/toml_parser/src/toml_parser.h