terminal-auspicious

Topics

programming

php drupal scheme scheming macros design patterns da la

design

design css

random thoughts

scribbles

alter ego

other me 'em that link us my space me linked in

Collections

Programmable web
PHP design patterns

Similar things

  • Relations, SQL, views, algebra or how to cook that broth
  • Once again relations, or the need to focus on smaller parts of the big picture. A rant.
  • Relations API - query generation and TODO
  • relations update
  • Relations, declarative knowledge and inference
  • A new skin for the new year
  • minor improvements
  • Wizardy, druidy, wiz
  • Random thoughts on web application internals
  • x|s|p expressions mixing

Home » blogs » vlado's blog

A simple, ineffiecient but working code filter, for filtering out functions from files

Submitted by vlado on Tue, 2006-05-09 08:58.drupal | php | work in progress

I've just uploaded into the bryght svn a basic filter, actually a couple of them (I was lazy). They parse a php file, and output (leave out in the case of the no_filter), all functions starting with a given prefix.

I've done it in order to be able to play with separate theme_xxx files.

usage:
vlado:~$ no_filter function_prefix php_file
read the php_file, print it to stdout, leaving out all functions starting with function prefix.

vlado:~$ yes_filter function_prefix php_file
read the php_file, print it to stdout, leaving out all functions not starting with function prefix.

both filters know about associated comments, etc...

vlado's blog | add new comment
Home » blogs » vlado's blog

dikini.net

spreading confusion by accident since 1970