Page MenuHomeIsabelle/Phabricator
Diviner Phabricator Tech Docs PhutilCodeSnippetContextFreeGrammar

abstract class PhutilCodeSnippetContextFreeGrammar
Phabricator Technical Documentation ()

Generates non-sense code snippets according to context-free rules, respecting indentation etc.

Also provides a common ruleset shared among many mainstream programming languages (that is, not Lisp).

Methods

public function generate()

This method is not documented.
Return
wild

final protected function getRules()

This method is not documented.
Return
wild

abstract protected function buildRuleSet()

This method is not documented.
Return
wild

protected function buildGrammarSet($name, $set)

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

protected function getStartGrammarSet()

This method is not documented.
Return
wild

protected function getStmtGrammarSet()

This method is not documented.
Return
wild

protected function getFuncNameGrammarSet()

This method is not documented.
Return
wild

protected function getVarNameGrammarSet()

This method is not documented.
Return
wild

protected function getNullExprGrammarSet()

This method is not documented.
Return
wild

protected function getNumberGrammarSet()

This method is not documented.
Return
wild

protected function getExprGrammarSet()

This method is not documented.
Return
wild

protected function getBoolExprGrammarSet()

This method is not documented.
Return
wild

protected function getBoolValGrammarSet()

This method is not documented.
Return
wild

protected function getArithExprGrammarSet()

This method is not documented.
Return
wild

protected function getAssignmentGrammarSet()

This method is not documented.
Return
wild

protected function getCondGrammarSet()

This method is not documented.
Return
wild

protected function getLoopGrammarSet()

This method is not documented.
Return
wild

protected function getTernaryExprGrammarSet()

This method is not documented.
Return
wild

protected function getStmtTerminationGrammarSet()

This method is not documented.
Return
wild