In normal usage of the library the parameters won't be used (see `dW\Lit\Grammar::loadJSON` and examples below for more information), but they are listed below for completeness' sake.
In normal usage of the library the parameters won't be used (see `MensBeam\Lit\Grammar::loadJSON` and examples below for more information), but they are listed below for completeness' sake.
***scopeName*** - The scope name of the grammar
***patterns*** - The list of patterns in the grammar
@ -29,12 +29,12 @@ In normal usage of the library the parameters won't be used (see `dW\Lit\Grammar
***repository*** - The list of repository items in the grammar
### dW\\Lit\\Grammar::loadJSON ###
### MensBeam\\Lit\\Grammar::loadJSON ###
Imports an Atom JSON grammar into the `dW\Lit\Grammar` object.
Imports an Atom JSON grammar into the `MensBeam\Lit\Grammar` object.
```php
public function dW\Lit\Grammar::loadJSON(string $filename)
public function MensBeam\Lit\Grammar::loadJSON(string $filename)
```
#### Parameters ####
@ -42,21 +42,21 @@ public function dW\Lit\Grammar::loadJSON(string $filename)
***filename*** - The JSON file to be imported
### dW\\Lit\\GrammarRegistry::clear ###
### MensBeam\\Lit\\GrammarRegistry::clear ###
Clears all grammars from the registry
```php
public static function dW\Lit\GrammarRegistry::clear()
public static function MensBeam\Lit\GrammarRegistry::clear()
```
### dW\\Lit\\GrammarRegistry::get ###
### MensBeam\\Lit\\GrammarRegistry::get ###
Retrieves a grammar from the registry
```php
public static function dW\Lit\GrammarRegistry::get(string $scopeName): Grammar|false
public static function MensBeam\Lit\GrammarRegistry::get(string $scopeName): Grammar|false
```
#### Parameters ####
@ -65,15 +65,15 @@ public static function dW\Lit\GrammarRegistry::get(string $scopeName): Grammar|f
#### Return Values ####
Returns a `dW\Lit\Grammar` object on success and `false` on failure.
Returns a `MensBeam\Lit\Grammar` object on success and `false` on failure.
### dW\\Lit\\GrammarRegistry::set ###
### MensBeam\\Lit\\GrammarRegistry::set ###
Retrieves a grammar from the registry
```php
public static function dW\Lit\GrammarRegistry::set(string $scopeName, dW\Lit\Grammar $grammar): bool
public static function MensBeam\Lit\GrammarRegistry::set(string $scopeName, MensBeam\Lit\Grammar $grammar): bool
```
#### Parameters ####
@ -86,12 +86,12 @@ public static function dW\Lit\GrammarRegistry::set(string $scopeName, dW\Lit\Gra
Returns `true` on success and `false` on failure.
### dW\\Lit\\Highlight::toElement ###
### MensBeam\\Lit\\Highlight::toElement ###
Highlights incoming string data and outputs a PHP `DOMElement`.