Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }