Page MenuHomeClusterLabs Projects
Diviner Tech Docs PhutilCLikeCodeSnippetContextFreeGrammar

abstract class PhutilCLikeCodeSnippetContextFreeGrammar
Phorge Technical Documentation ()

Generates valid context-free code for most programming languages that could pass as C. Except for PHP. But includes Java (mostly).

Methods

final protected function getRules()
Inherited

This method is not documented.
Return
wild

public function generateSeveral($count, $implode)
Inherited

This method is not documented.
Parameters
$count
$implode
Return
wild

public function generate()
Inherited

This method is not documented.
Return
wild

final protected function applyRules($input, &$count, $rules)
Inherited

This method is not documented.
Parameters
$input
&$count
array$rules
Return
wild

private static function strPadLines($text, $num_spaces)
Inherited

This method is not documented.
Parameters
$text
$num_spaces
Return
wild

protected function buildRuleSet()

This method is not documented.
Return
wild

protected function buildGrammarSet($name, $set)
Inherited

This method is not documented.
Parameters
$name
array$set
Return
wild

protected function getStartGrammarSet()

This method is not documented.
Return
wild

protected function getStmtGrammarSet()
Inherited

This method is not documented.
Return
wild

protected function getFuncNameGrammarSet()
Inherited

This method is not documented.
Return
wild

protected function getVarNameGrammarSet()
Inherited

This method is not documented.
Return
wild

protected function getNullExprGrammarSet()
Inherited

This method is not documented.
Return
wild

protected function getNumberGrammarSet()
Inherited

This method is not documented.
Return
wild

protected function getExprGrammarSet()
Inherited

This method is not documented.
Return
wild

protected function getBoolExprGrammarSet()
Inherited

This method is not documented.
Return
wild

protected function getBoolValGrammarSet()
Inherited

This method is not documented.
Return
wild

protected function getArithExprGrammarSet()
Inherited

This method is not documented.
Return
wild

protected function getAssignmentGrammarSet()
Inherited

This method is not documented.
Return
wild

protected function getCondGrammarSet()
Inherited

This method is not documented.
Return
wild

protected function getLoopGrammarSet()
Inherited

This method is not documented.
Return
wild

protected function getTernaryExprGrammarSet()
Inherited

This method is not documented.
Return
wild

protected function getStmtTerminationGrammarSet()

This method is not documented.
Return
wild

protected function getFuncCallGrammarSet()

This method is not documented.
Return
wild

protected function getFuncCallParamGrammarSet()

This method is not documented.
Return
wild

protected function getFuncDeclGrammarSet()

This method is not documented.
Return
wild

protected function getFuncParamGrammarSet()

This method is not documented.
Return
wild

protected function getFuncBodyGrammarSet()

This method is not documented.
Return
wild

protected function getFuncReturnGrammarSet()

This method is not documented.
Return
wild

protected function getClassDeclGrammarSet()

This method is not documented.
Return
wild

protected function getClassNameGrammarSet()

This method is not documented.
Return
wild

protected function getClassBodyGrammarSet()

This method is not documented.
Return
wild

protected function getVisibilityGrammarSet()

This method is not documented.
Return
wild
This method is not documented.
Return
wild
This method is not documented.
Return
wild

protected function getMethodDeclGrammarSet()

This method is not documented.
Return
wild

protected function getMethodFuncDeclGrammarSet()

This method is not documented.
Return
wild

protected function getMethodBodyGrammarSet()

This method is not documented.
Return
wild

protected function getMethodStmtGrammarSet()

This method is not documented.
Return
wild

protected function getMethodCallGrammarSet()

This method is not documented.
Return
wild

protected function getAbstractMethodDeclGrammarSet()

This method is not documented.
Return
wild

protected function getPropDeclGrammarSet()

This method is not documented.
Return
wild

protected function getClassRuleSets()

This method is not documented.
Return
wild

public function generateClass()

This method is not documented.
Return
wild