/** * Returns an identifier or a keyword * @param string $ch the starting char * @return string */ protected function identifier($ch) { $idkw = parent::identifier($ch); return $idkw == EPL_T_IDENTIFIER ? EPQ_T_IDENTIFIER : $idkw; }
/** * Constructor * @param string $s */ public function __construct($s = '') { // add data types into keywords foreach (epFieldMap::getSupportedTypes() as $dt) { if ($dt != epFieldMap::DT_HAS && $dt != epFieldMap::DT_COMPOSED_OF) { self::$tag_keywords[$dt] = EPL_T_DATA_TYPE; } } // set keywords to lexer parent::__construct($s, self::$tag_keywords); }