Page MenuHomePhorge
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

public function __get($name)
Inherited

This method is not documented.
Parameters
$name
Return
wild

public function __set($name, $value)
Inherited

This method is not documented.
Parameters
$name
$value
Return
wild

public function current()
Inherited

This method is not documented.
Return
wild

public function key()
Inherited

This method is not documented.
Return
wild

public function next()
Inherited

This method is not documented.
Return
wild

public function rewind()
Inherited

This method is not documented.
Return
wild

public function valid()
Inherited

This method is not documented.
Return
wild

private function throwOnAttemptedIteration()
Inherited

This method is not documented.
Return
wild

public function getPhobjectClassConstant($key, $byte_limit)
Inherited

Phobject

Read the value of a class constant.

This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.

Parameters
string$keyName of the constant.
int|null$byte_limitMaximum number of bytes permitted in the value.
Return
stringValue of the constant.

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