Lines Matching refs:type
39 $ebnf_lexemes[] = array( 'type' => EBNF_OPERATOR_TOKEN, 'expr' => '[={}()|.;[\]]' );
40 $ebnf_lexemes[] = array( 'type' => EBNF_LITERAL_TOKEN, 'expr' => "\"[^\"]*\"" );
41 $ebnf_lexemes[] = array( 'type' => EBNF_LITERAL_TOKEN, 'expr' => "'[^']*'" );
42 $ebnf_lexemes[] = array( 'type' => EBNF_IDENTIFIER_TOKEN, 'expr' => "[a-zA-Z0-9_-]+" );
43 $ebnf_lexemes[] = array( 'type' => EBNF_WHITESPACE_TOKEN, 'expr' => "\\s+" );
264 if ($ebnf_lexemes[$j]['type']!=EBNF_WHITESPACE_TOKEN)
265 $tokens[] = array('type' => $ebnf_lexemes[$j]['type'],
274 function ebnf_check_token($token, $type, $value) {
275 return $token['type']==$type && $token['value']==$value;
284 if ($token['type'] == EBNF_LITERAL_TOKEN) {
292 while ($i < count($tokens) && $token['type'] == EBNF_IDENTIFIER_TOKEN) {
299 if ($token['type'] == EBNF_LITERAL_TOKEN) {
309 if ($token['type']!=EBNF_IDENTIFIER_TOKEN)
349 if ($token['type']==EBNF_IDENTIFIER_TOKEN) {
353 } if ($token['type']==EBNF_LITERAL_TOKEN){