Overview

Namespaces

  • None
  • Peg
    • Cli
      • Commands
    • Config
    • Custom
      • Command
        • Action
          • Generate
          • Parse
      • CommandLine
      • Config
      • Localization
      • Utilities
    • Lib
      • Definitions
        • Element
      • Generator
      • Lexers
      • Plugins
      • Signals
        • Data
          • Definitions
          • Lexers
        • Type
  • PHP

Classes

  • Exporter
  • Importer
  • StandardType
  • Symbols
  • Type
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class Exporter

Export definitions from a symbols object into cache files.

Peg\Lib\Signals\Signal
Extended by Peg\Lib\Definitions\Exporter
Namespace: Peg\Lib\Definitions
Located at src/Definitions/Exporter.php
Methods summary
public
# __construct( Peg\Lib\Definitions\Symbols & $symbols, string $path = null, string $export_type = \Peg\Lib\Definitions\Type::JSON )

Constructor.

Constructor.

Parameters

$symbols
Peg\Lib\Definitions\Symbols
$symbols The table to populate.
$path
string
$path The path where will be stored the cache files.
$export_type
string
$export_type The type of cache files to create.

Overrides

Peg\Lib\Signals\Signal::__construct()
public
# Start( )

Begin exporting definitions from the symbols object specified on constructor.

Begin exporting definitions from the symbols object specified on constructor.

Methods inherited from Peg\Lib\Signals\Signal
Listen(), Send(), Unlisten()
Properties summary
public Peg\Lib\Definitions\Symbols $symbols
#

Reference to the symbols object that is going to be cached into files.

Reference to the symbols object that is going to be cached into files.

public string $definitions_path
#

Directory where the symbols cache files will be saved.

Directory where the symbols cache files will be saved.

public string $export_type
#

Format used to store the cached symbols.

Format used to store the cached symbols.

See

Peg\Lib\Definitions\Type
PEG Api API documentation generated by ApiGen 2.8.0