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 Importer

Loads cached definitions into a symbols object.

Peg\Lib\Signals\Signal
Extended by Peg\Lib\Definitions\Importer
Namespace: Peg\Lib\Definitions
Located at src/Definitions/Importer.php
Methods summary
public
# __construct( Peg\Lib\Definitions\Symbols & $symbols, string $path = null, string $import_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 resides the cached files.
$import_type
string
$import_type The type of cache files to import.

Overrides

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

Begin importing definitions to the symbols object specified on constructor.

Begin importing definitions to 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 populated by the importer.

Reference to the symbols object that is going to be populated by the importer.

public string $definitions_path
#

Path where reside the cached files.

Path where reside the cached files.

public string $import_type
#

Format used to load the symbols.

Format used to load the symbols.

See

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