public function analyze()
{
$atoms = array('Ifthen', 'Foreach', 'For', 'While', 'Dowhile', 'Switch');
$blocks = array('THEN', 'ELSE', 'BLOCK', 'CASES');
$this->atomIs('Function')->outIs('BLOCK')->outIs('ELEMENT')->atomIs($atoms)->outIs($blocks)->outIs('ELEMENT')->outIsIE('CODE')->outIsIE('ELEMENT')->atomIs($atoms)->back('first');
$this->prepareQuery();
}