You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
403 B
18 lines
403 B
<?php
|
|
/** @license MIT
|
|
* Copyright 2021 Dustin Wilson et al.
|
|
* See LICENSE file for details */
|
|
|
|
declare(strict_types=1);
|
|
namespace MensBeam\Lit\Grammar;
|
|
use MensBeam\Lit\{
|
|
Grammar,
|
|
GrammarRegistry
|
|
};
|
|
|
|
/** A reference to a grammar's self. */
|
|
class SelfReference extends Reference {
|
|
public function get(): Grammar {
|
|
return GrammarRegistry::get($this->_ownerGrammarScopeName);
|
|
}
|
|
}
|