vendor/nikic/php-parser/grammarrebuildParsers.php

Constants

LIB

LIB = '(?(DEFINE)
    (?<singleQuotedString>\'[^\\\\\']*+(?:\\\\.[^\\\\\']*+)*+\')
    (?<doubleQuotedString>"[^\\\\"]*+(?:\\\\.[^\\\\"]*+)*+")
    (?<string>(?&singleQuotedString)|(?&doubleQuotedString))
    (?<comment>/\*[^*]*+(?:\*(?!/)[^*]*+)*+\*/)
    (?<code>\{[^\'"/{}]*+(?:(?:(?&string)|(?&comment)|(?&code)|/)[^\'"/{}]*+)*+})
)'

PARAMS

PARAMS = '\[(?<params>[^[\]]*+(?:\[(?&params)\][^[\]]*+)*+)\]'

ARGS

ARGS = '\((?<args>[^()]*+(?:\((?&args)\)[^()]*+)*+)\)'

Functions

resolveNodes()

resolveNodes(  $code) 

Parameters

$code

resolveMacros()

resolveMacros(  $code) 

Parameters

$code

assertArgs()

assertArgs(  $num,   $args,   $name) 

Parameters

$num
$args
$name

resolveStackAccess()

resolveStackAccess(  $code) 

Parameters

$code

removeTrailingWhitespace()

removeTrailingWhitespace(  $code) 

Parameters

$code

ensureDirExists()

ensureDirExists(  $dir) 

Parameters

$dir

regex()

regex(  $regex) 

Parameters

$regex

magicSplit()

magicSplit(  $regex,   $string) 

Parameters

$regex
$string