Changeset View
Changeset View
Standalone View
Standalone View
src/parser/PhutilParserGenerator.php
| Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | |||||
| * These are the same rules used by Yacc, but are implicit. | * These are the same rules used by Yacc, but are implicit. | ||||
| * | * | ||||
| * @task rules Grammar Rules | * @task rules Grammar Rules | ||||
| * @task rvalidation Rule Validation | * @task rvalidation Rule Validation | ||||
| * @task first Computing First() | * @task first Computing First() | ||||
| * @task tables Computing Action and Goto Tables | * @task tables Computing Action and Goto Tables | ||||
| * @task inspect Inspecting Generator State | * @task inspect Inspecting Generator State | ||||
| */ | */ | ||||
| final class PhutilParserGenerator { | final class PhutilParserGenerator extends Phobject { | ||||
| private $terminals; | private $terminals; | ||||
| private $rules; | private $rules; | ||||
| private $startRule = 'start'; | private $startRule = 'start'; | ||||
| private $states = array(); | |||||
| private $sets = array(); | private $sets = array(); | ||||
| private $successor = array(); | private $successor = array(); | ||||
| private $setHashes = array(); | private $setHashes = array(); | ||||
| private $actionTable; | private $actionTable; | ||||
| private $gotoTable; | private $gotoTable; | ||||
| private $rulesValidated = false; | private $rulesValidated = false; | ||||
| private $eofSymbol; | private $eofSymbol; | ||||
| ▲ Show 20 Lines • Show All 842 Lines • Show Last 20 Lines | |||||