Lines Matching refs:code
22 function preprocessGrammar($code) { argument
23 $code = resolveNodes($code);
24 $code = resolveMacros($code);
25 $code = resolveStackAccess($code);
26 $code = str_replace('$this', '$self', $code);
28 return $code;
31 function resolveNodes($code) { argument
50 $code
54 function resolveMacros($code) { argument
129 $code
139 function resolveStackAccess($code) { argument
140 $code = preg_replace('/\$\d+/', '$this->semStack[$0]', $code);
141 $code = preg_replace('/#(\d+)/', '$$1', $code);
142 return $code;
145 function removeTrailingWhitespace($code) { argument
146 $lines = explode("\n", $code);