mirror of
https://github.com/php/php-src.git
synced 2024-11-27 20:03:40 +08:00
7449 lines
171 KiB
C
7449 lines
171 KiB
C
/* Generated by re2c 0.13.5 */
|
|
#line 1 "Zend/zend_language_scanner.l"
|
|
/*
|
|
+----------------------------------------------------------------------+
|
|
| Zend Engine |
|
|
+----------------------------------------------------------------------+
|
|
| Copyright (c) 1998-2014 Zend Technologies Ltd. (http://www.zend.com) |
|
|
+----------------------------------------------------------------------+
|
|
| This source file is subject to version 2.00 of the Zend license, |
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
| available through the world-wide-web at the following url: |
|
|
| http://www.zend.com/license/2_00.txt. |
|
|
| If you did not receive a copy of the Zend license and are unable to |
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
| license@zend.com so we can mail you a copy immediately. |
|
|
+----------------------------------------------------------------------+
|
|
| Authors: Marcus Boerger <helly@php.net> |
|
|
| Nuno Lopes <nlopess@php.net> |
|
|
| Scott MacVicar <scottmac@php.net> |
|
|
| Flex version authors: |
|
|
| Andi Gutmans <andi@zend.com> |
|
|
| Zeev Suraski <zeev@zend.com> |
|
|
+----------------------------------------------------------------------+
|
|
*/
|
|
|
|
/* $Id$ */
|
|
|
|
#if 0
|
|
# define YYDEBUG(s, c) printf("state: %d char: %c\n", s, c)
|
|
#else
|
|
# define YYDEBUG(s, c)
|
|
#endif
|
|
|
|
#include "zend_language_scanner_defs.h"
|
|
|
|
#include <errno.h>
|
|
#include "zend.h"
|
|
#ifdef PHP_WIN32
|
|
# include <Winuser.h>
|
|
#endif
|
|
#include "zend_alloc.h"
|
|
#include <zend_language_parser.h>
|
|
#include "zend_compile.h"
|
|
#include "zend_language_scanner.h"
|
|
#include "zend_highlight.h"
|
|
#include "zend_constants.h"
|
|
#include "zend_variables.h"
|
|
#include "zend_operators.h"
|
|
#include "zend_API.h"
|
|
#include "zend_strtod.h"
|
|
#include "zend_exceptions.h"
|
|
#include "zend_virtual_cwd.h"
|
|
#include "tsrm_config_common.h"
|
|
|
|
#define YYCTYPE unsigned char
|
|
#define YYFILL(n) { if ((YYCURSOR + n) >= (YYLIMIT + ZEND_MMAP_AHEAD)) { return 0; } }
|
|
#define YYCURSOR SCNG(yy_cursor)
|
|
#define YYLIMIT SCNG(yy_limit)
|
|
#define YYMARKER SCNG(yy_marker)
|
|
|
|
#define YYGETCONDITION() SCNG(yy_state)
|
|
#define YYSETCONDITION(s) SCNG(yy_state) = s
|
|
|
|
#define STATE(name) yyc##name
|
|
|
|
/* emulate flex constructs */
|
|
#define BEGIN(state) YYSETCONDITION(STATE(state))
|
|
#define YYSTATE YYGETCONDITION()
|
|
#define yytext ((char*)SCNG(yy_text))
|
|
#define yyleng SCNG(yy_leng)
|
|
#define yyless(x) do { YYCURSOR = (unsigned char*)yytext + x; \
|
|
yyleng = (unsigned int)x; } while(0)
|
|
#define yymore() goto yymore_restart
|
|
|
|
/* perform sanity check. If this message is triggered you should
|
|
increase the ZEND_MMAP_AHEAD value in the zend_streams.h file */
|
|
#define YYMAXFILL 16
|
|
#if ZEND_MMAP_AHEAD < YYMAXFILL
|
|
# error ZEND_MMAP_AHEAD should be greater than or equal to YYMAXFILL
|
|
#endif
|
|
|
|
#ifdef HAVE_STDARG_H
|
|
# include <stdarg.h>
|
|
#endif
|
|
|
|
#ifdef HAVE_UNISTD_H
|
|
# include <unistd.h>
|
|
#endif
|
|
|
|
/* Globals Macros */
|
|
#define SCNG LANG_SCNG
|
|
#ifdef ZTS
|
|
ZEND_API ts_rsrc_id language_scanner_globals_id;
|
|
#else
|
|
ZEND_API zend_php_scanner_globals language_scanner_globals;
|
|
#endif
|
|
|
|
#define HANDLE_NEWLINES(s, l) \
|
|
do { \
|
|
char *p = (s), *boundary = p+(l); \
|
|
\
|
|
while (p<boundary) { \
|
|
if (*p == '\n' || (*p == '\r' && (*(p+1) != '\n'))) { \
|
|
CG(zend_lineno)++; \
|
|
} \
|
|
p++; \
|
|
} \
|
|
} while (0)
|
|
|
|
#define HANDLE_NEWLINE(c) \
|
|
{ \
|
|
if (c == '\n' || c == '\r') { \
|
|
CG(zend_lineno)++; \
|
|
} \
|
|
}
|
|
|
|
/* To save initial string length after scanning to first variable */
|
|
#define SET_DOUBLE_QUOTES_SCANNED_LENGTH(len) SCNG(scanned_string_len) = (len)
|
|
#define GET_DOUBLE_QUOTES_SCANNED_LENGTH() SCNG(scanned_string_len)
|
|
|
|
#define IS_LABEL_START(c) (((c) >= 'a' && (c) <= 'z') || ((c) >= 'A' && (c) <= 'Z') || (c) == '_' || (c) >= 0x7F)
|
|
|
|
#define ZEND_IS_OCT(c) ((c)>='0' && (c)<='7')
|
|
#define ZEND_IS_HEX(c) (((c)>='0' && (c)<='9') || ((c)>='a' && (c)<='f') || ((c)>='A' && (c)<='F'))
|
|
|
|
BEGIN_EXTERN_C()
|
|
|
|
static size_t encoding_filter_script_to_internal(unsigned char **to, size_t *to_length, const unsigned char *from, size_t from_length)
|
|
{
|
|
const zend_encoding *internal_encoding = zend_multibyte_get_internal_encoding();
|
|
ZEND_ASSERT(internal_encoding);
|
|
return zend_multibyte_encoding_converter(to, to_length, from, from_length, internal_encoding, LANG_SCNG(script_encoding));
|
|
}
|
|
|
|
static size_t encoding_filter_script_to_intermediate(unsigned char **to, size_t *to_length, const unsigned char *from, size_t from_length)
|
|
{
|
|
return zend_multibyte_encoding_converter(to, to_length, from, from_length, zend_multibyte_encoding_utf8, LANG_SCNG(script_encoding));
|
|
}
|
|
|
|
static size_t encoding_filter_intermediate_to_script(unsigned char **to, size_t *to_length, const unsigned char *from, size_t from_length)
|
|
{
|
|
return zend_multibyte_encoding_converter(to, to_length, from, from_length,
|
|
LANG_SCNG(script_encoding), zend_multibyte_encoding_utf8);
|
|
}
|
|
|
|
static size_t encoding_filter_intermediate_to_internal(unsigned char **to, size_t *to_length, const unsigned char *from, size_t from_length)
|
|
{
|
|
const zend_encoding *internal_encoding = zend_multibyte_get_internal_encoding();
|
|
ZEND_ASSERT(internal_encoding);
|
|
return zend_multibyte_encoding_converter(to, to_length, from, from_length,
|
|
internal_encoding, zend_multibyte_encoding_utf8);
|
|
}
|
|
|
|
|
|
static void _yy_push_state(int new_state)
|
|
{
|
|
zend_stack_push(&SCNG(state_stack), (void *) &YYGETCONDITION());
|
|
YYSETCONDITION(new_state);
|
|
}
|
|
|
|
#define yy_push_state(state_and_tsrm) _yy_push_state(yyc##state_and_tsrm)
|
|
|
|
static void yy_pop_state(void)
|
|
{
|
|
int *stack_state = zend_stack_top(&SCNG(state_stack));
|
|
YYSETCONDITION(*stack_state);
|
|
zend_stack_del_top(&SCNG(state_stack));
|
|
}
|
|
|
|
static void yy_scan_buffer(char *str, unsigned int len)
|
|
{
|
|
YYCURSOR = (YYCTYPE*)str;
|
|
YYLIMIT = YYCURSOR + len;
|
|
if (!SCNG(yy_start)) {
|
|
SCNG(yy_start) = YYCURSOR;
|
|
}
|
|
}
|
|
|
|
void startup_scanner(void)
|
|
{
|
|
CG(parse_error) = 0;
|
|
CG(doc_comment) = NULL;
|
|
zend_stack_init(&SCNG(state_stack), sizeof(int));
|
|
zend_ptr_stack_init(&SCNG(heredoc_label_stack));
|
|
}
|
|
|
|
static void heredoc_label_dtor(zend_heredoc_label *heredoc_label) {
|
|
efree(heredoc_label->label);
|
|
}
|
|
|
|
void shutdown_scanner(void)
|
|
{
|
|
CG(parse_error) = 0;
|
|
RESET_DOC_COMMENT();
|
|
zend_stack_destroy(&SCNG(state_stack));
|
|
zend_ptr_stack_clean(&SCNG(heredoc_label_stack), (void (*)(void *)) &heredoc_label_dtor, 1);
|
|
zend_ptr_stack_destroy(&SCNG(heredoc_label_stack));
|
|
}
|
|
|
|
ZEND_API void zend_save_lexical_state(zend_lex_state *lex_state)
|
|
{
|
|
lex_state->yy_leng = SCNG(yy_leng);
|
|
lex_state->yy_start = SCNG(yy_start);
|
|
lex_state->yy_text = SCNG(yy_text);
|
|
lex_state->yy_cursor = SCNG(yy_cursor);
|
|
lex_state->yy_marker = SCNG(yy_marker);
|
|
lex_state->yy_limit = SCNG(yy_limit);
|
|
|
|
lex_state->state_stack = SCNG(state_stack);
|
|
zend_stack_init(&SCNG(state_stack), sizeof(int));
|
|
|
|
lex_state->heredoc_label_stack = SCNG(heredoc_label_stack);
|
|
zend_ptr_stack_init(&SCNG(heredoc_label_stack));
|
|
|
|
lex_state->in = SCNG(yy_in);
|
|
lex_state->yy_state = YYSTATE;
|
|
lex_state->filename = zend_get_compiled_filename();
|
|
lex_state->lineno = CG(zend_lineno);
|
|
|
|
lex_state->script_org = SCNG(script_org);
|
|
lex_state->script_org_size = SCNG(script_org_size);
|
|
lex_state->script_filtered = SCNG(script_filtered);
|
|
lex_state->script_filtered_size = SCNG(script_filtered_size);
|
|
lex_state->input_filter = SCNG(input_filter);
|
|
lex_state->output_filter = SCNG(output_filter);
|
|
lex_state->script_encoding = SCNG(script_encoding);
|
|
}
|
|
|
|
ZEND_API void zend_restore_lexical_state(zend_lex_state *lex_state)
|
|
{
|
|
SCNG(yy_leng) = lex_state->yy_leng;
|
|
SCNG(yy_start) = lex_state->yy_start;
|
|
SCNG(yy_text) = lex_state->yy_text;
|
|
SCNG(yy_cursor) = lex_state->yy_cursor;
|
|
SCNG(yy_marker) = lex_state->yy_marker;
|
|
SCNG(yy_limit) = lex_state->yy_limit;
|
|
|
|
zend_stack_destroy(&SCNG(state_stack));
|
|
SCNG(state_stack) = lex_state->state_stack;
|
|
|
|
zend_ptr_stack_clean(&SCNG(heredoc_label_stack), (void (*)(void *)) &heredoc_label_dtor, 1);
|
|
zend_ptr_stack_destroy(&SCNG(heredoc_label_stack));
|
|
SCNG(heredoc_label_stack) = lex_state->heredoc_label_stack;
|
|
|
|
SCNG(yy_in) = lex_state->in;
|
|
YYSETCONDITION(lex_state->yy_state);
|
|
CG(zend_lineno) = lex_state->lineno;
|
|
zend_restore_compiled_filename(lex_state->filename);
|
|
|
|
if (SCNG(script_filtered)) {
|
|
efree(SCNG(script_filtered));
|
|
SCNG(script_filtered) = NULL;
|
|
}
|
|
SCNG(script_org) = lex_state->script_org;
|
|
SCNG(script_org_size) = lex_state->script_org_size;
|
|
SCNG(script_filtered) = lex_state->script_filtered;
|
|
SCNG(script_filtered_size) = lex_state->script_filtered_size;
|
|
SCNG(input_filter) = lex_state->input_filter;
|
|
SCNG(output_filter) = lex_state->output_filter;
|
|
SCNG(script_encoding) = lex_state->script_encoding;
|
|
|
|
RESET_DOC_COMMENT();
|
|
}
|
|
|
|
ZEND_API void zend_destroy_file_handle(zend_file_handle *file_handle)
|
|
{
|
|
zend_llist_del_element(&CG(open_files), file_handle, (int (*)(void *, void *)) zend_compare_file_handles);
|
|
/* zend_file_handle_dtor() operates on the copy, so we have to NULLify the original here */
|
|
file_handle->opened_path = NULL;
|
|
if (file_handle->free_filename) {
|
|
file_handle->filename = NULL;
|
|
}
|
|
}
|
|
|
|
#define BOM_UTF32_BE "\x00\x00\xfe\xff"
|
|
#define BOM_UTF32_LE "\xff\xfe\x00\x00"
|
|
#define BOM_UTF16_BE "\xfe\xff"
|
|
#define BOM_UTF16_LE "\xff\xfe"
|
|
#define BOM_UTF8 "\xef\xbb\xbf"
|
|
|
|
static const zend_encoding *zend_multibyte_detect_utf_encoding(const unsigned char *script, size_t script_size)
|
|
{
|
|
const unsigned char *p;
|
|
int wchar_size = 2;
|
|
int le = 0;
|
|
|
|
/* utf-16 or utf-32? */
|
|
p = script;
|
|
assert(p >= script);
|
|
while ((size_t)(p-script) < script_size) {
|
|
p = memchr(p, 0, script_size-(p-script)-2);
|
|
if (!p) {
|
|
break;
|
|
}
|
|
if (*(p+1) == '\0' && *(p+2) == '\0') {
|
|
wchar_size = 4;
|
|
break;
|
|
}
|
|
|
|
/* searching for UTF-32 specific byte orders, so this will do */
|
|
p += 4;
|
|
}
|
|
|
|
/* BE or LE? */
|
|
p = script;
|
|
assert(p >= script);
|
|
while ((size_t)(p-script) < script_size) {
|
|
if (*p == '\0' && *(p+wchar_size-1) != '\0') {
|
|
/* BE */
|
|
le = 0;
|
|
break;
|
|
} else if (*p != '\0' && *(p+wchar_size-1) == '\0') {
|
|
/* LE* */
|
|
le = 1;
|
|
break;
|
|
}
|
|
p += wchar_size;
|
|
}
|
|
|
|
if (wchar_size == 2) {
|
|
return le ? zend_multibyte_encoding_utf16le : zend_multibyte_encoding_utf16be;
|
|
} else {
|
|
return le ? zend_multibyte_encoding_utf32le : zend_multibyte_encoding_utf32be;
|
|
}
|
|
|
|
return NULL;
|
|
}
|
|
|
|
static const zend_encoding* zend_multibyte_detect_unicode(void)
|
|
{
|
|
const zend_encoding *script_encoding = NULL;
|
|
int bom_size;
|
|
unsigned char *pos1, *pos2;
|
|
|
|
if (LANG_SCNG(script_org_size) < sizeof(BOM_UTF32_LE)-1) {
|
|
return NULL;
|
|
}
|
|
|
|
/* check out BOM */
|
|
if (!memcmp(LANG_SCNG(script_org), BOM_UTF32_BE, sizeof(BOM_UTF32_BE)-1)) {
|
|
script_encoding = zend_multibyte_encoding_utf32be;
|
|
bom_size = sizeof(BOM_UTF32_BE)-1;
|
|
} else if (!memcmp(LANG_SCNG(script_org), BOM_UTF32_LE, sizeof(BOM_UTF32_LE)-1)) {
|
|
script_encoding = zend_multibyte_encoding_utf32le;
|
|
bom_size = sizeof(BOM_UTF32_LE)-1;
|
|
} else if (!memcmp(LANG_SCNG(script_org), BOM_UTF16_BE, sizeof(BOM_UTF16_BE)-1)) {
|
|
script_encoding = zend_multibyte_encoding_utf16be;
|
|
bom_size = sizeof(BOM_UTF16_BE)-1;
|
|
} else if (!memcmp(LANG_SCNG(script_org), BOM_UTF16_LE, sizeof(BOM_UTF16_LE)-1)) {
|
|
script_encoding = zend_multibyte_encoding_utf16le;
|
|
bom_size = sizeof(BOM_UTF16_LE)-1;
|
|
} else if (!memcmp(LANG_SCNG(script_org), BOM_UTF8, sizeof(BOM_UTF8)-1)) {
|
|
script_encoding = zend_multibyte_encoding_utf8;
|
|
bom_size = sizeof(BOM_UTF8)-1;
|
|
}
|
|
|
|
if (script_encoding) {
|
|
/* remove BOM */
|
|
LANG_SCNG(script_org) += bom_size;
|
|
LANG_SCNG(script_org_size) -= bom_size;
|
|
|
|
return script_encoding;
|
|
}
|
|
|
|
/* script contains NULL bytes -> auto-detection */
|
|
if ((pos1 = memchr(LANG_SCNG(script_org), 0, LANG_SCNG(script_org_size)))) {
|
|
/* check if the NULL byte is after the __HALT_COMPILER(); */
|
|
pos2 = LANG_SCNG(script_org);
|
|
|
|
while (pos1 - pos2 >= sizeof("__HALT_COMPILER();")-1) {
|
|
pos2 = memchr(pos2, '_', pos1 - pos2);
|
|
if (!pos2) break;
|
|
pos2++;
|
|
if (strncasecmp((char*)pos2, "_HALT_COMPILER", sizeof("_HALT_COMPILER")-1) == 0) {
|
|
pos2 += sizeof("_HALT_COMPILER")-1;
|
|
while (*pos2 == ' ' ||
|
|
*pos2 == '\t' ||
|
|
*pos2 == '\r' ||
|
|
*pos2 == '\n') {
|
|
pos2++;
|
|
}
|
|
if (*pos2 == '(') {
|
|
pos2++;
|
|
while (*pos2 == ' ' ||
|
|
*pos2 == '\t' ||
|
|
*pos2 == '\r' ||
|
|
*pos2 == '\n') {
|
|
pos2++;
|
|
}
|
|
if (*pos2 == ')') {
|
|
pos2++;
|
|
while (*pos2 == ' ' ||
|
|
*pos2 == '\t' ||
|
|
*pos2 == '\r' ||
|
|
*pos2 == '\n') {
|
|
pos2++;
|
|
}
|
|
if (*pos2 == ';') {
|
|
return NULL;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
/* make best effort if BOM is missing */
|
|
return zend_multibyte_detect_utf_encoding(LANG_SCNG(script_org), LANG_SCNG(script_org_size));
|
|
}
|
|
|
|
return NULL;
|
|
}
|
|
|
|
static const zend_encoding* zend_multibyte_find_script_encoding(void)
|
|
{
|
|
const zend_encoding *script_encoding;
|
|
|
|
if (CG(detect_unicode)) {
|
|
/* check out bom(byte order mark) and see if containing wchars */
|
|
script_encoding = zend_multibyte_detect_unicode();
|
|
if (script_encoding != NULL) {
|
|
/* bom or wchar detection is prior to 'script_encoding' option */
|
|
return script_encoding;
|
|
}
|
|
}
|
|
|
|
/* if no script_encoding specified, just leave alone */
|
|
if (!CG(script_encoding_list) || !CG(script_encoding_list_size)) {
|
|
return NULL;
|
|
}
|
|
|
|
/* if multiple encodings specified, detect automagically */
|
|
if (CG(script_encoding_list_size) > 1) {
|
|
return zend_multibyte_encoding_detector(LANG_SCNG(script_org), LANG_SCNG(script_org_size), CG(script_encoding_list), CG(script_encoding_list_size));
|
|
}
|
|
|
|
return CG(script_encoding_list)[0];
|
|
}
|
|
|
|
ZEND_API int zend_multibyte_set_filter(const zend_encoding *onetime_encoding)
|
|
{
|
|
const zend_encoding *internal_encoding = zend_multibyte_get_internal_encoding();
|
|
const zend_encoding *script_encoding = onetime_encoding ? onetime_encoding: zend_multibyte_find_script_encoding();
|
|
|
|
if (!script_encoding) {
|
|
return FAILURE;
|
|
}
|
|
|
|
/* judge input/output filter */
|
|
LANG_SCNG(script_encoding) = script_encoding;
|
|
LANG_SCNG(input_filter) = NULL;
|
|
LANG_SCNG(output_filter) = NULL;
|
|
|
|
if (!internal_encoding || LANG_SCNG(script_encoding) == internal_encoding) {
|
|
if (!zend_multibyte_check_lexer_compatibility(LANG_SCNG(script_encoding))) {
|
|
/* and if not, work around w/ script_encoding -> utf-8 -> script_encoding conversion */
|
|
LANG_SCNG(input_filter) = encoding_filter_script_to_intermediate;
|
|
LANG_SCNG(output_filter) = encoding_filter_intermediate_to_script;
|
|
} else {
|
|
LANG_SCNG(input_filter) = NULL;
|
|
LANG_SCNG(output_filter) = NULL;
|
|
}
|
|
return SUCCESS;
|
|
}
|
|
|
|
if (zend_multibyte_check_lexer_compatibility(internal_encoding)) {
|
|
LANG_SCNG(input_filter) = encoding_filter_script_to_internal;
|
|
LANG_SCNG(output_filter) = NULL;
|
|
} else if (zend_multibyte_check_lexer_compatibility(LANG_SCNG(script_encoding))) {
|
|
LANG_SCNG(input_filter) = NULL;
|
|
LANG_SCNG(output_filter) = encoding_filter_script_to_internal;
|
|
} else {
|
|
/* both script and internal encodings are incompatible w/ flex */
|
|
LANG_SCNG(input_filter) = encoding_filter_script_to_intermediate;
|
|
LANG_SCNG(output_filter) = encoding_filter_intermediate_to_internal;
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
ZEND_API int open_file_for_scanning(zend_file_handle *file_handle)
|
|
{
|
|
const char *file_path = NULL;
|
|
char *buf;
|
|
size_t size, offset = 0;
|
|
zend_string *compiled_filename;
|
|
|
|
/* The shebang line was read, get the current position to obtain the buffer start */
|
|
if (CG(start_lineno) == 2 && file_handle->type == ZEND_HANDLE_FP && file_handle->handle.fp) {
|
|
if ((offset = ftell(file_handle->handle.fp)) == -1) {
|
|
offset = 0;
|
|
}
|
|
}
|
|
|
|
if (zend_stream_fixup(file_handle, &buf, &size) == FAILURE) {
|
|
return FAILURE;
|
|
}
|
|
|
|
zend_llist_add_element(&CG(open_files), file_handle);
|
|
if (file_handle->handle.stream.handle >= (void*)file_handle && file_handle->handle.stream.handle <= (void*)(file_handle+1)) {
|
|
zend_file_handle *fh = (zend_file_handle*)zend_llist_get_last(&CG(open_files));
|
|
size_t diff = (char*)file_handle->handle.stream.handle - (char*)file_handle;
|
|
fh->handle.stream.handle = (void*)(((char*)fh) + diff);
|
|
file_handle->handle.stream.handle = fh->handle.stream.handle;
|
|
}
|
|
|
|
/* Reset the scanner for scanning the new file */
|
|
SCNG(yy_in) = file_handle;
|
|
SCNG(yy_start) = NULL;
|
|
|
|
if (size != -1) {
|
|
if (CG(multibyte)) {
|
|
SCNG(script_org) = (unsigned char*)buf;
|
|
SCNG(script_org_size) = size;
|
|
SCNG(script_filtered) = NULL;
|
|
|
|
zend_multibyte_set_filter(NULL);
|
|
|
|
if (SCNG(input_filter)) {
|
|
if ((size_t)-1 == SCNG(input_filter)(&SCNG(script_filtered), &SCNG(script_filtered_size), SCNG(script_org), SCNG(script_org_size))) {
|
|
zend_error_noreturn(E_COMPILE_ERROR, "Could not convert the script from the detected "
|
|
"encoding \"%s\" to a compatible encoding", zend_multibyte_get_encoding_name(LANG_SCNG(script_encoding)));
|
|
}
|
|
buf = (char*)SCNG(script_filtered);
|
|
size = SCNG(script_filtered_size);
|
|
}
|
|
}
|
|
SCNG(yy_start) = (unsigned char *)buf - offset;
|
|
yy_scan_buffer(buf, (unsigned int)size);
|
|
} else {
|
|
zend_error_noreturn(E_COMPILE_ERROR, "zend_stream_mmap() failed");
|
|
}
|
|
|
|
BEGIN(INITIAL);
|
|
|
|
if (file_handle->opened_path) {
|
|
file_path = file_handle->opened_path;
|
|
} else {
|
|
file_path = file_handle->filename;
|
|
}
|
|
|
|
compiled_filename = zend_string_init(file_path, strlen(file_path), 0);
|
|
zend_set_compiled_filename(compiled_filename);
|
|
zend_string_release(compiled_filename);
|
|
|
|
if (CG(start_lineno)) {
|
|
CG(zend_lineno) = CG(start_lineno);
|
|
CG(start_lineno) = 0;
|
|
} else {
|
|
CG(zend_lineno) = 1;
|
|
}
|
|
|
|
RESET_DOC_COMMENT();
|
|
CG(increment_lineno) = 0;
|
|
return SUCCESS;
|
|
}
|
|
END_EXTERN_C()
|
|
|
|
|
|
ZEND_API zend_op_array *compile_file(zend_file_handle *file_handle, int type)
|
|
{
|
|
zend_lex_state original_lex_state;
|
|
zend_op_array *op_array = (zend_op_array *) emalloc(sizeof(zend_op_array));
|
|
zend_op_array *original_active_op_array = CG(active_op_array);
|
|
int compiler_result;
|
|
zend_bool compilation_successful=0;
|
|
zval retval_zv;
|
|
zend_bool original_in_compilation = CG(in_compilation);
|
|
|
|
ZVAL_LONG(&retval_zv, 1);
|
|
|
|
zend_save_lexical_state(&original_lex_state);
|
|
|
|
if (open_file_for_scanning(file_handle)==FAILURE) {
|
|
if (type==ZEND_REQUIRE) {
|
|
zend_message_dispatcher(ZMSG_FAILED_REQUIRE_FOPEN, file_handle->filename);
|
|
zend_bailout();
|
|
} else {
|
|
zend_message_dispatcher(ZMSG_FAILED_INCLUDE_FOPEN, file_handle->filename);
|
|
}
|
|
compilation_successful=0;
|
|
} else {
|
|
init_op_array(op_array, ZEND_USER_FUNCTION, INITIAL_OP_ARRAY_SIZE);
|
|
CG(in_compilation) = 1;
|
|
CG(active_op_array) = op_array;
|
|
zend_stack_push(&CG(context_stack), (void *) &CG(context));
|
|
zend_init_compiler_context();
|
|
CG(ast_arena) = zend_arena_create(1024 * 32);
|
|
compiler_result = zendparse();
|
|
if (compiler_result != 0) { /* parser error */
|
|
zend_bailout();
|
|
}
|
|
zend_compile_top_stmt(CG(ast));
|
|
zend_ast_destroy(CG(ast));
|
|
zend_arena_destroy(CG(ast_arena));
|
|
zend_do_end_compilation();
|
|
zend_emit_final_return(&retval_zv);
|
|
CG(in_compilation) = original_in_compilation;
|
|
compilation_successful=1;
|
|
}
|
|
|
|
CG(active_op_array) = original_active_op_array;
|
|
if (compilation_successful) {
|
|
pass_two(op_array);
|
|
zend_release_labels(0);
|
|
} else {
|
|
efree_size(op_array, sizeof(zend_op_array));
|
|
op_array = NULL;
|
|
}
|
|
|
|
zend_restore_lexical_state(&original_lex_state);
|
|
return op_array;
|
|
}
|
|
|
|
|
|
zend_op_array *compile_filename(int type, zval *filename)
|
|
{
|
|
zend_file_handle file_handle;
|
|
zval tmp;
|
|
zend_op_array *retval;
|
|
char *opened_path = NULL;
|
|
|
|
if (Z_TYPE_P(filename) != IS_STRING) {
|
|
tmp = *filename;
|
|
zval_copy_ctor(&tmp);
|
|
convert_to_string(&tmp);
|
|
filename = &tmp;
|
|
}
|
|
file_handle.filename = Z_STRVAL_P(filename);
|
|
file_handle.free_filename = 0;
|
|
file_handle.type = ZEND_HANDLE_FILENAME;
|
|
file_handle.opened_path = NULL;
|
|
file_handle.handle.fp = NULL;
|
|
|
|
retval = zend_compile_file(&file_handle, type);
|
|
if (retval && file_handle.handle.stream.handle) {
|
|
if (!file_handle.opened_path) {
|
|
file_handle.opened_path = opened_path = estrndup(Z_STRVAL_P(filename), Z_STRLEN_P(filename));
|
|
}
|
|
|
|
zend_hash_str_add_empty_element(&EG(included_files), file_handle.opened_path, strlen(file_handle.opened_path));
|
|
|
|
if (opened_path) {
|
|
efree(opened_path);
|
|
}
|
|
}
|
|
zend_destroy_file_handle(&file_handle);
|
|
|
|
if (filename==&tmp) {
|
|
zval_dtor(&tmp);
|
|
}
|
|
return retval;
|
|
}
|
|
|
|
ZEND_API int zend_prepare_string_for_scanning(zval *str, char *filename)
|
|
{
|
|
char *buf;
|
|
size_t size, old_len;
|
|
zend_string *new_compiled_filename;
|
|
|
|
/* enforce ZEND_MMAP_AHEAD trailing NULLs for flex... */
|
|
old_len = Z_STRLEN_P(str);
|
|
Z_STR_P(str) = zend_string_realloc(Z_STR_P(str), old_len + ZEND_MMAP_AHEAD, 0);
|
|
Z_TYPE_INFO_P(str) = IS_STRING_EX;
|
|
memset(Z_STRVAL_P(str) + old_len, 0, ZEND_MMAP_AHEAD + 1);
|
|
|
|
SCNG(yy_in) = NULL;
|
|
SCNG(yy_start) = NULL;
|
|
|
|
buf = Z_STRVAL_P(str);
|
|
size = old_len;
|
|
|
|
if (CG(multibyte)) {
|
|
SCNG(script_org) = (unsigned char*)buf;
|
|
SCNG(script_org_size) = size;
|
|
SCNG(script_filtered) = NULL;
|
|
|
|
zend_multibyte_set_filter(zend_multibyte_get_internal_encoding());
|
|
|
|
if (SCNG(input_filter)) {
|
|
if ((size_t)-1 == SCNG(input_filter)(&SCNG(script_filtered), &SCNG(script_filtered_size), SCNG(script_org), SCNG(script_org_size))) {
|
|
zend_error_noreturn(E_COMPILE_ERROR, "Could not convert the script from the detected "
|
|
"encoding \"%s\" to a compatible encoding", zend_multibyte_get_encoding_name(LANG_SCNG(script_encoding)));
|
|
}
|
|
buf = (char*)SCNG(script_filtered);
|
|
size = SCNG(script_filtered_size);
|
|
}
|
|
}
|
|
|
|
yy_scan_buffer(buf, (unsigned int)size);
|
|
|
|
new_compiled_filename = zend_string_init(filename, strlen(filename), 0);
|
|
zend_set_compiled_filename(new_compiled_filename);
|
|
zend_string_release(new_compiled_filename);
|
|
CG(zend_lineno) = 1;
|
|
CG(increment_lineno) = 0;
|
|
RESET_DOC_COMMENT();
|
|
return SUCCESS;
|
|
}
|
|
|
|
|
|
ZEND_API size_t zend_get_scanned_file_offset(void)
|
|
{
|
|
size_t offset = SCNG(yy_cursor) - SCNG(yy_start);
|
|
if (SCNG(input_filter)) {
|
|
size_t original_offset = offset, length = 0;
|
|
do {
|
|
unsigned char *p = NULL;
|
|
if ((size_t)-1 == SCNG(input_filter)(&p, &length, SCNG(script_org), offset)) {
|
|
return (size_t)-1;
|
|
}
|
|
efree(p);
|
|
if (length > original_offset) {
|
|
offset--;
|
|
} else if (length < original_offset) {
|
|
offset++;
|
|
}
|
|
} while (original_offset != length);
|
|
}
|
|
return offset;
|
|
}
|
|
|
|
|
|
zend_op_array *compile_string(zval *source_string, char *filename)
|
|
{
|
|
zend_lex_state original_lex_state;
|
|
zend_op_array *op_array = NULL;
|
|
zval tmp;
|
|
zend_bool original_in_compilation = CG(in_compilation);
|
|
|
|
if (Z_STRLEN_P(source_string)==0) {
|
|
return NULL;
|
|
}
|
|
|
|
ZVAL_DUP(&tmp, source_string);
|
|
convert_to_string(&tmp);
|
|
source_string = &tmp;
|
|
|
|
CG(in_compilation) = 1;
|
|
zend_save_lexical_state(&original_lex_state);
|
|
if (zend_prepare_string_for_scanning(source_string, filename) == SUCCESS) {
|
|
CG(ast) = NULL;
|
|
CG(ast_arena) = zend_arena_create(1024 * 32);
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
|
|
if (!zendparse()) {
|
|
zend_op_array *original_active_op_array = CG(active_op_array);
|
|
op_array = emalloc(sizeof(zend_op_array));
|
|
init_op_array(op_array, ZEND_EVAL_CODE, INITIAL_OP_ARRAY_SIZE);
|
|
CG(active_op_array) = op_array;
|
|
|
|
zend_stack_push(&CG(context_stack), (void *) &CG(context));
|
|
zend_init_compiler_context();
|
|
zend_compile_top_stmt(CG(ast));
|
|
zend_do_end_compilation();
|
|
zend_emit_final_return(NULL);
|
|
pass_two(op_array);
|
|
zend_release_labels(0);
|
|
|
|
CG(active_op_array) = original_active_op_array;
|
|
}
|
|
|
|
zend_ast_destroy(CG(ast));
|
|
zend_arena_destroy(CG(ast_arena));
|
|
}
|
|
|
|
zend_restore_lexical_state(&original_lex_state);
|
|
zval_dtor(&tmp);
|
|
CG(in_compilation) = original_in_compilation;
|
|
return op_array;
|
|
}
|
|
|
|
|
|
BEGIN_EXTERN_C()
|
|
int highlight_file(char *filename, zend_syntax_highlighter_ini *syntax_highlighter_ini)
|
|
{
|
|
zend_lex_state original_lex_state;
|
|
zend_file_handle file_handle;
|
|
|
|
file_handle.type = ZEND_HANDLE_FILENAME;
|
|
file_handle.filename = filename;
|
|
file_handle.free_filename = 0;
|
|
file_handle.opened_path = NULL;
|
|
zend_save_lexical_state(&original_lex_state);
|
|
if (open_file_for_scanning(&file_handle)==FAILURE) {
|
|
zend_message_dispatcher(ZMSG_FAILED_HIGHLIGHT_FOPEN, filename);
|
|
zend_restore_lexical_state(&original_lex_state);
|
|
return FAILURE;
|
|
}
|
|
zend_highlight(syntax_highlighter_ini);
|
|
if (SCNG(script_filtered)) {
|
|
efree(SCNG(script_filtered));
|
|
SCNG(script_filtered) = NULL;
|
|
}
|
|
zend_destroy_file_handle(&file_handle);
|
|
zend_restore_lexical_state(&original_lex_state);
|
|
return SUCCESS;
|
|
}
|
|
|
|
int highlight_string(zval *str, zend_syntax_highlighter_ini *syntax_highlighter_ini, char *str_name)
|
|
{
|
|
zend_lex_state original_lex_state;
|
|
zval tmp = *str;
|
|
|
|
str = &tmp;
|
|
zval_copy_ctor(str);
|
|
zend_save_lexical_state(&original_lex_state);
|
|
if (zend_prepare_string_for_scanning(str, str_name)==FAILURE) {
|
|
zend_restore_lexical_state(&original_lex_state);
|
|
return FAILURE;
|
|
}
|
|
BEGIN(INITIAL);
|
|
zend_highlight(syntax_highlighter_ini);
|
|
if (SCNG(script_filtered)) {
|
|
efree(SCNG(script_filtered));
|
|
SCNG(script_filtered) = NULL;
|
|
}
|
|
zend_restore_lexical_state(&original_lex_state);
|
|
zval_dtor(str);
|
|
return SUCCESS;
|
|
}
|
|
|
|
ZEND_API void zend_multibyte_yyinput_again(zend_encoding_filter old_input_filter, const zend_encoding *old_encoding)
|
|
{
|
|
size_t length;
|
|
unsigned char *new_yy_start;
|
|
|
|
/* convert and set */
|
|
if (!SCNG(input_filter)) {
|
|
if (SCNG(script_filtered)) {
|
|
efree(SCNG(script_filtered));
|
|
SCNG(script_filtered) = NULL;
|
|
}
|
|
SCNG(script_filtered_size) = 0;
|
|
length = SCNG(script_org_size);
|
|
new_yy_start = SCNG(script_org);
|
|
} else {
|
|
if ((size_t)-1 == SCNG(input_filter)(&new_yy_start, &length, SCNG(script_org), SCNG(script_org_size))) {
|
|
zend_error_noreturn(E_COMPILE_ERROR, "Could not convert the script from the detected "
|
|
"encoding \"%s\" to a compatible encoding", zend_multibyte_get_encoding_name(LANG_SCNG(script_encoding)));
|
|
}
|
|
if (SCNG(script_filtered)) {
|
|
efree(SCNG(script_filtered));
|
|
}
|
|
SCNG(script_filtered) = new_yy_start;
|
|
SCNG(script_filtered_size) = length;
|
|
}
|
|
|
|
SCNG(yy_cursor) = new_yy_start + (SCNG(yy_cursor) - SCNG(yy_start));
|
|
SCNG(yy_marker) = new_yy_start + (SCNG(yy_marker) - SCNG(yy_start));
|
|
SCNG(yy_text) = new_yy_start + (SCNG(yy_text) - SCNG(yy_start));
|
|
SCNG(yy_limit) = new_yy_start + length;
|
|
|
|
SCNG(yy_start) = new_yy_start;
|
|
}
|
|
|
|
|
|
// TODO: avoid reallocation ???
|
|
# define zend_copy_value(zendlval, yytext, yyleng) \
|
|
if (SCNG(output_filter)) { \
|
|
size_t sz = 0; \
|
|
char *s = NULL; \
|
|
SCNG(output_filter)((unsigned char **)&s, &sz, (unsigned char *)yytext, (size_t)yyleng); \
|
|
ZVAL_STRINGL(zendlval, s, sz); \
|
|
efree(s); \
|
|
} else { \
|
|
ZVAL_STRINGL(zendlval, yytext, yyleng); \
|
|
}
|
|
|
|
static void zend_scan_escape_string(zval *zendlval, char *str, int len, char quote_type)
|
|
{
|
|
register char *s, *t;
|
|
char *end;
|
|
|
|
ZVAL_STRINGL(zendlval, str, len);
|
|
|
|
/* convert escape sequences */
|
|
s = t = Z_STRVAL_P(zendlval);
|
|
end = s+Z_STRLEN_P(zendlval);
|
|
while (s<end) {
|
|
if (*s=='\\') {
|
|
s++;
|
|
if (s >= end) {
|
|
*t++ = '\\';
|
|
break;
|
|
}
|
|
|
|
switch(*s) {
|
|
case 'n':
|
|
*t++ = '\n';
|
|
Z_STRLEN_P(zendlval)--;
|
|
break;
|
|
case 'r':
|
|
*t++ = '\r';
|
|
Z_STRLEN_P(zendlval)--;
|
|
break;
|
|
case 't':
|
|
*t++ = '\t';
|
|
Z_STRLEN_P(zendlval)--;
|
|
break;
|
|
case 'f':
|
|
*t++ = '\f';
|
|
Z_STRLEN_P(zendlval)--;
|
|
break;
|
|
case 'v':
|
|
*t++ = '\v';
|
|
Z_STRLEN_P(zendlval)--;
|
|
break;
|
|
case 'e':
|
|
#ifdef PHP_WIN32
|
|
*t++ = VK_ESCAPE;
|
|
#else
|
|
*t++ = '\e';
|
|
#endif
|
|
Z_STRLEN_P(zendlval)--;
|
|
break;
|
|
case '"':
|
|
case '`':
|
|
if (*s != quote_type) {
|
|
*t++ = '\\';
|
|
*t++ = *s;
|
|
break;
|
|
}
|
|
case '\\':
|
|
case '$':
|
|
*t++ = *s;
|
|
Z_STRLEN_P(zendlval)--;
|
|
break;
|
|
case 'x':
|
|
case 'X':
|
|
if (ZEND_IS_HEX(*(s+1))) {
|
|
char hex_buf[3] = { 0, 0, 0 };
|
|
|
|
Z_STRLEN_P(zendlval)--; /* for the 'x' */
|
|
|
|
hex_buf[0] = *(++s);
|
|
Z_STRLEN_P(zendlval)--;
|
|
if (ZEND_IS_HEX(*(s+1))) {
|
|
hex_buf[1] = *(++s);
|
|
Z_STRLEN_P(zendlval)--;
|
|
}
|
|
*t++ = (char) ZEND_STRTOL(hex_buf, NULL, 16);
|
|
} else {
|
|
*t++ = '\\';
|
|
*t++ = *s;
|
|
}
|
|
break;
|
|
/* UTF-8 codepoint escape, format: /\\u\{\x+\}/ */
|
|
case 'u':
|
|
{
|
|
/* cache where we started so we can parse after validating */
|
|
char *start = s + 1;
|
|
size_t len = 0;
|
|
zend_bool valid = 1;
|
|
unsigned long codepoint;
|
|
size_t byte_len = 0;
|
|
|
|
if (*start != '{') {
|
|
/* we silently let this pass to avoid breaking code
|
|
* with JSON in string literals (e.g. "\"\u202e\""
|
|
*/
|
|
*t++ = '\\';
|
|
*t++ = 'u';
|
|
break;
|
|
} else {
|
|
/* on the other hand, invalid \u{blah} errors */
|
|
s++;
|
|
len++;
|
|
s++;
|
|
while (*s != '}') {
|
|
if (!ZEND_IS_HEX(*s)) {
|
|
valid = 0;
|
|
break;
|
|
} else {
|
|
len++;
|
|
}
|
|
s++;
|
|
}
|
|
if (*s == '}') {
|
|
valid = 1;
|
|
len++;
|
|
}
|
|
}
|
|
|
|
/* \u{} is invalid */
|
|
if (len <= 2) {
|
|
valid = 0;
|
|
}
|
|
|
|
if (!valid) {
|
|
zend_error(E_COMPILE_ERROR, "Invalid UTF-8 codepoint escape sequence");
|
|
}
|
|
|
|
errno = 0;
|
|
codepoint = strtoul(start + 1, NULL, 16);
|
|
|
|
/* per RFC 3629, UTF-8 can only represent 21 bits */
|
|
if (codepoint > 0x10FFFF || errno) {
|
|
zend_error_noreturn(E_COMPILE_ERROR, "Invalid UTF-8 codepoint escape sequence: Codepoint too large");
|
|
}
|
|
|
|
/* based on https://en.wikipedia.org/wiki/UTF-8#Sample_code */
|
|
if (codepoint < 0x80) {
|
|
byte_len = 1;
|
|
*t++ = codepoint;
|
|
} else if (codepoint <= 0x7FF) {
|
|
byte_len = 2;
|
|
*t++ = (codepoint >> 6) + 0xC0;
|
|
*t++ = (codepoint & 0x3F) + 0x80;
|
|
} else if (codepoint <= 0xFFFF) {
|
|
byte_len = 3;
|
|
*t++ = (codepoint >> 12) + 0xE0;
|
|
*t++ = ((codepoint >> 6) & 0x3F) + 0x80;
|
|
*t++ = (codepoint & 0x3F) + 0x80;
|
|
} else if (codepoint <= 0x10FFFF) {
|
|
byte_len = 4;
|
|
*t++ = (codepoint >> 18) + 0xF0;
|
|
*t++ = ((codepoint >> 12) & 0x3F) + 0x80;
|
|
*t++ = ((codepoint >> 6) & 0x3F) + 0x80;
|
|
*t++ = (codepoint & 0x3F) + 0x80;
|
|
}
|
|
|
|
Z_STRLEN_P(zendlval) -= 2; /* \u */
|
|
Z_STRLEN_P(zendlval) -= (len - byte_len);
|
|
}
|
|
break;
|
|
default:
|
|
/* check for an octal */
|
|
if (ZEND_IS_OCT(*s)) {
|
|
char octal_buf[4] = { 0, 0, 0, 0 };
|
|
|
|
octal_buf[0] = *s;
|
|
Z_STRLEN_P(zendlval)--;
|
|
if (ZEND_IS_OCT(*(s+1))) {
|
|
octal_buf[1] = *(++s);
|
|
Z_STRLEN_P(zendlval)--;
|
|
if (ZEND_IS_OCT(*(s+1))) {
|
|
octal_buf[2] = *(++s);
|
|
Z_STRLEN_P(zendlval)--;
|
|
}
|
|
}
|
|
*t++ = (char) ZEND_STRTOL(octal_buf, NULL, 8);
|
|
} else {
|
|
*t++ = '\\';
|
|
*t++ = *s;
|
|
}
|
|
break;
|
|
}
|
|
} else {
|
|
*t++ = *s;
|
|
}
|
|
|
|
if (*s == '\n' || (*s == '\r' && (*(s+1) != '\n'))) {
|
|
CG(zend_lineno)++;
|
|
}
|
|
s++;
|
|
}
|
|
*t = 0;
|
|
if (SCNG(output_filter)) {
|
|
size_t sz = 0;
|
|
unsigned char *str;
|
|
// TODO: avoid realocation ???
|
|
s = Z_STRVAL_P(zendlval);
|
|
SCNG(output_filter)(&str, &sz, (unsigned char *)s, (size_t)Z_STRLEN_P(zendlval));
|
|
zval_ptr_dtor(zendlval);
|
|
ZVAL_STRINGL(zendlval, (char *) str, sz);
|
|
efree(str);
|
|
}
|
|
}
|
|
|
|
|
|
int lex_scan(zval *zendlval)
|
|
{
|
|
restart:
|
|
SCNG(yy_text) = YYCURSOR;
|
|
|
|
|
|
#line 1077 "Zend/zend_language_scanner.c"
|
|
{
|
|
YYCTYPE yych;
|
|
unsigned int yyaccept = 0;
|
|
if (YYGETCONDITION() < 5) {
|
|
if (YYGETCONDITION() < 2) {
|
|
if (YYGETCONDITION() < 1) {
|
|
goto yyc_ST_IN_SCRIPTING;
|
|
} else {
|
|
goto yyc_ST_LOOKING_FOR_PROPERTY;
|
|
}
|
|
} else {
|
|
if (YYGETCONDITION() < 3) {
|
|
goto yyc_ST_BACKQUOTE;
|
|
} else {
|
|
if (YYGETCONDITION() < 4) {
|
|
goto yyc_ST_DOUBLE_QUOTES;
|
|
} else {
|
|
goto yyc_ST_HEREDOC;
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
if (YYGETCONDITION() < 7) {
|
|
if (YYGETCONDITION() < 6) {
|
|
goto yyc_ST_LOOKING_FOR_VARNAME;
|
|
} else {
|
|
goto yyc_ST_VAR_OFFSET;
|
|
}
|
|
} else {
|
|
if (YYGETCONDITION() < 8) {
|
|
goto yyc_INITIAL;
|
|
} else {
|
|
if (YYGETCONDITION() < 9) {
|
|
goto yyc_ST_END_HEREDOC;
|
|
} else {
|
|
goto yyc_ST_NOWDOC;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
/* *********************************** */
|
|
yyc_INITIAL:
|
|
|
|
YYDEBUG(0, *YYCURSOR);
|
|
YYFILL(7);
|
|
yych = *YYCURSOR;
|
|
if (yych != '<') goto yy4;
|
|
YYDEBUG(2, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) == '?') goto yy5;
|
|
yy3:
|
|
YYDEBUG(3, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1712 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (YYCURSOR > YYLIMIT) {
|
|
return 0;
|
|
}
|
|
|
|
inline_char_handler:
|
|
|
|
while (1) {
|
|
YYCTYPE *ptr = memchr(YYCURSOR, '<', YYLIMIT - YYCURSOR);
|
|
|
|
YYCURSOR = ptr ? ptr + 1 : YYLIMIT;
|
|
|
|
if (YYCURSOR >= YYLIMIT) {
|
|
break;
|
|
}
|
|
|
|
if (*YYCURSOR == '?') {
|
|
if (CG(short_tags) || !strncasecmp((char*)YYCURSOR + 1, "php", 3) || (*(YYCURSOR + 1) == '=')) { /* Assume [ \t\n\r] follows "php" */
|
|
|
|
YYCURSOR--;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
|
|
if (SCNG(output_filter)) {
|
|
size_t readsize;
|
|
char *s = NULL;
|
|
size_t sz = 0;
|
|
// TODO: avoid reallocation ???
|
|
readsize = SCNG(output_filter)((unsigned char **)&s, &sz, (unsigned char *)yytext, (size_t)yyleng);
|
|
ZVAL_STRINGL(zendlval, s, sz);
|
|
efree(s);
|
|
if (readsize < yyleng) {
|
|
yyless(readsize);
|
|
}
|
|
} else {
|
|
ZVAL_STRINGL(zendlval, yytext, yyleng);
|
|
}
|
|
HANDLE_NEWLINES(yytext, yyleng);
|
|
return T_INLINE_HTML;
|
|
}
|
|
#line 1176 "Zend/zend_language_scanner.c"
|
|
yy4:
|
|
YYDEBUG(4, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy3;
|
|
yy5:
|
|
YYDEBUG(5, *YYCURSOR);
|
|
yyaccept = 0;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yych <= 'O') {
|
|
if (yych == '=') goto yy7;
|
|
} else {
|
|
if (yych <= 'P') goto yy9;
|
|
if (yych == 'p') goto yy9;
|
|
}
|
|
yy6:
|
|
YYDEBUG(6, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1703 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (CG(short_tags)) {
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
return T_OPEN_TAG;
|
|
} else {
|
|
goto inline_char_handler;
|
|
}
|
|
}
|
|
#line 1203 "Zend/zend_language_scanner.c"
|
|
yy7:
|
|
YYDEBUG(7, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(8, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1690 "Zend/zend_language_scanner.l"
|
|
{
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
return T_OPEN_TAG_WITH_ECHO;
|
|
}
|
|
#line 1214 "Zend/zend_language_scanner.c"
|
|
yy9:
|
|
YYDEBUG(9, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'H') goto yy11;
|
|
if (yych == 'h') goto yy11;
|
|
yy10:
|
|
YYDEBUG(10, *YYCURSOR);
|
|
YYCURSOR = YYMARKER;
|
|
goto yy6;
|
|
yy11:
|
|
YYDEBUG(11, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'P') goto yy12;
|
|
if (yych != 'p') goto yy10;
|
|
yy12:
|
|
YYDEBUG(12, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= '\f') {
|
|
if (yych <= 0x08) goto yy10;
|
|
if (yych >= '\v') goto yy10;
|
|
} else {
|
|
if (yych <= '\r') goto yy15;
|
|
if (yych != ' ') goto yy10;
|
|
}
|
|
yy13:
|
|
YYDEBUG(13, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yy14:
|
|
YYDEBUG(14, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1696 "Zend/zend_language_scanner.l"
|
|
{
|
|
HANDLE_NEWLINE(yytext[yyleng-1]);
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
return T_OPEN_TAG;
|
|
}
|
|
#line 1251 "Zend/zend_language_scanner.c"
|
|
yy15:
|
|
YYDEBUG(15, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) == '\n') goto yy13;
|
|
goto yy14;
|
|
/* *********************************** */
|
|
yyc_ST_BACKQUOTE:
|
|
{
|
|
static const unsigned char yybm[] = {
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 0, 0, 0, 0, 0, 0,
|
|
0, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 0, 0, 0, 0, 128,
|
|
0, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 0, 0, 0, 0, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
};
|
|
YYDEBUG(16, *YYCURSOR);
|
|
YYFILL(2);
|
|
yych = *YYCURSOR;
|
|
if (yych <= '_') {
|
|
if (yych != '$') goto yy23;
|
|
} else {
|
|
if (yych <= '`') goto yy21;
|
|
if (yych == '{') goto yy20;
|
|
goto yy23;
|
|
}
|
|
YYDEBUG(18, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) <= '_') {
|
|
if (yych <= '@') goto yy19;
|
|
if (yych <= 'Z') goto yy26;
|
|
if (yych >= '_') goto yy26;
|
|
} else {
|
|
if (yych <= 'z') {
|
|
if (yych >= 'a') goto yy26;
|
|
} else {
|
|
if (yych <= '{') goto yy29;
|
|
if (yych >= 0x7F) goto yy26;
|
|
}
|
|
}
|
|
yy19:
|
|
YYDEBUG(19, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2123 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (YYCURSOR > YYLIMIT) {
|
|
return 0;
|
|
}
|
|
if (yytext[0] == '\\' && YYCURSOR < YYLIMIT) {
|
|
YYCURSOR++;
|
|
}
|
|
|
|
while (YYCURSOR < YYLIMIT) {
|
|
switch (*YYCURSOR++) {
|
|
case '`':
|
|
break;
|
|
case '$':
|
|
if (IS_LABEL_START(*YYCURSOR) || *YYCURSOR == '{') {
|
|
break;
|
|
}
|
|
continue;
|
|
case '{':
|
|
if (*YYCURSOR == '$') {
|
|
break;
|
|
}
|
|
continue;
|
|
case '\\':
|
|
if (YYCURSOR < YYLIMIT) {
|
|
YYCURSOR++;
|
|
}
|
|
/* fall through */
|
|
default:
|
|
continue;
|
|
}
|
|
|
|
YYCURSOR--;
|
|
break;
|
|
}
|
|
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
|
|
zend_scan_escape_string(zendlval, yytext, yyleng, '`');
|
|
return T_ENCAPSED_AND_WHITESPACE;
|
|
}
|
|
#line 1362 "Zend/zend_language_scanner.c"
|
|
yy20:
|
|
YYDEBUG(20, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '$') goto yy24;
|
|
goto yy19;
|
|
yy21:
|
|
YYDEBUG(21, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(22, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2067 "Zend/zend_language_scanner.l"
|
|
{
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
return '`';
|
|
}
|
|
#line 1378 "Zend/zend_language_scanner.c"
|
|
yy23:
|
|
YYDEBUG(23, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy19;
|
|
yy24:
|
|
YYDEBUG(24, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(25, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2054 "Zend/zend_language_scanner.l"
|
|
{
|
|
Z_LVAL_P(zendlval) = (zend_long) '{';
|
|
yy_push_state(ST_IN_SCRIPTING);
|
|
yyless(1);
|
|
return T_CURLY_OPEN;
|
|
}
|
|
#line 1395 "Zend/zend_language_scanner.c"
|
|
yy26:
|
|
YYDEBUG(26, *YYCURSOR);
|
|
yyaccept = 0;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(3);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(27, *YYCURSOR);
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy26;
|
|
}
|
|
if (yych == '-') goto yy31;
|
|
if (yych == '[') goto yy33;
|
|
yy28:
|
|
YYDEBUG(28, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1777 "Zend/zend_language_scanner.l"
|
|
{
|
|
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
|
|
return T_VARIABLE;
|
|
}
|
|
#line 1416 "Zend/zend_language_scanner.c"
|
|
yy29:
|
|
YYDEBUG(29, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(30, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1543 "Zend/zend_language_scanner.l"
|
|
{
|
|
yy_push_state(ST_LOOKING_FOR_VARNAME);
|
|
return T_DOLLAR_OPEN_CURLY_BRACES;
|
|
}
|
|
#line 1427 "Zend/zend_language_scanner.c"
|
|
yy31:
|
|
YYDEBUG(31, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '>') goto yy35;
|
|
yy32:
|
|
YYDEBUG(32, *YYCURSOR);
|
|
YYCURSOR = YYMARKER;
|
|
goto yy28;
|
|
yy33:
|
|
YYDEBUG(33, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(34, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1770 "Zend/zend_language_scanner.l"
|
|
{
|
|
yyless(yyleng - 1);
|
|
yy_push_state(ST_VAR_OFFSET);
|
|
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
|
|
return T_VARIABLE;
|
|
}
|
|
#line 1448 "Zend/zend_language_scanner.c"
|
|
yy35:
|
|
YYDEBUG(35, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= '_') {
|
|
if (yych <= '@') goto yy32;
|
|
if (yych <= 'Z') goto yy36;
|
|
if (yych <= '^') goto yy32;
|
|
} else {
|
|
if (yych <= '`') goto yy32;
|
|
if (yych <= 'z') goto yy36;
|
|
if (yych <= '~') goto yy32;
|
|
}
|
|
yy36:
|
|
YYDEBUG(36, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(37, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1761 "Zend/zend_language_scanner.l"
|
|
{
|
|
yyless(yyleng - 3);
|
|
yy_push_state(ST_LOOKING_FOR_PROPERTY);
|
|
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
|
|
return T_VARIABLE;
|
|
}
|
|
#line 1473 "Zend/zend_language_scanner.c"
|
|
}
|
|
/* *********************************** */
|
|
yyc_ST_DOUBLE_QUOTES:
|
|
{
|
|
static const unsigned char yybm[] = {
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 0, 0, 0, 0, 0, 0,
|
|
0, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 0, 0, 0, 0, 128,
|
|
0, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 0, 0, 0, 0, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
};
|
|
YYDEBUG(38, *YYCURSOR);
|
|
YYFILL(2);
|
|
yych = *YYCURSOR;
|
|
if (yych <= '#') {
|
|
if (yych == '"') goto yy43;
|
|
goto yy45;
|
|
} else {
|
|
if (yych <= '$') goto yy40;
|
|
if (yych == '{') goto yy42;
|
|
goto yy45;
|
|
}
|
|
yy40:
|
|
YYDEBUG(40, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) <= '_') {
|
|
if (yych <= '@') goto yy41;
|
|
if (yych <= 'Z') goto yy48;
|
|
if (yych >= '_') goto yy48;
|
|
} else {
|
|
if (yych <= 'z') {
|
|
if (yych >= 'a') goto yy48;
|
|
} else {
|
|
if (yych <= '{') goto yy51;
|
|
if (yych >= 0x7F) goto yy48;
|
|
}
|
|
}
|
|
yy41:
|
|
YYDEBUG(41, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2073 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (GET_DOUBLE_QUOTES_SCANNED_LENGTH()) {
|
|
YYCURSOR += GET_DOUBLE_QUOTES_SCANNED_LENGTH() - 1;
|
|
SET_DOUBLE_QUOTES_SCANNED_LENGTH(0);
|
|
|
|
goto double_quotes_scan_done;
|
|
}
|
|
|
|
if (YYCURSOR > YYLIMIT) {
|
|
return 0;
|
|
}
|
|
if (yytext[0] == '\\' && YYCURSOR < YYLIMIT) {
|
|
YYCURSOR++;
|
|
}
|
|
|
|
while (YYCURSOR < YYLIMIT) {
|
|
switch (*YYCURSOR++) {
|
|
case '"':
|
|
break;
|
|
case '$':
|
|
if (IS_LABEL_START(*YYCURSOR) || *YYCURSOR == '{') {
|
|
break;
|
|
}
|
|
continue;
|
|
case '{':
|
|
if (*YYCURSOR == '$') {
|
|
break;
|
|
}
|
|
continue;
|
|
case '\\':
|
|
if (YYCURSOR < YYLIMIT) {
|
|
YYCURSOR++;
|
|
}
|
|
/* fall through */
|
|
default:
|
|
continue;
|
|
}
|
|
|
|
YYCURSOR--;
|
|
break;
|
|
}
|
|
|
|
double_quotes_scan_done:
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
|
|
zend_scan_escape_string(zendlval, yytext, yyleng, '"');
|
|
return T_ENCAPSED_AND_WHITESPACE;
|
|
}
|
|
#line 1590 "Zend/zend_language_scanner.c"
|
|
yy42:
|
|
YYDEBUG(42, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '$') goto yy46;
|
|
goto yy41;
|
|
yy43:
|
|
YYDEBUG(43, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(44, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2062 "Zend/zend_language_scanner.l"
|
|
{
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
return '"';
|
|
}
|
|
#line 1606 "Zend/zend_language_scanner.c"
|
|
yy45:
|
|
YYDEBUG(45, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy41;
|
|
yy46:
|
|
YYDEBUG(46, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(47, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2054 "Zend/zend_language_scanner.l"
|
|
{
|
|
Z_LVAL_P(zendlval) = (zend_long) '{';
|
|
yy_push_state(ST_IN_SCRIPTING);
|
|
yyless(1);
|
|
return T_CURLY_OPEN;
|
|
}
|
|
#line 1623 "Zend/zend_language_scanner.c"
|
|
yy48:
|
|
YYDEBUG(48, *YYCURSOR);
|
|
yyaccept = 0;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(3);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(49, *YYCURSOR);
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy48;
|
|
}
|
|
if (yych == '-') goto yy53;
|
|
if (yych == '[') goto yy55;
|
|
yy50:
|
|
YYDEBUG(50, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1777 "Zend/zend_language_scanner.l"
|
|
{
|
|
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
|
|
return T_VARIABLE;
|
|
}
|
|
#line 1644 "Zend/zend_language_scanner.c"
|
|
yy51:
|
|
YYDEBUG(51, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(52, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1543 "Zend/zend_language_scanner.l"
|
|
{
|
|
yy_push_state(ST_LOOKING_FOR_VARNAME);
|
|
return T_DOLLAR_OPEN_CURLY_BRACES;
|
|
}
|
|
#line 1655 "Zend/zend_language_scanner.c"
|
|
yy53:
|
|
YYDEBUG(53, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '>') goto yy57;
|
|
yy54:
|
|
YYDEBUG(54, *YYCURSOR);
|
|
YYCURSOR = YYMARKER;
|
|
goto yy50;
|
|
yy55:
|
|
YYDEBUG(55, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(56, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1770 "Zend/zend_language_scanner.l"
|
|
{
|
|
yyless(yyleng - 1);
|
|
yy_push_state(ST_VAR_OFFSET);
|
|
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
|
|
return T_VARIABLE;
|
|
}
|
|
#line 1676 "Zend/zend_language_scanner.c"
|
|
yy57:
|
|
YYDEBUG(57, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= '_') {
|
|
if (yych <= '@') goto yy54;
|
|
if (yych <= 'Z') goto yy58;
|
|
if (yych <= '^') goto yy54;
|
|
} else {
|
|
if (yych <= '`') goto yy54;
|
|
if (yych <= 'z') goto yy58;
|
|
if (yych <= '~') goto yy54;
|
|
}
|
|
yy58:
|
|
YYDEBUG(58, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(59, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1761 "Zend/zend_language_scanner.l"
|
|
{
|
|
yyless(yyleng - 3);
|
|
yy_push_state(ST_LOOKING_FOR_PROPERTY);
|
|
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
|
|
return T_VARIABLE;
|
|
}
|
|
#line 1701 "Zend/zend_language_scanner.c"
|
|
}
|
|
/* *********************************** */
|
|
yyc_ST_END_HEREDOC:
|
|
YYDEBUG(60, *YYCURSOR);
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(62, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(63, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2040 "Zend/zend_language_scanner.l"
|
|
{
|
|
zend_heredoc_label *heredoc_label = zend_ptr_stack_pop(&SCNG(heredoc_label_stack));
|
|
|
|
YYCURSOR += heredoc_label->length - 1;
|
|
yyleng = heredoc_label->length;
|
|
|
|
heredoc_label_dtor(heredoc_label);
|
|
efree(heredoc_label);
|
|
|
|
BEGIN(ST_IN_SCRIPTING);
|
|
return T_END_HEREDOC;
|
|
}
|
|
#line 1725 "Zend/zend_language_scanner.c"
|
|
/* *********************************** */
|
|
yyc_ST_HEREDOC:
|
|
{
|
|
static const unsigned char yybm[] = {
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 0, 0, 0, 0, 0, 0,
|
|
0, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 0, 0, 0, 0, 128,
|
|
0, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 0, 0, 0, 0, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
};
|
|
YYDEBUG(64, *YYCURSOR);
|
|
YYFILL(2);
|
|
yych = *YYCURSOR;
|
|
if (yych == '$') goto yy66;
|
|
if (yych == '{') goto yy68;
|
|
goto yy69;
|
|
yy66:
|
|
YYDEBUG(66, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) <= '_') {
|
|
if (yych <= '@') goto yy67;
|
|
if (yych <= 'Z') goto yy72;
|
|
if (yych >= '_') goto yy72;
|
|
} else {
|
|
if (yych <= 'z') {
|
|
if (yych >= 'a') goto yy72;
|
|
} else {
|
|
if (yych <= '{') goto yy75;
|
|
if (yych >= 0x7F) goto yy72;
|
|
}
|
|
}
|
|
yy67:
|
|
YYDEBUG(67, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2165 "Zend/zend_language_scanner.l"
|
|
{
|
|
int newline = 0;
|
|
|
|
zend_heredoc_label *heredoc_label = zend_ptr_stack_top(&SCNG(heredoc_label_stack));
|
|
|
|
if (YYCURSOR > YYLIMIT) {
|
|
return 0;
|
|
}
|
|
|
|
YYCURSOR--;
|
|
|
|
while (YYCURSOR < YYLIMIT) {
|
|
switch (*YYCURSOR++) {
|
|
case '\r':
|
|
if (*YYCURSOR == '\n') {
|
|
YYCURSOR++;
|
|
}
|
|
/* fall through */
|
|
case '\n':
|
|
/* Check for ending label on the next line */
|
|
if (IS_LABEL_START(*YYCURSOR) && heredoc_label->length < YYLIMIT - YYCURSOR && !memcmp(YYCURSOR, heredoc_label->label, heredoc_label->length)) {
|
|
YYCTYPE *end = YYCURSOR + heredoc_label->length;
|
|
|
|
if (*end == ';') {
|
|
end++;
|
|
}
|
|
|
|
if (*end == '\n' || *end == '\r') {
|
|
/* newline before label will be subtracted from returned text, but
|
|
* yyleng/yytext will include it, for zend_highlight/strip, tokenizer, etc. */
|
|
if (YYCURSOR[-2] == '\r' && YYCURSOR[-1] == '\n') {
|
|
newline = 2; /* Windows newline */
|
|
} else {
|
|
newline = 1;
|
|
}
|
|
|
|
CG(increment_lineno) = 1; /* For newline before label */
|
|
BEGIN(ST_END_HEREDOC);
|
|
|
|
goto heredoc_scan_done;
|
|
}
|
|
}
|
|
continue;
|
|
case '$':
|
|
if (IS_LABEL_START(*YYCURSOR) || *YYCURSOR == '{') {
|
|
break;
|
|
}
|
|
continue;
|
|
case '{':
|
|
if (*YYCURSOR == '$') {
|
|
break;
|
|
}
|
|
continue;
|
|
case '\\':
|
|
if (YYCURSOR < YYLIMIT && *YYCURSOR != '\n' && *YYCURSOR != '\r') {
|
|
YYCURSOR++;
|
|
}
|
|
/* fall through */
|
|
default:
|
|
continue;
|
|
}
|
|
|
|
YYCURSOR--;
|
|
break;
|
|
}
|
|
|
|
heredoc_scan_done:
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
|
|
zend_scan_escape_string(zendlval, yytext, yyleng - newline, 0);
|
|
return T_ENCAPSED_AND_WHITESPACE;
|
|
}
|
|
#line 1860 "Zend/zend_language_scanner.c"
|
|
yy68:
|
|
YYDEBUG(68, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '$') goto yy70;
|
|
goto yy67;
|
|
yy69:
|
|
YYDEBUG(69, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy67;
|
|
yy70:
|
|
YYDEBUG(70, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(71, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2054 "Zend/zend_language_scanner.l"
|
|
{
|
|
Z_LVAL_P(zendlval) = (zend_long) '{';
|
|
yy_push_state(ST_IN_SCRIPTING);
|
|
yyless(1);
|
|
return T_CURLY_OPEN;
|
|
}
|
|
#line 1882 "Zend/zend_language_scanner.c"
|
|
yy72:
|
|
YYDEBUG(72, *YYCURSOR);
|
|
yyaccept = 0;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(3);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(73, *YYCURSOR);
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy72;
|
|
}
|
|
if (yych == '-') goto yy77;
|
|
if (yych == '[') goto yy79;
|
|
yy74:
|
|
YYDEBUG(74, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1777 "Zend/zend_language_scanner.l"
|
|
{
|
|
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
|
|
return T_VARIABLE;
|
|
}
|
|
#line 1903 "Zend/zend_language_scanner.c"
|
|
yy75:
|
|
YYDEBUG(75, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(76, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1543 "Zend/zend_language_scanner.l"
|
|
{
|
|
yy_push_state(ST_LOOKING_FOR_VARNAME);
|
|
return T_DOLLAR_OPEN_CURLY_BRACES;
|
|
}
|
|
#line 1914 "Zend/zend_language_scanner.c"
|
|
yy77:
|
|
YYDEBUG(77, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '>') goto yy81;
|
|
yy78:
|
|
YYDEBUG(78, *YYCURSOR);
|
|
YYCURSOR = YYMARKER;
|
|
goto yy74;
|
|
yy79:
|
|
YYDEBUG(79, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(80, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1770 "Zend/zend_language_scanner.l"
|
|
{
|
|
yyless(yyleng - 1);
|
|
yy_push_state(ST_VAR_OFFSET);
|
|
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
|
|
return T_VARIABLE;
|
|
}
|
|
#line 1935 "Zend/zend_language_scanner.c"
|
|
yy81:
|
|
YYDEBUG(81, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= '_') {
|
|
if (yych <= '@') goto yy78;
|
|
if (yych <= 'Z') goto yy82;
|
|
if (yych <= '^') goto yy78;
|
|
} else {
|
|
if (yych <= '`') goto yy78;
|
|
if (yych <= 'z') goto yy82;
|
|
if (yych <= '~') goto yy78;
|
|
}
|
|
yy82:
|
|
YYDEBUG(82, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(83, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1761 "Zend/zend_language_scanner.l"
|
|
{
|
|
yyless(yyleng - 3);
|
|
yy_push_state(ST_LOOKING_FOR_PROPERTY);
|
|
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
|
|
return T_VARIABLE;
|
|
}
|
|
#line 1960 "Zend/zend_language_scanner.c"
|
|
}
|
|
/* *********************************** */
|
|
yyc_ST_IN_SCRIPTING:
|
|
{
|
|
static const unsigned char yybm[] = {
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 192, 64, 0, 0, 64, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
192, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
60, 60, 44, 44, 44, 44, 44, 44,
|
|
44, 44, 0, 0, 0, 0, 0, 0,
|
|
0, 36, 36, 36, 36, 36, 36, 4,
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
4, 4, 4, 0, 0, 0, 0, 4,
|
|
0, 36, 36, 36, 36, 36, 36, 4,
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
4, 4, 4, 0, 0, 0, 0, 4,
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
4, 4, 4, 4, 4, 4, 4, 4,
|
|
};
|
|
YYDEBUG(84, *YYCURSOR);
|
|
YYFILL(16);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(-1, yych);
|
|
switch (yych) {
|
|
case 0x00:
|
|
case 0x01:
|
|
case 0x02:
|
|
case 0x03:
|
|
case 0x04:
|
|
case 0x05:
|
|
case 0x06:
|
|
case 0x07:
|
|
case 0x08:
|
|
case '\v':
|
|
case '\f':
|
|
case 0x0E:
|
|
case 0x0F:
|
|
case 0x10:
|
|
case 0x11:
|
|
case 0x12:
|
|
case 0x13:
|
|
case 0x14:
|
|
case 0x15:
|
|
case 0x16:
|
|
case 0x17:
|
|
case 0x18:
|
|
case 0x19:
|
|
case 0x1A:
|
|
case 0x1B:
|
|
case 0x1C:
|
|
case 0x1D:
|
|
case 0x1E:
|
|
case 0x1F: goto yy147;
|
|
case '\t':
|
|
case '\n':
|
|
case '\r':
|
|
case ' ': goto yy103;
|
|
case '!': goto yy118;
|
|
case '"': goto yy143;
|
|
case '#': goto yy139;
|
|
case '$': goto yy129;
|
|
case '%': goto yy123;
|
|
case '&': goto yy124;
|
|
case '\'': goto yy141;
|
|
case '(': goto yy112;
|
|
case ')':
|
|
case ',':
|
|
case ';':
|
|
case '@':
|
|
case '[':
|
|
case ']':
|
|
case '~': goto yy130;
|
|
case '*': goto yy121;
|
|
case '+': goto yy117;
|
|
case '-': goto yy101;
|
|
case '.': goto yy108;
|
|
case '/': goto yy122;
|
|
case '0': goto yy135;
|
|
case '1':
|
|
case '2':
|
|
case '3':
|
|
case '4':
|
|
case '5':
|
|
case '6':
|
|
case '7':
|
|
case '8':
|
|
case '9': goto yy137;
|
|
case ':': goto yy105;
|
|
case '<': goto yy119;
|
|
case '=': goto yy115;
|
|
case '>': goto yy120;
|
|
case '?': goto yy109;
|
|
case 'A':
|
|
case 'a': goto yy96;
|
|
case 'B':
|
|
case 'b': goto yy98;
|
|
case 'C':
|
|
case 'c': goto yy90;
|
|
case 'D':
|
|
case 'd': goto yy88;
|
|
case 'E':
|
|
case 'e': goto yy86;
|
|
case 'F':
|
|
case 'f': goto yy89;
|
|
case 'G':
|
|
case 'g': goto yy99;
|
|
case 'I':
|
|
case 'i': goto yy94;
|
|
case 'L':
|
|
case 'l': goto yy116;
|
|
case 'N':
|
|
case 'n': goto yy110;
|
|
case 'O':
|
|
case 'o': goto yy127;
|
|
case 'P':
|
|
case 'p': goto yy100;
|
|
case 'R':
|
|
case 'r': goto yy91;
|
|
case 'S':
|
|
case 's': goto yy97;
|
|
case 'T':
|
|
case 't': goto yy93;
|
|
case 'U':
|
|
case 'u': goto yy113;
|
|
case 'V':
|
|
case 'v': goto yy111;
|
|
case 'W':
|
|
case 'w': goto yy95;
|
|
case 'X':
|
|
case 'x': goto yy128;
|
|
case 'Y':
|
|
case 'y': goto yy92;
|
|
case '\\': goto yy106;
|
|
case '^': goto yy126;
|
|
case '_': goto yy114;
|
|
case '`': goto yy145;
|
|
case '{': goto yy131;
|
|
case '|': goto yy125;
|
|
case '}': goto yy133;
|
|
default: goto yy138;
|
|
}
|
|
yy86:
|
|
YYDEBUG(86, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(-1, yych);
|
|
switch ((yych = *YYCURSOR)) {
|
|
case 'C':
|
|
case 'c': goto yy695;
|
|
case 'L':
|
|
case 'l': goto yy696;
|
|
case 'M':
|
|
case 'm': goto yy697;
|
|
case 'N':
|
|
case 'n': goto yy698;
|
|
case 'V':
|
|
case 'v': goto yy699;
|
|
case 'X':
|
|
case 'x': goto yy700;
|
|
default: goto yy150;
|
|
}
|
|
yy87:
|
|
YYDEBUG(87, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1800 "Zend/zend_language_scanner.l"
|
|
{
|
|
zend_copy_value(zendlval, yytext, yyleng);
|
|
return T_STRING;
|
|
}
|
|
#line 2148 "Zend/zend_language_scanner.c"
|
|
yy88:
|
|
YYDEBUG(88, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'O') {
|
|
if (yych <= 'H') {
|
|
if (yych == 'E') goto yy677;
|
|
goto yy150;
|
|
} else {
|
|
if (yych <= 'I') goto yy678;
|
|
if (yych <= 'N') goto yy150;
|
|
goto yy679;
|
|
}
|
|
} else {
|
|
if (yych <= 'h') {
|
|
if (yych == 'e') goto yy677;
|
|
goto yy150;
|
|
} else {
|
|
if (yych <= 'i') goto yy678;
|
|
if (yych == 'o') goto yy679;
|
|
goto yy150;
|
|
}
|
|
}
|
|
yy89:
|
|
YYDEBUG(89, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'U') {
|
|
if (yych <= 'N') {
|
|
if (yych == 'I') goto yy653;
|
|
goto yy150;
|
|
} else {
|
|
if (yych <= 'O') goto yy654;
|
|
if (yych <= 'T') goto yy150;
|
|
goto yy655;
|
|
}
|
|
} else {
|
|
if (yych <= 'n') {
|
|
if (yych == 'i') goto yy653;
|
|
goto yy150;
|
|
} else {
|
|
if (yych <= 'o') goto yy654;
|
|
if (yych == 'u') goto yy655;
|
|
goto yy150;
|
|
}
|
|
}
|
|
yy90:
|
|
YYDEBUG(90, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'O') {
|
|
if (yych <= 'K') {
|
|
if (yych == 'A') goto yy618;
|
|
goto yy150;
|
|
} else {
|
|
if (yych <= 'L') goto yy619;
|
|
if (yych <= 'N') goto yy150;
|
|
goto yy620;
|
|
}
|
|
} else {
|
|
if (yych <= 'k') {
|
|
if (yych == 'a') goto yy618;
|
|
goto yy150;
|
|
} else {
|
|
if (yych <= 'l') goto yy619;
|
|
if (yych == 'o') goto yy620;
|
|
goto yy150;
|
|
}
|
|
}
|
|
yy91:
|
|
YYDEBUG(91, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy600;
|
|
if (yych == 'e') goto yy600;
|
|
goto yy150;
|
|
yy92:
|
|
YYDEBUG(92, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy595;
|
|
if (yych == 'i') goto yy595;
|
|
goto yy150;
|
|
yy93:
|
|
YYDEBUG(93, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'R') {
|
|
if (yych == 'H') goto yy583;
|
|
if (yych <= 'Q') goto yy150;
|
|
goto yy584;
|
|
} else {
|
|
if (yych <= 'h') {
|
|
if (yych <= 'g') goto yy150;
|
|
goto yy583;
|
|
} else {
|
|
if (yych == 'r') goto yy584;
|
|
goto yy150;
|
|
}
|
|
}
|
|
yy94:
|
|
YYDEBUG(94, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'S') {
|
|
if (yych <= 'L') {
|
|
if (yych == 'F') goto yy530;
|
|
goto yy150;
|
|
} else {
|
|
if (yych <= 'M') goto yy532;
|
|
if (yych <= 'N') goto yy533;
|
|
if (yych <= 'R') goto yy150;
|
|
goto yy534;
|
|
}
|
|
} else {
|
|
if (yych <= 'm') {
|
|
if (yych == 'f') goto yy530;
|
|
if (yych <= 'l') goto yy150;
|
|
goto yy532;
|
|
} else {
|
|
if (yych <= 'n') goto yy533;
|
|
if (yych == 's') goto yy534;
|
|
goto yy150;
|
|
}
|
|
}
|
|
yy95:
|
|
YYDEBUG(95, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'H') goto yy525;
|
|
if (yych == 'h') goto yy525;
|
|
goto yy150;
|
|
yy96:
|
|
YYDEBUG(96, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'S') {
|
|
if (yych <= 'M') {
|
|
if (yych == 'B') goto yy507;
|
|
goto yy150;
|
|
} else {
|
|
if (yych <= 'N') goto yy508;
|
|
if (yych <= 'Q') goto yy150;
|
|
if (yych <= 'R') goto yy509;
|
|
goto yy510;
|
|
}
|
|
} else {
|
|
if (yych <= 'n') {
|
|
if (yych == 'b') goto yy507;
|
|
if (yych <= 'm') goto yy150;
|
|
goto yy508;
|
|
} else {
|
|
if (yych <= 'q') goto yy150;
|
|
if (yych <= 'r') goto yy509;
|
|
if (yych <= 's') goto yy510;
|
|
goto yy150;
|
|
}
|
|
}
|
|
yy97:
|
|
YYDEBUG(97, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'W') {
|
|
if (yych == 'T') goto yy495;
|
|
if (yych <= 'V') goto yy150;
|
|
goto yy496;
|
|
} else {
|
|
if (yych <= 't') {
|
|
if (yych <= 's') goto yy150;
|
|
goto yy495;
|
|
} else {
|
|
if (yych == 'w') goto yy496;
|
|
goto yy150;
|
|
}
|
|
}
|
|
yy98:
|
|
YYDEBUG(98, *YYCURSOR);
|
|
yyaccept = 0;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yych <= ';') {
|
|
if (yych <= '"') {
|
|
if (yych <= '!') goto yy150;
|
|
goto yy487;
|
|
} else {
|
|
if (yych == '\'') goto yy488;
|
|
goto yy150;
|
|
}
|
|
} else {
|
|
if (yych <= 'R') {
|
|
if (yych <= '<') goto yy486;
|
|
if (yych <= 'Q') goto yy150;
|
|
goto yy489;
|
|
} else {
|
|
if (yych == 'r') goto yy489;
|
|
goto yy150;
|
|
}
|
|
}
|
|
yy99:
|
|
YYDEBUG(99, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'O') {
|
|
if (yych == 'L') goto yy476;
|
|
if (yych <= 'N') goto yy150;
|
|
goto yy477;
|
|
} else {
|
|
if (yych <= 'l') {
|
|
if (yych <= 'k') goto yy150;
|
|
goto yy476;
|
|
} else {
|
|
if (yych == 'o') goto yy477;
|
|
goto yy150;
|
|
}
|
|
}
|
|
yy100:
|
|
YYDEBUG(100, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'U') {
|
|
if (yych == 'R') goto yy452;
|
|
if (yych <= 'T') goto yy150;
|
|
goto yy453;
|
|
} else {
|
|
if (yych <= 'r') {
|
|
if (yych <= 'q') goto yy150;
|
|
goto yy452;
|
|
} else {
|
|
if (yych == 'u') goto yy453;
|
|
goto yy150;
|
|
}
|
|
}
|
|
yy101:
|
|
YYDEBUG(101, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) <= '<') {
|
|
if (yych == '-') goto yy448;
|
|
} else {
|
|
if (yych <= '=') goto yy446;
|
|
if (yych <= '>') goto yy450;
|
|
}
|
|
yy102:
|
|
YYDEBUG(102, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1532 "Zend/zend_language_scanner.l"
|
|
{
|
|
return yytext[0];
|
|
}
|
|
#line 2384 "Zend/zend_language_scanner.c"
|
|
yy103:
|
|
YYDEBUG(103, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yych = *YYCURSOR;
|
|
goto yy445;
|
|
yy104:
|
|
YYDEBUG(104, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1251 "Zend/zend_language_scanner.l"
|
|
{
|
|
HANDLE_NEWLINES(yytext, yyleng);
|
|
return T_WHITESPACE;
|
|
}
|
|
#line 2398 "Zend/zend_language_scanner.c"
|
|
yy105:
|
|
YYDEBUG(105, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == ':') goto yy442;
|
|
goto yy102;
|
|
yy106:
|
|
YYDEBUG(106, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(107, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1276 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_NS_SEPARATOR;
|
|
}
|
|
#line 2413 "Zend/zend_language_scanner.c"
|
|
yy108:
|
|
YYDEBUG(108, *YYCURSOR);
|
|
yyaccept = 1;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yych <= '/') {
|
|
if (yych == '.') goto yy439;
|
|
goto yy102;
|
|
} else {
|
|
if (yych <= '9') goto yy435;
|
|
if (yych == '=') goto yy437;
|
|
goto yy102;
|
|
}
|
|
yy109:
|
|
YYDEBUG(109, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= '=') goto yy102;
|
|
if (yych <= '>') goto yy429;
|
|
if (yych <= '?') goto yy431;
|
|
goto yy102;
|
|
yy110:
|
|
YYDEBUG(110, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'E') {
|
|
if (yych == 'A') goto yy417;
|
|
if (yych <= 'D') goto yy150;
|
|
goto yy418;
|
|
} else {
|
|
if (yych <= 'a') {
|
|
if (yych <= '`') goto yy150;
|
|
goto yy417;
|
|
} else {
|
|
if (yych == 'e') goto yy418;
|
|
goto yy150;
|
|
}
|
|
}
|
|
yy111:
|
|
YYDEBUG(111, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy414;
|
|
if (yych == 'a') goto yy414;
|
|
goto yy150;
|
|
yy112:
|
|
YYDEBUG(112, *YYCURSOR);
|
|
yyaccept = 1;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yych <= 'S') {
|
|
if (yych <= 'D') {
|
|
if (yych <= ' ') {
|
|
if (yych == '\t') goto yy339;
|
|
if (yych <= 0x1F) goto yy102;
|
|
goto yy339;
|
|
} else {
|
|
if (yych <= '@') goto yy102;
|
|
if (yych == 'C') goto yy102;
|
|
goto yy339;
|
|
}
|
|
} else {
|
|
if (yych <= 'I') {
|
|
if (yych == 'F') goto yy339;
|
|
if (yych <= 'H') goto yy102;
|
|
goto yy339;
|
|
} else {
|
|
if (yych == 'O') goto yy339;
|
|
if (yych <= 'Q') goto yy102;
|
|
goto yy339;
|
|
}
|
|
}
|
|
} else {
|
|
if (yych <= 'f') {
|
|
if (yych <= 'b') {
|
|
if (yych == 'U') goto yy339;
|
|
if (yych <= '`') goto yy102;
|
|
goto yy339;
|
|
} else {
|
|
if (yych == 'd') goto yy339;
|
|
if (yych <= 'e') goto yy102;
|
|
goto yy339;
|
|
}
|
|
} else {
|
|
if (yych <= 'o') {
|
|
if (yych == 'i') goto yy339;
|
|
if (yych <= 'n') goto yy102;
|
|
goto yy339;
|
|
} else {
|
|
if (yych <= 's') {
|
|
if (yych <= 'q') goto yy102;
|
|
goto yy339;
|
|
} else {
|
|
if (yych == 'u') goto yy339;
|
|
goto yy102;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
yy113:
|
|
YYDEBUG(113, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'S') {
|
|
if (yych == 'N') goto yy330;
|
|
if (yych <= 'R') goto yy150;
|
|
goto yy331;
|
|
} else {
|
|
if (yych <= 'n') {
|
|
if (yych <= 'm') goto yy150;
|
|
goto yy330;
|
|
} else {
|
|
if (yych == 's') goto yy331;
|
|
goto yy150;
|
|
}
|
|
}
|
|
yy114:
|
|
YYDEBUG(114, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '_') goto yy248;
|
|
goto yy150;
|
|
yy115:
|
|
YYDEBUG(115, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= '<') goto yy102;
|
|
if (yych <= '=') goto yy242;
|
|
if (yych <= '>') goto yy244;
|
|
goto yy102;
|
|
yy116:
|
|
YYDEBUG(116, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy238;
|
|
if (yych == 'i') goto yy238;
|
|
goto yy150;
|
|
yy117:
|
|
YYDEBUG(117, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '+') goto yy236;
|
|
if (yych == '=') goto yy234;
|
|
goto yy102;
|
|
yy118:
|
|
YYDEBUG(118, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '=') goto yy231;
|
|
goto yy102;
|
|
yy119:
|
|
YYDEBUG(119, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= ';') goto yy102;
|
|
if (yych <= '<') goto yy209;
|
|
if (yych <= '=') goto yy211;
|
|
if (yych <= '>') goto yy213;
|
|
goto yy102;
|
|
yy120:
|
|
YYDEBUG(120, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= '<') goto yy102;
|
|
if (yych <= '=') goto yy205;
|
|
if (yych <= '>') goto yy203;
|
|
goto yy102;
|
|
yy121:
|
|
YYDEBUG(121, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '*') goto yy197;
|
|
if (yych == '=') goto yy199;
|
|
goto yy102;
|
|
yy122:
|
|
YYDEBUG(122, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= '.') {
|
|
if (yych == '*') goto yy189;
|
|
goto yy102;
|
|
} else {
|
|
if (yych <= '/') goto yy191;
|
|
if (yych == '=') goto yy192;
|
|
goto yy102;
|
|
}
|
|
yy123:
|
|
YYDEBUG(123, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '=') goto yy187;
|
|
goto yy102;
|
|
yy124:
|
|
YYDEBUG(124, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '&') goto yy183;
|
|
if (yych == '=') goto yy185;
|
|
goto yy102;
|
|
yy125:
|
|
YYDEBUG(125, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '=') goto yy181;
|
|
if (yych == '|') goto yy179;
|
|
goto yy102;
|
|
yy126:
|
|
YYDEBUG(126, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '=') goto yy177;
|
|
goto yy102;
|
|
yy127:
|
|
YYDEBUG(127, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy175;
|
|
if (yych == 'r') goto yy175;
|
|
goto yy150;
|
|
yy128:
|
|
YYDEBUG(128, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy172;
|
|
if (yych == 'o') goto yy172;
|
|
goto yy150;
|
|
yy129:
|
|
YYDEBUG(129, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= '_') {
|
|
if (yych <= '@') goto yy102;
|
|
if (yych <= 'Z') goto yy169;
|
|
if (yych <= '^') goto yy102;
|
|
goto yy169;
|
|
} else {
|
|
if (yych <= '`') goto yy102;
|
|
if (yych <= 'z') goto yy169;
|
|
if (yych <= '~') goto yy102;
|
|
goto yy169;
|
|
}
|
|
yy130:
|
|
YYDEBUG(130, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy102;
|
|
yy131:
|
|
YYDEBUG(131, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(132, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1537 "Zend/zend_language_scanner.l"
|
|
{
|
|
yy_push_state(ST_IN_SCRIPTING);
|
|
return '{';
|
|
}
|
|
#line 2647 "Zend/zend_language_scanner.c"
|
|
yy133:
|
|
YYDEBUG(133, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(134, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1549 "Zend/zend_language_scanner.l"
|
|
{
|
|
RESET_DOC_COMMENT();
|
|
if (!zend_stack_is_empty(&SCNG(state_stack))) {
|
|
yy_pop_state();
|
|
}
|
|
return '}';
|
|
}
|
|
#line 2661 "Zend/zend_language_scanner.c"
|
|
yy135:
|
|
YYDEBUG(135, *YYCURSOR);
|
|
yyaccept = 2;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yych <= 'E') {
|
|
if (yych <= '9') {
|
|
if (yych == '.') goto yy151;
|
|
if (yych >= '0') goto yy154;
|
|
} else {
|
|
if (yych == 'B') goto yy162;
|
|
if (yych >= 'E') goto yy156;
|
|
}
|
|
} else {
|
|
if (yych <= 'b') {
|
|
if (yych == 'X') goto yy161;
|
|
if (yych >= 'b') goto yy162;
|
|
} else {
|
|
if (yych <= 'e') {
|
|
if (yych >= 'e') goto yy156;
|
|
} else {
|
|
if (yych == 'x') goto yy161;
|
|
}
|
|
}
|
|
}
|
|
yy136:
|
|
YYDEBUG(136, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1597 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (yyleng < MAX_LENGTH_OF_LONG - 1) { /* Won't overflow */
|
|
ZVAL_LONG(zendlval, ZEND_STRTOL(yytext, NULL, 0));
|
|
} else {
|
|
errno = 0;
|
|
ZVAL_LONG(zendlval, ZEND_STRTOL(yytext, NULL, 0));
|
|
if (errno == ERANGE) { /* Overflow */
|
|
if (yytext[0] == '0') { /* octal overflow */
|
|
ZVAL_DOUBLE(zendlval, zend_oct_strtod(yytext, NULL));
|
|
} else {
|
|
ZVAL_DOUBLE(zendlval, zend_strtod(yytext, NULL));
|
|
}
|
|
return T_DNUMBER;
|
|
}
|
|
}
|
|
return T_LNUMBER;
|
|
}
|
|
#line 2707 "Zend/zend_language_scanner.c"
|
|
yy137:
|
|
YYDEBUG(137, *YYCURSOR);
|
|
yyaccept = 2;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yych <= '9') {
|
|
if (yych == '.') goto yy151;
|
|
if (yych <= '/') goto yy136;
|
|
goto yy154;
|
|
} else {
|
|
if (yych <= 'E') {
|
|
if (yych <= 'D') goto yy136;
|
|
goto yy156;
|
|
} else {
|
|
if (yych == 'e') goto yy156;
|
|
goto yy136;
|
|
}
|
|
}
|
|
yy138:
|
|
YYDEBUG(138, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy150;
|
|
yy139:
|
|
YYDEBUG(139, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yy140:
|
|
YYDEBUG(140, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1806 "Zend/zend_language_scanner.l"
|
|
{
|
|
while (YYCURSOR < YYLIMIT) {
|
|
switch (*YYCURSOR++) {
|
|
case '\r':
|
|
if (*YYCURSOR == '\n') {
|
|
YYCURSOR++;
|
|
}
|
|
/* fall through */
|
|
case '\n':
|
|
CG(zend_lineno)++;
|
|
break;
|
|
case '?':
|
|
if (*YYCURSOR == '>') {
|
|
YYCURSOR--;
|
|
break;
|
|
}
|
|
/* fall through */
|
|
default:
|
|
continue;
|
|
}
|
|
|
|
break;
|
|
}
|
|
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
|
|
return T_COMMENT;
|
|
}
|
|
#line 2764 "Zend/zend_language_scanner.c"
|
|
yy141:
|
|
YYDEBUG(141, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yy142:
|
|
YYDEBUG(142, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1874 "Zend/zend_language_scanner.l"
|
|
{
|
|
register char *s, *t;
|
|
char *end;
|
|
int bprefix = (yytext[0] != '\'') ? 1 : 0;
|
|
|
|
while (1) {
|
|
if (YYCURSOR < YYLIMIT) {
|
|
if (*YYCURSOR == '\'') {
|
|
YYCURSOR++;
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
|
|
break;
|
|
} else if (*YYCURSOR++ == '\\' && YYCURSOR < YYLIMIT) {
|
|
YYCURSOR++;
|
|
}
|
|
} else {
|
|
yyleng = YYLIMIT - SCNG(yy_text);
|
|
|
|
/* Unclosed single quotes; treat similar to double quotes, but without a separate token
|
|
* for ' (unrecognized by parser), instead of old flex fallback to "Unexpected character..."
|
|
* rule, which continued in ST_IN_SCRIPTING state after the quote */
|
|
ZVAL_NULL(zendlval);
|
|
return T_ENCAPSED_AND_WHITESPACE;
|
|
}
|
|
}
|
|
|
|
ZVAL_STRINGL(zendlval, yytext+bprefix+1, yyleng-bprefix-2);
|
|
|
|
/* convert escape sequences */
|
|
s = t = Z_STRVAL_P(zendlval);
|
|
end = s+Z_STRLEN_P(zendlval);
|
|
while (s<end) {
|
|
if (*s=='\\') {
|
|
s++;
|
|
|
|
switch(*s) {
|
|
case '\\':
|
|
case '\'':
|
|
*t++ = *s;
|
|
Z_STRLEN_P(zendlval)--;
|
|
break;
|
|
default:
|
|
*t++ = '\\';
|
|
*t++ = *s;
|
|
break;
|
|
}
|
|
} else {
|
|
*t++ = *s;
|
|
}
|
|
|
|
if (*s == '\n' || (*s == '\r' && (*(s+1) != '\n'))) {
|
|
CG(zend_lineno)++;
|
|
}
|
|
s++;
|
|
}
|
|
*t = 0;
|
|
|
|
if (SCNG(output_filter)) {
|
|
size_t sz = 0;
|
|
char *str = NULL;
|
|
s = Z_STRVAL_P(zendlval);
|
|
// TODO: avoid reallocation ???
|
|
SCNG(output_filter)((unsigned char **)&str, &sz, (unsigned char *)s, (size_t)Z_STRLEN_P(zendlval));
|
|
ZVAL_STRINGL(zendlval, str, sz);
|
|
efree(s);
|
|
}
|
|
return T_CONSTANT_ENCAPSED_STRING;
|
|
}
|
|
#line 2840 "Zend/zend_language_scanner.c"
|
|
yy143:
|
|
YYDEBUG(143, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yy144:
|
|
YYDEBUG(144, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1944 "Zend/zend_language_scanner.l"
|
|
{
|
|
int bprefix = (yytext[0] != '"') ? 1 : 0;
|
|
|
|
while (YYCURSOR < YYLIMIT) {
|
|
switch (*YYCURSOR++) {
|
|
case '"':
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
zend_scan_escape_string(zendlval, yytext+bprefix+1, yyleng-bprefix-2, '"');
|
|
return T_CONSTANT_ENCAPSED_STRING;
|
|
case '$':
|
|
if (IS_LABEL_START(*YYCURSOR) || *YYCURSOR == '{') {
|
|
break;
|
|
}
|
|
continue;
|
|
case '{':
|
|
if (*YYCURSOR == '$') {
|
|
break;
|
|
}
|
|
continue;
|
|
case '\\':
|
|
if (YYCURSOR < YYLIMIT) {
|
|
YYCURSOR++;
|
|
}
|
|
/* fall through */
|
|
default:
|
|
continue;
|
|
}
|
|
|
|
YYCURSOR--;
|
|
break;
|
|
}
|
|
|
|
/* Remember how much was scanned to save rescanning */
|
|
SET_DOUBLE_QUOTES_SCANNED_LENGTH(YYCURSOR - SCNG(yy_text) - yyleng);
|
|
|
|
YYCURSOR = SCNG(yy_text) + yyleng;
|
|
|
|
BEGIN(ST_DOUBLE_QUOTES);
|
|
return '"';
|
|
}
|
|
#line 2888 "Zend/zend_language_scanner.c"
|
|
yy145:
|
|
YYDEBUG(145, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(146, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2034 "Zend/zend_language_scanner.l"
|
|
{
|
|
BEGIN(ST_BACKQUOTE);
|
|
return '`';
|
|
}
|
|
#line 2899 "Zend/zend_language_scanner.c"
|
|
yy147:
|
|
YYDEBUG(147, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(148, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2296 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (YYCURSOR > YYLIMIT) {
|
|
return 0;
|
|
}
|
|
|
|
zend_error(E_COMPILE_WARNING,"Unexpected character in input: '%c' (ASCII=%d) state=%d", yytext[0], yytext[0], YYSTATE);
|
|
goto restart;
|
|
}
|
|
#line 2914 "Zend/zend_language_scanner.c"
|
|
yy149:
|
|
YYDEBUG(149, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy150:
|
|
YYDEBUG(150, *YYCURSOR);
|
|
if (yybm[0+yych] & 4) {
|
|
goto yy149;
|
|
}
|
|
goto yy87;
|
|
yy151:
|
|
YYDEBUG(151, *YYCURSOR);
|
|
yyaccept = 3;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(3);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(152, *YYCURSOR);
|
|
if (yybm[0+yych] & 8) {
|
|
goto yy151;
|
|
}
|
|
if (yych == 'E') goto yy156;
|
|
if (yych == 'e') goto yy156;
|
|
yy153:
|
|
YYDEBUG(153, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1652 "Zend/zend_language_scanner.l"
|
|
{
|
|
ZVAL_DOUBLE(zendlval, zend_strtod(yytext, NULL));
|
|
return T_DNUMBER;
|
|
}
|
|
#line 2946 "Zend/zend_language_scanner.c"
|
|
yy154:
|
|
YYDEBUG(154, *YYCURSOR);
|
|
yyaccept = 2;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(3);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(155, *YYCURSOR);
|
|
if (yych <= '9') {
|
|
if (yych == '.') goto yy151;
|
|
if (yych <= '/') goto yy136;
|
|
goto yy154;
|
|
} else {
|
|
if (yych <= 'E') {
|
|
if (yych <= 'D') goto yy136;
|
|
} else {
|
|
if (yych != 'e') goto yy136;
|
|
}
|
|
}
|
|
yy156:
|
|
YYDEBUG(156, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= ',') {
|
|
if (yych == '+') goto yy158;
|
|
} else {
|
|
if (yych <= '-') goto yy158;
|
|
if (yych <= '/') goto yy157;
|
|
if (yych <= '9') goto yy159;
|
|
}
|
|
yy157:
|
|
YYDEBUG(157, *YYCURSOR);
|
|
YYCURSOR = YYMARKER;
|
|
if (yyaccept <= 2) {
|
|
if (yyaccept <= 1) {
|
|
if (yyaccept <= 0) {
|
|
goto yy87;
|
|
} else {
|
|
goto yy102;
|
|
}
|
|
} else {
|
|
goto yy136;
|
|
}
|
|
} else {
|
|
if (yyaccept <= 4) {
|
|
if (yyaccept <= 3) {
|
|
goto yy153;
|
|
} else {
|
|
goto yy190;
|
|
}
|
|
} else {
|
|
goto yy210;
|
|
}
|
|
}
|
|
yy158:
|
|
YYDEBUG(158, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= '/') goto yy157;
|
|
if (yych >= ':') goto yy157;
|
|
yy159:
|
|
YYDEBUG(159, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(160, *YYCURSOR);
|
|
if (yych <= '/') goto yy153;
|
|
if (yych <= '9') goto yy159;
|
|
goto yy153;
|
|
yy161:
|
|
YYDEBUG(161, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yybm[0+yych] & 32) {
|
|
goto yy166;
|
|
}
|
|
goto yy157;
|
|
yy162:
|
|
YYDEBUG(162, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy163;
|
|
}
|
|
goto yy157;
|
|
yy163:
|
|
YYDEBUG(163, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(164, *YYCURSOR);
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy163;
|
|
}
|
|
YYDEBUG(165, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1574 "Zend/zend_language_scanner.l"
|
|
{
|
|
char *bin = yytext + 2; /* Skip "0b" */
|
|
int len = yyleng - 2;
|
|
|
|
/* Skip any leading 0s */
|
|
while (*bin == '0') {
|
|
++bin;
|
|
--len;
|
|
}
|
|
|
|
if (len < SIZEOF_ZEND_LONG * 8) {
|
|
if (len == 0) {
|
|
ZVAL_LONG(zendlval, 0);
|
|
} else {
|
|
ZVAL_LONG(zendlval, ZEND_STRTOL(bin, NULL, 2));
|
|
}
|
|
return T_LNUMBER;
|
|
} else {
|
|
ZVAL_DOUBLE(zendlval, zend_bin_strtod(bin, NULL));
|
|
return T_DNUMBER;
|
|
}
|
|
}
|
|
#line 3061 "Zend/zend_language_scanner.c"
|
|
yy166:
|
|
YYDEBUG(166, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(167, *YYCURSOR);
|
|
if (yybm[0+yych] & 32) {
|
|
goto yy166;
|
|
}
|
|
YYDEBUG(168, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1615 "Zend/zend_language_scanner.l"
|
|
{
|
|
char *hex = yytext + 2; /* Skip "0x" */
|
|
int len = yyleng - 2;
|
|
|
|
/* Skip any leading 0s */
|
|
while (*hex == '0') {
|
|
hex++;
|
|
len--;
|
|
}
|
|
|
|
if (len < SIZEOF_ZEND_LONG * 2 || (len == SIZEOF_ZEND_LONG * 2 && *hex <= '7')) {
|
|
if (len == 0) {
|
|
ZVAL_LONG(zendlval, 0);
|
|
} else {
|
|
ZVAL_LONG(zendlval, ZEND_STRTOL(hex, NULL, 16));
|
|
}
|
|
return T_LNUMBER;
|
|
} else {
|
|
ZVAL_DOUBLE(zendlval, zend_hex_strtod(hex, NULL));
|
|
return T_DNUMBER;
|
|
}
|
|
}
|
|
#line 3096 "Zend/zend_language_scanner.c"
|
|
yy169:
|
|
YYDEBUG(169, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(170, *YYCURSOR);
|
|
if (yych <= '^') {
|
|
if (yych <= '9') {
|
|
if (yych >= '0') goto yy169;
|
|
} else {
|
|
if (yych <= '@') goto yy171;
|
|
if (yych <= 'Z') goto yy169;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych <= '_') goto yy169;
|
|
} else {
|
|
if (yych <= 'z') goto yy169;
|
|
if (yych >= 0x7F) goto yy169;
|
|
}
|
|
}
|
|
yy171:
|
|
YYDEBUG(171, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1777 "Zend/zend_language_scanner.l"
|
|
{
|
|
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
|
|
return T_VARIABLE;
|
|
}
|
|
#line 3126 "Zend/zend_language_scanner.c"
|
|
yy172:
|
|
YYDEBUG(172, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy173;
|
|
if (yych != 'r') goto yy150;
|
|
yy173:
|
|
YYDEBUG(173, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(174, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1520 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_LOGICAL_XOR;
|
|
}
|
|
#line 3144 "Zend/zend_language_scanner.c"
|
|
yy175:
|
|
YYDEBUG(175, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(176, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1512 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_LOGICAL_OR;
|
|
}
|
|
#line 3157 "Zend/zend_language_scanner.c"
|
|
yy177:
|
|
YYDEBUG(177, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(178, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1500 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_XOR_EQUAL;
|
|
}
|
|
#line 3167 "Zend/zend_language_scanner.c"
|
|
yy179:
|
|
YYDEBUG(179, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(180, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1504 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_BOOLEAN_OR;
|
|
}
|
|
#line 3177 "Zend/zend_language_scanner.c"
|
|
yy181:
|
|
YYDEBUG(181, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(182, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1496 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_OR_EQUAL;
|
|
}
|
|
#line 3187 "Zend/zend_language_scanner.c"
|
|
yy183:
|
|
YYDEBUG(183, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(184, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1508 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_BOOLEAN_AND;
|
|
}
|
|
#line 3197 "Zend/zend_language_scanner.c"
|
|
yy185:
|
|
YYDEBUG(185, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(186, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1492 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_AND_EQUAL;
|
|
}
|
|
#line 3207 "Zend/zend_language_scanner.c"
|
|
yy187:
|
|
YYDEBUG(187, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(188, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1480 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_MOD_EQUAL;
|
|
}
|
|
#line 3217 "Zend/zend_language_scanner.c"
|
|
yy189:
|
|
YYDEBUG(189, *YYCURSOR);
|
|
yyaccept = 4;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yych == '*') goto yy194;
|
|
yy190:
|
|
YYDEBUG(190, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1835 "Zend/zend_language_scanner.l"
|
|
{
|
|
int doc_com;
|
|
|
|
if (yyleng > 2) {
|
|
doc_com = 1;
|
|
RESET_DOC_COMMENT();
|
|
} else {
|
|
doc_com = 0;
|
|
}
|
|
|
|
while (YYCURSOR < YYLIMIT) {
|
|
if (*YYCURSOR++ == '*' && *YYCURSOR == '/') {
|
|
break;
|
|
}
|
|
}
|
|
|
|
if (YYCURSOR < YYLIMIT) {
|
|
YYCURSOR++;
|
|
} else {
|
|
zend_error(E_COMPILE_WARNING, "Unterminated comment starting line %d", CG(zend_lineno));
|
|
}
|
|
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
HANDLE_NEWLINES(yytext, yyleng);
|
|
|
|
if (doc_com) {
|
|
CG(doc_comment) = zend_string_init(yytext, yyleng, 0);
|
|
return T_DOC_COMMENT;
|
|
}
|
|
|
|
return T_COMMENT;
|
|
}
|
|
#line 3259 "Zend/zend_language_scanner.c"
|
|
yy191:
|
|
YYDEBUG(191, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy140;
|
|
yy192:
|
|
YYDEBUG(192, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(193, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1472 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_DIV_EQUAL;
|
|
}
|
|
#line 3273 "Zend/zend_language_scanner.c"
|
|
yy194:
|
|
YYDEBUG(194, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yybm[0+yych] & 64) {
|
|
goto yy195;
|
|
}
|
|
goto yy157;
|
|
yy195:
|
|
YYDEBUG(195, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(196, *YYCURSOR);
|
|
if (yybm[0+yych] & 64) {
|
|
goto yy195;
|
|
}
|
|
goto yy190;
|
|
yy197:
|
|
YYDEBUG(197, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) == '=') goto yy201;
|
|
YYDEBUG(198, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1464 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_POW;
|
|
}
|
|
#line 3301 "Zend/zend_language_scanner.c"
|
|
yy199:
|
|
YYDEBUG(199, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(200, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1460 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_MUL_EQUAL;
|
|
}
|
|
#line 3311 "Zend/zend_language_scanner.c"
|
|
yy201:
|
|
YYDEBUG(201, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(202, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1468 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_POW_EQUAL;
|
|
}
|
|
#line 3321 "Zend/zend_language_scanner.c"
|
|
yy203:
|
|
YYDEBUG(203, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) == '=') goto yy207;
|
|
YYDEBUG(204, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1528 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_SR;
|
|
}
|
|
#line 3332 "Zend/zend_language_scanner.c"
|
|
yy205:
|
|
YYDEBUG(205, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(206, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1448 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_IS_GREATER_OR_EQUAL;
|
|
}
|
|
#line 3342 "Zend/zend_language_scanner.c"
|
|
yy207:
|
|
YYDEBUG(207, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(208, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1488 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_SR_EQUAL;
|
|
}
|
|
#line 3352 "Zend/zend_language_scanner.c"
|
|
yy209:
|
|
YYDEBUG(209, *YYCURSOR);
|
|
yyaccept = 5;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yych <= ';') goto yy210;
|
|
if (yych <= '<') goto yy217;
|
|
if (yych <= '=') goto yy215;
|
|
yy210:
|
|
YYDEBUG(210, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1524 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_SL;
|
|
}
|
|
#line 3367 "Zend/zend_language_scanner.c"
|
|
yy211:
|
|
YYDEBUG(211, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(212, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1444 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_IS_SMALLER_OR_EQUAL;
|
|
}
|
|
#line 3377 "Zend/zend_language_scanner.c"
|
|
yy213:
|
|
YYDEBUG(213, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yy214:
|
|
YYDEBUG(214, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1440 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_IS_NOT_EQUAL;
|
|
}
|
|
#line 3388 "Zend/zend_language_scanner.c"
|
|
yy215:
|
|
YYDEBUG(215, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(216, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1484 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_SL_EQUAL;
|
|
}
|
|
#line 3398 "Zend/zend_language_scanner.c"
|
|
yy217:
|
|
YYDEBUG(217, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(2);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(218, *YYCURSOR);
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy217;
|
|
}
|
|
if (yych <= 'Z') {
|
|
if (yych <= '&') {
|
|
if (yych == '"') goto yy222;
|
|
goto yy157;
|
|
} else {
|
|
if (yych <= '\'') goto yy221;
|
|
if (yych <= '@') goto yy157;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych != '_') goto yy157;
|
|
} else {
|
|
if (yych <= 'z') goto yy219;
|
|
if (yych <= '~') goto yy157;
|
|
}
|
|
}
|
|
yy219:
|
|
YYDEBUG(219, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(2);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(220, *YYCURSOR);
|
|
if (yych <= '@') {
|
|
if (yych <= '\f') {
|
|
if (yych == '\n') goto yy226;
|
|
goto yy157;
|
|
} else {
|
|
if (yych <= '\r') goto yy228;
|
|
if (yych <= '/') goto yy157;
|
|
if (yych <= '9') goto yy219;
|
|
goto yy157;
|
|
}
|
|
} else {
|
|
if (yych <= '_') {
|
|
if (yych <= 'Z') goto yy219;
|
|
if (yych <= '^') goto yy157;
|
|
goto yy219;
|
|
} else {
|
|
if (yych <= '`') goto yy157;
|
|
if (yych <= 'z') goto yy219;
|
|
if (yych <= '~') goto yy157;
|
|
goto yy219;
|
|
}
|
|
}
|
|
yy221:
|
|
YYDEBUG(221, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '\'') goto yy157;
|
|
if (yych <= '/') goto yy230;
|
|
if (yych <= '9') goto yy157;
|
|
goto yy230;
|
|
yy222:
|
|
YYDEBUG(222, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '"') goto yy157;
|
|
if (yych <= '/') goto yy224;
|
|
if (yych <= '9') goto yy157;
|
|
goto yy224;
|
|
yy223:
|
|
YYDEBUG(223, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(3);
|
|
yych = *YYCURSOR;
|
|
yy224:
|
|
YYDEBUG(224, *YYCURSOR);
|
|
if (yych <= 'Z') {
|
|
if (yych <= '/') {
|
|
if (yych != '"') goto yy157;
|
|
} else {
|
|
if (yych <= '9') goto yy223;
|
|
if (yych <= '@') goto yy157;
|
|
goto yy223;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych == '_') goto yy223;
|
|
goto yy157;
|
|
} else {
|
|
if (yych <= 'z') goto yy223;
|
|
if (yych <= '~') goto yy157;
|
|
goto yy223;
|
|
}
|
|
}
|
|
yy225:
|
|
YYDEBUG(225, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '\n') goto yy226;
|
|
if (yych == '\r') goto yy228;
|
|
goto yy157;
|
|
yy226:
|
|
YYDEBUG(226, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yy227:
|
|
YYDEBUG(227, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1986 "Zend/zend_language_scanner.l"
|
|
{
|
|
char *s;
|
|
int bprefix = (yytext[0] != '<') ? 1 : 0;
|
|
zend_heredoc_label *heredoc_label = emalloc(sizeof(zend_heredoc_label));
|
|
|
|
CG(zend_lineno)++;
|
|
heredoc_label->length = yyleng-bprefix-3-1-(yytext[yyleng-2]=='\r'?1:0);
|
|
s = yytext+bprefix+3;
|
|
while ((*s == ' ') || (*s == '\t')) {
|
|
s++;
|
|
heredoc_label->length--;
|
|
}
|
|
|
|
if (*s == '\'') {
|
|
s++;
|
|
heredoc_label->length -= 2;
|
|
|
|
BEGIN(ST_NOWDOC);
|
|
} else {
|
|
if (*s == '"') {
|
|
s++;
|
|
heredoc_label->length -= 2;
|
|
}
|
|
|
|
BEGIN(ST_HEREDOC);
|
|
}
|
|
|
|
heredoc_label->label = estrndup(s, heredoc_label->length);
|
|
|
|
/* Check for ending label on the next line */
|
|
if (heredoc_label->length < YYLIMIT - YYCURSOR && !memcmp(YYCURSOR, s, heredoc_label->length)) {
|
|
YYCTYPE *end = YYCURSOR + heredoc_label->length;
|
|
|
|
if (*end == ';') {
|
|
end++;
|
|
}
|
|
|
|
if (*end == '\n' || *end == '\r') {
|
|
BEGIN(ST_END_HEREDOC);
|
|
}
|
|
}
|
|
|
|
zend_ptr_stack_push(&SCNG(heredoc_label_stack), (void *) heredoc_label);
|
|
|
|
return T_START_HEREDOC;
|
|
}
|
|
#line 3550 "Zend/zend_language_scanner.c"
|
|
yy228:
|
|
YYDEBUG(228, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '\n') goto yy226;
|
|
goto yy227;
|
|
yy229:
|
|
YYDEBUG(229, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(3);
|
|
yych = *YYCURSOR;
|
|
yy230:
|
|
YYDEBUG(230, *YYCURSOR);
|
|
if (yych <= 'Z') {
|
|
if (yych <= '/') {
|
|
if (yych == '\'') goto yy225;
|
|
goto yy157;
|
|
} else {
|
|
if (yych <= '9') goto yy229;
|
|
if (yych <= '@') goto yy157;
|
|
goto yy229;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych == '_') goto yy229;
|
|
goto yy157;
|
|
} else {
|
|
if (yych <= 'z') goto yy229;
|
|
if (yych <= '~') goto yy157;
|
|
goto yy229;
|
|
}
|
|
}
|
|
yy231:
|
|
YYDEBUG(231, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '=') goto yy214;
|
|
YYDEBUG(232, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(233, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1432 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_IS_NOT_IDENTICAL;
|
|
}
|
|
#line 3594 "Zend/zend_language_scanner.c"
|
|
yy234:
|
|
YYDEBUG(234, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(235, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1452 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_PLUS_EQUAL;
|
|
}
|
|
#line 3604 "Zend/zend_language_scanner.c"
|
|
yy236:
|
|
YYDEBUG(236, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(237, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1420 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_INC;
|
|
}
|
|
#line 3614 "Zend/zend_language_scanner.c"
|
|
yy238:
|
|
YYDEBUG(238, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy239;
|
|
if (yych != 's') goto yy150;
|
|
yy239:
|
|
YYDEBUG(239, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy240;
|
|
if (yych != 't') goto yy150;
|
|
yy240:
|
|
YYDEBUG(240, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(241, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1408 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_LIST;
|
|
}
|
|
#line 3637 "Zend/zend_language_scanner.c"
|
|
yy242:
|
|
YYDEBUG(242, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) == '=') goto yy246;
|
|
YYDEBUG(243, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1436 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_IS_EQUAL;
|
|
}
|
|
#line 3648 "Zend/zend_language_scanner.c"
|
|
yy244:
|
|
YYDEBUG(244, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(245, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1404 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_DOUBLE_ARROW;
|
|
}
|
|
#line 3658 "Zend/zend_language_scanner.c"
|
|
yy246:
|
|
YYDEBUG(246, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(247, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1428 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_IS_IDENTICAL;
|
|
}
|
|
#line 3668 "Zend/zend_language_scanner.c"
|
|
yy248:
|
|
YYDEBUG(248, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
YYDEBUG(-1, yych);
|
|
switch (yych) {
|
|
case 'C':
|
|
case 'c': goto yy250;
|
|
case 'D':
|
|
case 'd': goto yy255;
|
|
case 'F':
|
|
case 'f': goto yy252;
|
|
case 'H':
|
|
case 'h': goto yy249;
|
|
case 'L':
|
|
case 'l': goto yy254;
|
|
case 'M':
|
|
case 'm': goto yy253;
|
|
case 'N':
|
|
case 'n': goto yy256;
|
|
case 'T':
|
|
case 't': goto yy251;
|
|
default: goto yy150;
|
|
}
|
|
yy249:
|
|
YYDEBUG(249, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy317;
|
|
if (yych == 'a') goto yy317;
|
|
goto yy150;
|
|
yy250:
|
|
YYDEBUG(250, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy310;
|
|
if (yych == 'l') goto yy310;
|
|
goto yy150;
|
|
yy251:
|
|
YYDEBUG(251, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy303;
|
|
if (yych == 'r') goto yy303;
|
|
goto yy150;
|
|
yy252:
|
|
YYDEBUG(252, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'U') {
|
|
if (yych == 'I') goto yy287;
|
|
if (yych <= 'T') goto yy150;
|
|
goto yy288;
|
|
} else {
|
|
if (yych <= 'i') {
|
|
if (yych <= 'h') goto yy150;
|
|
goto yy287;
|
|
} else {
|
|
if (yych == 'u') goto yy288;
|
|
goto yy150;
|
|
}
|
|
}
|
|
yy253:
|
|
YYDEBUG(253, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy279;
|
|
if (yych == 'e') goto yy279;
|
|
goto yy150;
|
|
yy254:
|
|
YYDEBUG(254, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy273;
|
|
if (yych == 'i') goto yy273;
|
|
goto yy150;
|
|
yy255:
|
|
YYDEBUG(255, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy268;
|
|
if (yych == 'i') goto yy268;
|
|
goto yy150;
|
|
yy256:
|
|
YYDEBUG(256, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy257;
|
|
if (yych != 'a') goto yy150;
|
|
yy257:
|
|
YYDEBUG(257, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'M') goto yy258;
|
|
if (yych != 'm') goto yy150;
|
|
yy258:
|
|
YYDEBUG(258, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy259;
|
|
if (yych != 'e') goto yy150;
|
|
yy259:
|
|
YYDEBUG(259, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy260;
|
|
if (yych != 's') goto yy150;
|
|
yy260:
|
|
YYDEBUG(260, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'P') goto yy261;
|
|
if (yych != 'p') goto yy150;
|
|
yy261:
|
|
YYDEBUG(261, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy262;
|
|
if (yych != 'a') goto yy150;
|
|
yy262:
|
|
YYDEBUG(262, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy263;
|
|
if (yych != 'c') goto yy150;
|
|
yy263:
|
|
YYDEBUG(263, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy264;
|
|
if (yych != 'e') goto yy150;
|
|
yy264:
|
|
YYDEBUG(264, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy150;
|
|
YYDEBUG(265, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy150;
|
|
YYDEBUG(266, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(267, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1685 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_NS_C;
|
|
}
|
|
#line 3802 "Zend/zend_language_scanner.c"
|
|
yy268:
|
|
YYDEBUG(268, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy269;
|
|
if (yych != 'r') goto yy150;
|
|
yy269:
|
|
YYDEBUG(269, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy150;
|
|
YYDEBUG(270, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy150;
|
|
YYDEBUG(271, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(272, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1681 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_DIR;
|
|
}
|
|
#line 3826 "Zend/zend_language_scanner.c"
|
|
yy273:
|
|
YYDEBUG(273, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy274;
|
|
if (yych != 'n') goto yy150;
|
|
yy274:
|
|
YYDEBUG(274, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy275;
|
|
if (yych != 'e') goto yy150;
|
|
yy275:
|
|
YYDEBUG(275, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy150;
|
|
YYDEBUG(276, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy150;
|
|
YYDEBUG(277, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(278, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1673 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_LINE;
|
|
}
|
|
#line 3855 "Zend/zend_language_scanner.c"
|
|
yy279:
|
|
YYDEBUG(279, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy280;
|
|
if (yych != 't') goto yy150;
|
|
yy280:
|
|
YYDEBUG(280, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'H') goto yy281;
|
|
if (yych != 'h') goto yy150;
|
|
yy281:
|
|
YYDEBUG(281, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy282;
|
|
if (yych != 'o') goto yy150;
|
|
yy282:
|
|
YYDEBUG(282, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'D') goto yy283;
|
|
if (yych != 'd') goto yy150;
|
|
yy283:
|
|
YYDEBUG(283, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy150;
|
|
YYDEBUG(284, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy150;
|
|
YYDEBUG(285, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(286, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1669 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_METHOD_C;
|
|
}
|
|
#line 3894 "Zend/zend_language_scanner.c"
|
|
yy287:
|
|
YYDEBUG(287, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy298;
|
|
if (yych == 'l') goto yy298;
|
|
goto yy150;
|
|
yy288:
|
|
YYDEBUG(288, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy289;
|
|
if (yych != 'n') goto yy150;
|
|
yy289:
|
|
YYDEBUG(289, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy290;
|
|
if (yych != 'c') goto yy150;
|
|
yy290:
|
|
YYDEBUG(290, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy291;
|
|
if (yych != 't') goto yy150;
|
|
yy291:
|
|
YYDEBUG(291, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy292;
|
|
if (yych != 'i') goto yy150;
|
|
yy292:
|
|
YYDEBUG(292, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy293;
|
|
if (yych != 'o') goto yy150;
|
|
yy293:
|
|
YYDEBUG(293, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy294;
|
|
if (yych != 'n') goto yy150;
|
|
yy294:
|
|
YYDEBUG(294, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy150;
|
|
YYDEBUG(295, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy150;
|
|
YYDEBUG(296, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(297, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1665 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_FUNC_C;
|
|
}
|
|
#line 3949 "Zend/zend_language_scanner.c"
|
|
yy298:
|
|
YYDEBUG(298, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy299;
|
|
if (yych != 'e') goto yy150;
|
|
yy299:
|
|
YYDEBUG(299, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy150;
|
|
YYDEBUG(300, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy150;
|
|
YYDEBUG(301, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(302, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1677 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_FILE;
|
|
}
|
|
#line 3973 "Zend/zend_language_scanner.c"
|
|
yy303:
|
|
YYDEBUG(303, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy304;
|
|
if (yych != 'a') goto yy150;
|
|
yy304:
|
|
YYDEBUG(304, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy305;
|
|
if (yych != 'i') goto yy150;
|
|
yy305:
|
|
YYDEBUG(305, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy306;
|
|
if (yych != 't') goto yy150;
|
|
yy306:
|
|
YYDEBUG(306, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy150;
|
|
YYDEBUG(307, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy150;
|
|
YYDEBUG(308, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(309, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1661 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_TRAIT_C;
|
|
}
|
|
#line 4007 "Zend/zend_language_scanner.c"
|
|
yy310:
|
|
YYDEBUG(310, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy311;
|
|
if (yych != 'a') goto yy150;
|
|
yy311:
|
|
YYDEBUG(311, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy312;
|
|
if (yych != 's') goto yy150;
|
|
yy312:
|
|
YYDEBUG(312, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy313;
|
|
if (yych != 's') goto yy150;
|
|
yy313:
|
|
YYDEBUG(313, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy150;
|
|
YYDEBUG(314, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy150;
|
|
YYDEBUG(315, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(316, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1657 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_CLASS_C;
|
|
}
|
|
#line 4041 "Zend/zend_language_scanner.c"
|
|
yy317:
|
|
YYDEBUG(317, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy318;
|
|
if (yych != 'l') goto yy150;
|
|
yy318:
|
|
YYDEBUG(318, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy319;
|
|
if (yych != 't') goto yy150;
|
|
yy319:
|
|
YYDEBUG(319, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '_') goto yy150;
|
|
YYDEBUG(320, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy321;
|
|
if (yych != 'c') goto yy150;
|
|
yy321:
|
|
YYDEBUG(321, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy322;
|
|
if (yych != 'o') goto yy150;
|
|
yy322:
|
|
YYDEBUG(322, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'M') goto yy323;
|
|
if (yych != 'm') goto yy150;
|
|
yy323:
|
|
YYDEBUG(323, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'P') goto yy324;
|
|
if (yych != 'p') goto yy150;
|
|
yy324:
|
|
YYDEBUG(324, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy325;
|
|
if (yych != 'i') goto yy150;
|
|
yy325:
|
|
YYDEBUG(325, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy326;
|
|
if (yych != 'l') goto yy150;
|
|
yy326:
|
|
YYDEBUG(326, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy327;
|
|
if (yych != 'e') goto yy150;
|
|
yy327:
|
|
YYDEBUG(327, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy328;
|
|
if (yych != 'r') goto yy150;
|
|
yy328:
|
|
YYDEBUG(328, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(329, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1372 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_HALT_COMPILER;
|
|
}
|
|
#line 4107 "Zend/zend_language_scanner.c"
|
|
yy330:
|
|
YYDEBUG(330, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy334;
|
|
if (yych == 's') goto yy334;
|
|
goto yy150;
|
|
yy331:
|
|
YYDEBUG(331, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy332;
|
|
if (yych != 'e') goto yy150;
|
|
yy332:
|
|
YYDEBUG(332, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(333, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1352 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_USE;
|
|
}
|
|
#line 4131 "Zend/zend_language_scanner.c"
|
|
yy334:
|
|
YYDEBUG(334, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy335;
|
|
if (yych != 'e') goto yy150;
|
|
yy335:
|
|
YYDEBUG(335, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy336;
|
|
if (yych != 't') goto yy150;
|
|
yy336:
|
|
YYDEBUG(336, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(337, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1400 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_UNSET;
|
|
}
|
|
#line 4154 "Zend/zend_language_scanner.c"
|
|
yy338:
|
|
YYDEBUG(338, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(7);
|
|
yych = *YYCURSOR;
|
|
yy339:
|
|
YYDEBUG(339, *YYCURSOR);
|
|
if (yych <= 'S') {
|
|
if (yych <= 'D') {
|
|
if (yych <= ' ') {
|
|
if (yych == '\t') goto yy338;
|
|
if (yych <= 0x1F) goto yy157;
|
|
goto yy338;
|
|
} else {
|
|
if (yych <= 'A') {
|
|
if (yych <= '@') goto yy157;
|
|
goto yy343;
|
|
} else {
|
|
if (yych <= 'B') goto yy341;
|
|
if (yych <= 'C') goto yy157;
|
|
goto yy346;
|
|
}
|
|
}
|
|
} else {
|
|
if (yych <= 'I') {
|
|
if (yych == 'F') goto yy347;
|
|
if (yych <= 'H') goto yy157;
|
|
goto yy348;
|
|
} else {
|
|
if (yych <= 'O') {
|
|
if (yych <= 'N') goto yy157;
|
|
goto yy342;
|
|
} else {
|
|
if (yych <= 'Q') goto yy157;
|
|
if (yych <= 'R') goto yy345;
|
|
goto yy344;
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
if (yych <= 'f') {
|
|
if (yych <= 'a') {
|
|
if (yych == 'U') goto yy340;
|
|
if (yych <= '`') goto yy157;
|
|
goto yy343;
|
|
} else {
|
|
if (yych <= 'c') {
|
|
if (yych <= 'b') goto yy341;
|
|
goto yy157;
|
|
} else {
|
|
if (yych <= 'd') goto yy346;
|
|
if (yych <= 'e') goto yy157;
|
|
goto yy347;
|
|
}
|
|
}
|
|
} else {
|
|
if (yych <= 'q') {
|
|
if (yych <= 'i') {
|
|
if (yych <= 'h') goto yy157;
|
|
goto yy348;
|
|
} else {
|
|
if (yych == 'o') goto yy342;
|
|
goto yy157;
|
|
}
|
|
} else {
|
|
if (yych <= 's') {
|
|
if (yych <= 'r') goto yy345;
|
|
goto yy344;
|
|
} else {
|
|
if (yych != 'u') goto yy157;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
yy340:
|
|
YYDEBUG(340, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy407;
|
|
if (yych == 'n') goto yy407;
|
|
goto yy157;
|
|
yy341:
|
|
YYDEBUG(341, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'O') {
|
|
if (yych == 'I') goto yy394;
|
|
if (yych <= 'N') goto yy157;
|
|
goto yy395;
|
|
} else {
|
|
if (yych <= 'i') {
|
|
if (yych <= 'h') goto yy157;
|
|
goto yy394;
|
|
} else {
|
|
if (yych == 'o') goto yy395;
|
|
goto yy157;
|
|
}
|
|
}
|
|
yy342:
|
|
YYDEBUG(342, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'B') goto yy386;
|
|
if (yych == 'b') goto yy386;
|
|
goto yy157;
|
|
yy343:
|
|
YYDEBUG(343, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy379;
|
|
if (yych == 'r') goto yy379;
|
|
goto yy157;
|
|
yy344:
|
|
YYDEBUG(344, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy371;
|
|
if (yych == 't') goto yy371;
|
|
goto yy157;
|
|
yy345:
|
|
YYDEBUG(345, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy369;
|
|
if (yych == 'e') goto yy369;
|
|
goto yy157;
|
|
yy346:
|
|
YYDEBUG(346, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy365;
|
|
if (yych == 'o') goto yy365;
|
|
goto yy157;
|
|
yy347:
|
|
YYDEBUG(347, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy358;
|
|
if (yych == 'l') goto yy358;
|
|
goto yy157;
|
|
yy348:
|
|
YYDEBUG(348, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy349;
|
|
if (yych != 'n') goto yy157;
|
|
yy349:
|
|
YYDEBUG(349, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy350;
|
|
if (yych != 't') goto yy157;
|
|
yy350:
|
|
YYDEBUG(350, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy351;
|
|
if (yych != 'e') goto yy353;
|
|
yy351:
|
|
YYDEBUG(351, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'G') goto yy356;
|
|
if (yych == 'g') goto yy356;
|
|
goto yy157;
|
|
yy352:
|
|
YYDEBUG(352, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy353:
|
|
YYDEBUG(353, *YYCURSOR);
|
|
if (yych <= 0x1F) {
|
|
if (yych == '\t') goto yy352;
|
|
goto yy157;
|
|
} else {
|
|
if (yych <= ' ') goto yy352;
|
|
if (yych != ')') goto yy157;
|
|
}
|
|
YYDEBUG(354, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(355, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1300 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_INT_CAST;
|
|
}
|
|
#line 4330 "Zend/zend_language_scanner.c"
|
|
yy356:
|
|
YYDEBUG(356, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy357;
|
|
if (yych != 'e') goto yy157;
|
|
yy357:
|
|
YYDEBUG(357, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy352;
|
|
if (yych == 'r') goto yy352;
|
|
goto yy157;
|
|
yy358:
|
|
YYDEBUG(358, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy359;
|
|
if (yych != 'o') goto yy157;
|
|
yy359:
|
|
YYDEBUG(359, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy360;
|
|
if (yych != 'a') goto yy157;
|
|
yy360:
|
|
YYDEBUG(360, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy361;
|
|
if (yych != 't') goto yy157;
|
|
yy361:
|
|
YYDEBUG(361, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(362, *YYCURSOR);
|
|
if (yych <= 0x1F) {
|
|
if (yych == '\t') goto yy361;
|
|
goto yy157;
|
|
} else {
|
|
if (yych <= ' ') goto yy361;
|
|
if (yych != ')') goto yy157;
|
|
}
|
|
YYDEBUG(363, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(364, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1304 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_DOUBLE_CAST;
|
|
}
|
|
#line 4378 "Zend/zend_language_scanner.c"
|
|
yy365:
|
|
YYDEBUG(365, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'U') goto yy366;
|
|
if (yych != 'u') goto yy157;
|
|
yy366:
|
|
YYDEBUG(366, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'B') goto yy367;
|
|
if (yych != 'b') goto yy157;
|
|
yy367:
|
|
YYDEBUG(367, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy368;
|
|
if (yych != 'l') goto yy157;
|
|
yy368:
|
|
YYDEBUG(368, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy361;
|
|
if (yych == 'e') goto yy361;
|
|
goto yy157;
|
|
yy369:
|
|
YYDEBUG(369, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy370;
|
|
if (yych != 'a') goto yy157;
|
|
yy370:
|
|
YYDEBUG(370, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy361;
|
|
if (yych == 'l') goto yy361;
|
|
goto yy157;
|
|
yy371:
|
|
YYDEBUG(371, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy372;
|
|
if (yych != 'r') goto yy157;
|
|
yy372:
|
|
YYDEBUG(372, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy373;
|
|
if (yych != 'i') goto yy157;
|
|
yy373:
|
|
YYDEBUG(373, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy374;
|
|
if (yych != 'n') goto yy157;
|
|
yy374:
|
|
YYDEBUG(374, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'G') goto yy375;
|
|
if (yych != 'g') goto yy157;
|
|
yy375:
|
|
YYDEBUG(375, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(376, *YYCURSOR);
|
|
if (yych <= 0x1F) {
|
|
if (yych == '\t') goto yy375;
|
|
goto yy157;
|
|
} else {
|
|
if (yych <= ' ') goto yy375;
|
|
if (yych != ')') goto yy157;
|
|
}
|
|
YYDEBUG(377, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(378, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1308 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_STRING_CAST;
|
|
}
|
|
#line 4452 "Zend/zend_language_scanner.c"
|
|
yy379:
|
|
YYDEBUG(379, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy380;
|
|
if (yych != 'r') goto yy157;
|
|
yy380:
|
|
YYDEBUG(380, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy381;
|
|
if (yych != 'a') goto yy157;
|
|
yy381:
|
|
YYDEBUG(381, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'Y') goto yy382;
|
|
if (yych != 'y') goto yy157;
|
|
yy382:
|
|
YYDEBUG(382, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(383, *YYCURSOR);
|
|
if (yych <= 0x1F) {
|
|
if (yych == '\t') goto yy382;
|
|
goto yy157;
|
|
} else {
|
|
if (yych <= ' ') goto yy382;
|
|
if (yych != ')') goto yy157;
|
|
}
|
|
YYDEBUG(384, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(385, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1312 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ARRAY_CAST;
|
|
}
|
|
#line 4489 "Zend/zend_language_scanner.c"
|
|
yy386:
|
|
YYDEBUG(386, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'J') goto yy387;
|
|
if (yych != 'j') goto yy157;
|
|
yy387:
|
|
YYDEBUG(387, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy388;
|
|
if (yych != 'e') goto yy157;
|
|
yy388:
|
|
YYDEBUG(388, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy389;
|
|
if (yych != 'c') goto yy157;
|
|
yy389:
|
|
YYDEBUG(389, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy390;
|
|
if (yych != 't') goto yy157;
|
|
yy390:
|
|
YYDEBUG(390, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(391, *YYCURSOR);
|
|
if (yych <= 0x1F) {
|
|
if (yych == '\t') goto yy390;
|
|
goto yy157;
|
|
} else {
|
|
if (yych <= ' ') goto yy390;
|
|
if (yych != ')') goto yy157;
|
|
}
|
|
YYDEBUG(392, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(393, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1316 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_OBJECT_CAST;
|
|
}
|
|
#line 4531 "Zend/zend_language_scanner.c"
|
|
yy394:
|
|
YYDEBUG(394, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy404;
|
|
if (yych == 'n') goto yy404;
|
|
goto yy157;
|
|
yy395:
|
|
YYDEBUG(395, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy396;
|
|
if (yych != 'o') goto yy157;
|
|
yy396:
|
|
YYDEBUG(396, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy397;
|
|
if (yych != 'l') goto yy157;
|
|
yy397:
|
|
YYDEBUG(397, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy402;
|
|
if (yych == 'e') goto yy402;
|
|
goto yy399;
|
|
yy398:
|
|
YYDEBUG(398, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy399:
|
|
YYDEBUG(399, *YYCURSOR);
|
|
if (yych <= 0x1F) {
|
|
if (yych == '\t') goto yy398;
|
|
goto yy157;
|
|
} else {
|
|
if (yych <= ' ') goto yy398;
|
|
if (yych != ')') goto yy157;
|
|
}
|
|
YYDEBUG(400, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(401, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1320 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_BOOL_CAST;
|
|
}
|
|
#line 4576 "Zend/zend_language_scanner.c"
|
|
yy402:
|
|
YYDEBUG(402, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy403;
|
|
if (yych != 'a') goto yy157;
|
|
yy403:
|
|
YYDEBUG(403, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy398;
|
|
if (yych == 'n') goto yy398;
|
|
goto yy157;
|
|
yy404:
|
|
YYDEBUG(404, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy405;
|
|
if (yych != 'a') goto yy157;
|
|
yy405:
|
|
YYDEBUG(405, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy406;
|
|
if (yych != 'r') goto yy157;
|
|
yy406:
|
|
YYDEBUG(406, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'Y') goto yy375;
|
|
if (yych == 'y') goto yy375;
|
|
goto yy157;
|
|
yy407:
|
|
YYDEBUG(407, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy408;
|
|
if (yych != 's') goto yy157;
|
|
yy408:
|
|
YYDEBUG(408, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy409;
|
|
if (yych != 'e') goto yy157;
|
|
yy409:
|
|
YYDEBUG(409, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy410;
|
|
if (yych != 't') goto yy157;
|
|
yy410:
|
|
YYDEBUG(410, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(411, *YYCURSOR);
|
|
if (yych <= 0x1F) {
|
|
if (yych == '\t') goto yy410;
|
|
goto yy157;
|
|
} else {
|
|
if (yych <= ' ') goto yy410;
|
|
if (yych != ')') goto yy157;
|
|
}
|
|
YYDEBUG(412, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(413, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1324 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_UNSET_CAST;
|
|
}
|
|
#line 4640 "Zend/zend_language_scanner.c"
|
|
yy414:
|
|
YYDEBUG(414, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy415;
|
|
if (yych != 'r') goto yy150;
|
|
yy415:
|
|
YYDEBUG(415, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(416, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1296 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_VAR;
|
|
}
|
|
#line 4658 "Zend/zend_language_scanner.c"
|
|
yy417:
|
|
YYDEBUG(417, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'M') goto yy421;
|
|
if (yych == 'm') goto yy421;
|
|
goto yy150;
|
|
yy418:
|
|
YYDEBUG(418, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'W') goto yy419;
|
|
if (yych != 'w') goto yy150;
|
|
yy419:
|
|
YYDEBUG(419, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(420, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1288 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_NEW;
|
|
}
|
|
#line 4682 "Zend/zend_language_scanner.c"
|
|
yy421:
|
|
YYDEBUG(421, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy422;
|
|
if (yych != 'e') goto yy150;
|
|
yy422:
|
|
YYDEBUG(422, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy423;
|
|
if (yych != 's') goto yy150;
|
|
yy423:
|
|
YYDEBUG(423, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'P') goto yy424;
|
|
if (yych != 'p') goto yy150;
|
|
yy424:
|
|
YYDEBUG(424, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy425;
|
|
if (yych != 'a') goto yy150;
|
|
yy425:
|
|
YYDEBUG(425, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy426;
|
|
if (yych != 'c') goto yy150;
|
|
yy426:
|
|
YYDEBUG(426, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy427;
|
|
if (yych != 'e') goto yy150;
|
|
yy427:
|
|
YYDEBUG(427, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(428, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1348 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_NAMESPACE;
|
|
}
|
|
#line 4725 "Zend/zend_language_scanner.c"
|
|
yy429:
|
|
YYDEBUG(429, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) == '\n') goto yy433;
|
|
if (yych == '\r') goto yy434;
|
|
yy430:
|
|
YYDEBUG(430, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1868 "Zend/zend_language_scanner.l"
|
|
{
|
|
BEGIN(INITIAL);
|
|
return T_CLOSE_TAG; /* implicit ';' at php-end tag */
|
|
}
|
|
#line 4739 "Zend/zend_language_scanner.c"
|
|
yy431:
|
|
YYDEBUG(431, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(432, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1284 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_COALESCE;
|
|
}
|
|
#line 4749 "Zend/zend_language_scanner.c"
|
|
yy433:
|
|
YYDEBUG(433, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy430;
|
|
yy434:
|
|
YYDEBUG(434, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '\n') goto yy433;
|
|
goto yy430;
|
|
yy435:
|
|
YYDEBUG(435, *YYCURSOR);
|
|
yyaccept = 3;
|
|
YYMARKER = ++YYCURSOR;
|
|
YYFILL(3);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(436, *YYCURSOR);
|
|
if (yych <= 'D') {
|
|
if (yych <= '/') goto yy153;
|
|
if (yych <= '9') goto yy435;
|
|
goto yy153;
|
|
} else {
|
|
if (yych <= 'E') goto yy156;
|
|
if (yych == 'e') goto yy156;
|
|
goto yy153;
|
|
}
|
|
yy437:
|
|
YYDEBUG(437, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(438, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1476 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_CONCAT_EQUAL;
|
|
}
|
|
#line 4784 "Zend/zend_language_scanner.c"
|
|
yy439:
|
|
YYDEBUG(439, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych != '.') goto yy157;
|
|
YYDEBUG(440, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(441, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1280 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ELLIPSIS;
|
|
}
|
|
#line 4797 "Zend/zend_language_scanner.c"
|
|
yy442:
|
|
YYDEBUG(442, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(443, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1272 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_PAAMAYIM_NEKUDOTAYIM;
|
|
}
|
|
#line 4807 "Zend/zend_language_scanner.c"
|
|
yy444:
|
|
YYDEBUG(444, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy445:
|
|
YYDEBUG(445, *YYCURSOR);
|
|
if (yych <= '\f') {
|
|
if (yych <= 0x08) goto yy104;
|
|
if (yych <= '\n') goto yy444;
|
|
goto yy104;
|
|
} else {
|
|
if (yych <= '\r') goto yy444;
|
|
if (yych == ' ') goto yy444;
|
|
goto yy104;
|
|
}
|
|
yy446:
|
|
YYDEBUG(446, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(447, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1456 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_MINUS_EQUAL;
|
|
}
|
|
#line 4833 "Zend/zend_language_scanner.c"
|
|
yy448:
|
|
YYDEBUG(448, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(449, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1424 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_DEC;
|
|
}
|
|
#line 4843 "Zend/zend_language_scanner.c"
|
|
yy450:
|
|
YYDEBUG(450, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(451, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1246 "Zend/zend_language_scanner.l"
|
|
{
|
|
yy_push_state(ST_LOOKING_FOR_PROPERTY);
|
|
return T_OBJECT_OPERATOR;
|
|
}
|
|
#line 4854 "Zend/zend_language_scanner.c"
|
|
yy452:
|
|
YYDEBUG(452, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'O') {
|
|
if (yych == 'I') goto yy459;
|
|
if (yych <= 'N') goto yy150;
|
|
goto yy460;
|
|
} else {
|
|
if (yych <= 'i') {
|
|
if (yych <= 'h') goto yy150;
|
|
goto yy459;
|
|
} else {
|
|
if (yych == 'o') goto yy460;
|
|
goto yy150;
|
|
}
|
|
}
|
|
yy453:
|
|
YYDEBUG(453, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'B') goto yy454;
|
|
if (yych != 'b') goto yy150;
|
|
yy454:
|
|
YYDEBUG(454, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy455;
|
|
if (yych != 'l') goto yy150;
|
|
yy455:
|
|
YYDEBUG(455, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy456;
|
|
if (yych != 'i') goto yy150;
|
|
yy456:
|
|
YYDEBUG(456, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy457;
|
|
if (yych != 'c') goto yy150;
|
|
yy457:
|
|
YYDEBUG(457, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(458, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1396 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_PUBLIC;
|
|
}
|
|
#line 4903 "Zend/zend_language_scanner.c"
|
|
yy459:
|
|
YYDEBUG(459, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'V') {
|
|
if (yych == 'N') goto yy468;
|
|
if (yych <= 'U') goto yy150;
|
|
goto yy469;
|
|
} else {
|
|
if (yych <= 'n') {
|
|
if (yych <= 'm') goto yy150;
|
|
goto yy468;
|
|
} else {
|
|
if (yych == 'v') goto yy469;
|
|
goto yy150;
|
|
}
|
|
}
|
|
yy460:
|
|
YYDEBUG(460, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy461;
|
|
if (yych != 't') goto yy150;
|
|
yy461:
|
|
YYDEBUG(461, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy462;
|
|
if (yych != 'e') goto yy150;
|
|
yy462:
|
|
YYDEBUG(462, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy463;
|
|
if (yych != 'c') goto yy150;
|
|
yy463:
|
|
YYDEBUG(463, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy464;
|
|
if (yych != 't') goto yy150;
|
|
yy464:
|
|
YYDEBUG(464, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy465;
|
|
if (yych != 'e') goto yy150;
|
|
yy465:
|
|
YYDEBUG(465, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'D') goto yy466;
|
|
if (yych != 'd') goto yy150;
|
|
yy466:
|
|
YYDEBUG(466, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(467, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1392 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_PROTECTED;
|
|
}
|
|
#line 4962 "Zend/zend_language_scanner.c"
|
|
yy468:
|
|
YYDEBUG(468, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy474;
|
|
if (yych == 't') goto yy474;
|
|
goto yy150;
|
|
yy469:
|
|
YYDEBUG(469, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy470;
|
|
if (yych != 'a') goto yy150;
|
|
yy470:
|
|
YYDEBUG(470, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy471;
|
|
if (yych != 't') goto yy150;
|
|
yy471:
|
|
YYDEBUG(471, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy472;
|
|
if (yych != 'e') goto yy150;
|
|
yy472:
|
|
YYDEBUG(472, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(473, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1388 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_PRIVATE;
|
|
}
|
|
#line 4996 "Zend/zend_language_scanner.c"
|
|
yy474:
|
|
YYDEBUG(474, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(475, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1222 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_PRINT;
|
|
}
|
|
#line 5009 "Zend/zend_language_scanner.c"
|
|
yy476:
|
|
YYDEBUG(476, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy481;
|
|
if (yych == 'o') goto yy481;
|
|
goto yy150;
|
|
yy477:
|
|
YYDEBUG(477, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy478;
|
|
if (yych != 't') goto yy150;
|
|
yy478:
|
|
YYDEBUG(478, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy479;
|
|
if (yych != 'o') goto yy150;
|
|
yy479:
|
|
YYDEBUG(479, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(480, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1214 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_GOTO;
|
|
}
|
|
#line 5038 "Zend/zend_language_scanner.c"
|
|
yy481:
|
|
YYDEBUG(481, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'B') goto yy482;
|
|
if (yych != 'b') goto yy150;
|
|
yy482:
|
|
YYDEBUG(482, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy483;
|
|
if (yych != 'a') goto yy150;
|
|
yy483:
|
|
YYDEBUG(483, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy484;
|
|
if (yych != 'l') goto yy150;
|
|
yy484:
|
|
YYDEBUG(484, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(485, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1360 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_GLOBAL;
|
|
}
|
|
#line 5066 "Zend/zend_language_scanner.c"
|
|
yy486:
|
|
YYDEBUG(486, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '<') goto yy494;
|
|
goto yy157;
|
|
yy487:
|
|
YYDEBUG(487, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy144;
|
|
yy488:
|
|
YYDEBUG(488, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy142;
|
|
yy489:
|
|
YYDEBUG(489, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy490;
|
|
if (yych != 'e') goto yy150;
|
|
yy490:
|
|
YYDEBUG(490, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy491;
|
|
if (yych != 'a') goto yy150;
|
|
yy491:
|
|
YYDEBUG(491, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'K') goto yy492;
|
|
if (yych != 'k') goto yy150;
|
|
yy492:
|
|
YYDEBUG(492, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(493, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1206 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_BREAK;
|
|
}
|
|
#line 5107 "Zend/zend_language_scanner.c"
|
|
yy494:
|
|
YYDEBUG(494, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == '<') goto yy217;
|
|
goto yy157;
|
|
yy495:
|
|
YYDEBUG(495, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy502;
|
|
if (yych == 'a') goto yy502;
|
|
goto yy150;
|
|
yy496:
|
|
YYDEBUG(496, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy497;
|
|
if (yych != 'i') goto yy150;
|
|
yy497:
|
|
YYDEBUG(497, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy498;
|
|
if (yych != 't') goto yy150;
|
|
yy498:
|
|
YYDEBUG(498, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy499;
|
|
if (yych != 'c') goto yy150;
|
|
yy499:
|
|
YYDEBUG(499, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'H') goto yy500;
|
|
if (yych != 'h') goto yy150;
|
|
yy500:
|
|
YYDEBUG(500, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(501, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1190 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_SWITCH;
|
|
}
|
|
#line 5151 "Zend/zend_language_scanner.c"
|
|
yy502:
|
|
YYDEBUG(502, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy503;
|
|
if (yych != 't') goto yy150;
|
|
yy503:
|
|
YYDEBUG(503, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy504;
|
|
if (yych != 'i') goto yy150;
|
|
yy504:
|
|
YYDEBUG(504, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy505;
|
|
if (yych != 'c') goto yy150;
|
|
yy505:
|
|
YYDEBUG(505, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(506, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1376 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_STATIC;
|
|
}
|
|
#line 5179 "Zend/zend_language_scanner.c"
|
|
yy507:
|
|
YYDEBUG(507, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy518;
|
|
if (yych == 's') goto yy518;
|
|
goto yy150;
|
|
yy508:
|
|
YYDEBUG(508, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'D') goto yy516;
|
|
if (yych == 'd') goto yy516;
|
|
goto yy150;
|
|
yy509:
|
|
YYDEBUG(509, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy512;
|
|
if (yych == 'r') goto yy512;
|
|
goto yy150;
|
|
yy510:
|
|
YYDEBUG(510, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(511, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1186 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_AS;
|
|
}
|
|
#line 5210 "Zend/zend_language_scanner.c"
|
|
yy512:
|
|
YYDEBUG(512, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy513;
|
|
if (yych != 'a') goto yy150;
|
|
yy513:
|
|
YYDEBUG(513, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'Y') goto yy514;
|
|
if (yych != 'y') goto yy150;
|
|
yy514:
|
|
YYDEBUG(514, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(515, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1412 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ARRAY;
|
|
}
|
|
#line 5233 "Zend/zend_language_scanner.c"
|
|
yy516:
|
|
YYDEBUG(516, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(517, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1516 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_LOGICAL_AND;
|
|
}
|
|
#line 5246 "Zend/zend_language_scanner.c"
|
|
yy518:
|
|
YYDEBUG(518, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy519;
|
|
if (yych != 't') goto yy150;
|
|
yy519:
|
|
YYDEBUG(519, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy520;
|
|
if (yych != 'r') goto yy150;
|
|
yy520:
|
|
YYDEBUG(520, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy521;
|
|
if (yych != 'a') goto yy150;
|
|
yy521:
|
|
YYDEBUG(521, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy522;
|
|
if (yych != 'c') goto yy150;
|
|
yy522:
|
|
YYDEBUG(522, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy523;
|
|
if (yych != 't') goto yy150;
|
|
yy523:
|
|
YYDEBUG(523, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(524, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1380 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ABSTRACT;
|
|
}
|
|
#line 5284 "Zend/zend_language_scanner.c"
|
|
yy525:
|
|
YYDEBUG(525, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy526;
|
|
if (yych != 'i') goto yy150;
|
|
yy526:
|
|
YYDEBUG(526, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy527;
|
|
if (yych != 'l') goto yy150;
|
|
yy527:
|
|
YYDEBUG(527, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy528;
|
|
if (yych != 'e') goto yy150;
|
|
yy528:
|
|
YYDEBUG(528, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(529, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1146 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_WHILE;
|
|
}
|
|
#line 5312 "Zend/zend_language_scanner.c"
|
|
yy530:
|
|
YYDEBUG(530, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(531, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1130 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_IF;
|
|
}
|
|
#line 5325 "Zend/zend_language_scanner.c"
|
|
yy532:
|
|
YYDEBUG(532, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'P') goto yy574;
|
|
if (yych == 'p') goto yy574;
|
|
goto yy150;
|
|
yy533:
|
|
YYDEBUG(533, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'T') {
|
|
if (yych <= 'C') {
|
|
if (yych <= 'B') goto yy150;
|
|
goto yy541;
|
|
} else {
|
|
if (yych <= 'R') goto yy150;
|
|
if (yych <= 'S') goto yy539;
|
|
goto yy540;
|
|
}
|
|
} else {
|
|
if (yych <= 'r') {
|
|
if (yych == 'c') goto yy541;
|
|
goto yy150;
|
|
} else {
|
|
if (yych <= 's') goto yy539;
|
|
if (yych <= 't') goto yy540;
|
|
goto yy150;
|
|
}
|
|
}
|
|
yy534:
|
|
YYDEBUG(534, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy535;
|
|
if (yych != 's') goto yy150;
|
|
yy535:
|
|
YYDEBUG(535, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy536;
|
|
if (yych != 'e') goto yy150;
|
|
yy536:
|
|
YYDEBUG(536, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy537;
|
|
if (yych != 't') goto yy150;
|
|
yy537:
|
|
YYDEBUG(537, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(538, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1364 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ISSET;
|
|
}
|
|
#line 5381 "Zend/zend_language_scanner.c"
|
|
yy539:
|
|
YYDEBUG(539, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy560;
|
|
if (yych == 't') goto yy560;
|
|
goto yy150;
|
|
yy540:
|
|
YYDEBUG(540, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy553;
|
|
if (yych == 'e') goto yy553;
|
|
goto yy150;
|
|
yy541:
|
|
YYDEBUG(541, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy542;
|
|
if (yych != 'l') goto yy150;
|
|
yy542:
|
|
YYDEBUG(542, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'U') goto yy543;
|
|
if (yych != 'u') goto yy150;
|
|
yy543:
|
|
YYDEBUG(543, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'D') goto yy544;
|
|
if (yych != 'd') goto yy150;
|
|
yy544:
|
|
YYDEBUG(544, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy545;
|
|
if (yych != 'e') goto yy150;
|
|
yy545:
|
|
YYDEBUG(545, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) <= '^') {
|
|
if (yych <= '9') {
|
|
if (yych >= '0') goto yy149;
|
|
} else {
|
|
if (yych <= '@') goto yy546;
|
|
if (yych <= 'Z') goto yy149;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych <= '_') goto yy547;
|
|
} else {
|
|
if (yych <= 'z') goto yy149;
|
|
if (yych >= 0x7F) goto yy149;
|
|
}
|
|
}
|
|
yy546:
|
|
YYDEBUG(546, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1332 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_INCLUDE;
|
|
}
|
|
#line 5439 "Zend/zend_language_scanner.c"
|
|
yy547:
|
|
YYDEBUG(547, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy548;
|
|
if (yych != 'o') goto yy150;
|
|
yy548:
|
|
YYDEBUG(548, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy549;
|
|
if (yych != 'n') goto yy150;
|
|
yy549:
|
|
YYDEBUG(549, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy550;
|
|
if (yych != 'c') goto yy150;
|
|
yy550:
|
|
YYDEBUG(550, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy551;
|
|
if (yych != 'e') goto yy150;
|
|
yy551:
|
|
YYDEBUG(551, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(552, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1336 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_INCLUDE_ONCE;
|
|
}
|
|
#line 5472 "Zend/zend_language_scanner.c"
|
|
yy553:
|
|
YYDEBUG(553, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy554;
|
|
if (yych != 'r') goto yy150;
|
|
yy554:
|
|
YYDEBUG(554, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'F') goto yy555;
|
|
if (yych != 'f') goto yy150;
|
|
yy555:
|
|
YYDEBUG(555, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy556;
|
|
if (yych != 'a') goto yy150;
|
|
yy556:
|
|
YYDEBUG(556, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy557;
|
|
if (yych != 'c') goto yy150;
|
|
yy557:
|
|
YYDEBUG(557, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy558;
|
|
if (yych != 'e') goto yy150;
|
|
yy558:
|
|
YYDEBUG(558, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(559, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1230 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_INTERFACE;
|
|
}
|
|
#line 5510 "Zend/zend_language_scanner.c"
|
|
yy560:
|
|
YYDEBUG(560, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'E') {
|
|
if (yych == 'A') goto yy561;
|
|
if (yych <= 'D') goto yy150;
|
|
goto yy562;
|
|
} else {
|
|
if (yych <= 'a') {
|
|
if (yych <= '`') goto yy150;
|
|
} else {
|
|
if (yych == 'e') goto yy562;
|
|
goto yy150;
|
|
}
|
|
}
|
|
yy561:
|
|
YYDEBUG(561, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy568;
|
|
if (yych == 'n') goto yy568;
|
|
goto yy150;
|
|
yy562:
|
|
YYDEBUG(562, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy563;
|
|
if (yych != 'a') goto yy150;
|
|
yy563:
|
|
YYDEBUG(563, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'D') goto yy564;
|
|
if (yych != 'd') goto yy150;
|
|
yy564:
|
|
YYDEBUG(564, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy565;
|
|
if (yych != 'o') goto yy150;
|
|
yy565:
|
|
YYDEBUG(565, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'F') goto yy566;
|
|
if (yych != 'f') goto yy150;
|
|
yy566:
|
|
YYDEBUG(566, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(567, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1356 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_INSTEADOF;
|
|
}
|
|
#line 5564 "Zend/zend_language_scanner.c"
|
|
yy568:
|
|
YYDEBUG(568, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy569;
|
|
if (yych != 'c') goto yy150;
|
|
yy569:
|
|
YYDEBUG(569, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy570;
|
|
if (yych != 'e') goto yy150;
|
|
yy570:
|
|
YYDEBUG(570, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy571;
|
|
if (yych != 'o') goto yy150;
|
|
yy571:
|
|
YYDEBUG(571, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'F') goto yy572;
|
|
if (yych != 'f') goto yy150;
|
|
yy572:
|
|
YYDEBUG(572, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(573, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1182 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_INSTANCEOF;
|
|
}
|
|
#line 5597 "Zend/zend_language_scanner.c"
|
|
yy574:
|
|
YYDEBUG(574, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy575;
|
|
if (yych != 'l') goto yy150;
|
|
yy575:
|
|
YYDEBUG(575, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy576;
|
|
if (yych != 'e') goto yy150;
|
|
yy576:
|
|
YYDEBUG(576, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'M') goto yy577;
|
|
if (yych != 'm') goto yy150;
|
|
yy577:
|
|
YYDEBUG(577, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy578;
|
|
if (yych != 'e') goto yy150;
|
|
yy578:
|
|
YYDEBUG(578, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy579;
|
|
if (yych != 'n') goto yy150;
|
|
yy579:
|
|
YYDEBUG(579, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy580;
|
|
if (yych != 't') goto yy150;
|
|
yy580:
|
|
YYDEBUG(580, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy581;
|
|
if (yych != 's') goto yy150;
|
|
yy581:
|
|
YYDEBUG(581, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(582, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1242 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_IMPLEMENTS;
|
|
}
|
|
#line 5645 "Zend/zend_language_scanner.c"
|
|
yy583:
|
|
YYDEBUG(583, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy591;
|
|
if (yych == 'r') goto yy591;
|
|
goto yy150;
|
|
yy584:
|
|
YYDEBUG(584, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'Y') {
|
|
if (yych == 'A') goto yy587;
|
|
if (yych <= 'X') goto yy150;
|
|
} else {
|
|
if (yych <= 'a') {
|
|
if (yych <= '`') goto yy150;
|
|
goto yy587;
|
|
} else {
|
|
if (yych != 'y') goto yy150;
|
|
}
|
|
}
|
|
YYDEBUG(585, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(586, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1114 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_TRY;
|
|
}
|
|
#line 5677 "Zend/zend_language_scanner.c"
|
|
yy587:
|
|
YYDEBUG(587, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy588;
|
|
if (yych != 'i') goto yy150;
|
|
yy588:
|
|
YYDEBUG(588, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy589;
|
|
if (yych != 't') goto yy150;
|
|
yy589:
|
|
YYDEBUG(589, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(590, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1234 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_TRAIT;
|
|
}
|
|
#line 5700 "Zend/zend_language_scanner.c"
|
|
yy591:
|
|
YYDEBUG(591, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy592;
|
|
if (yych != 'o') goto yy150;
|
|
yy592:
|
|
YYDEBUG(592, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'W') goto yy593;
|
|
if (yych != 'w') goto yy150;
|
|
yy593:
|
|
YYDEBUG(593, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(594, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1126 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_THROW;
|
|
}
|
|
#line 5723 "Zend/zend_language_scanner.c"
|
|
yy595:
|
|
YYDEBUG(595, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy596;
|
|
if (yych != 'e') goto yy150;
|
|
yy596:
|
|
YYDEBUG(596, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy597;
|
|
if (yych != 'l') goto yy150;
|
|
yy597:
|
|
YYDEBUG(597, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'D') goto yy598;
|
|
if (yych != 'd') goto yy150;
|
|
yy598:
|
|
YYDEBUG(598, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(599, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1110 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_YIELD;
|
|
}
|
|
#line 5751 "Zend/zend_language_scanner.c"
|
|
yy600:
|
|
YYDEBUG(600, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'T') {
|
|
if (yych == 'Q') goto yy602;
|
|
if (yych <= 'S') goto yy150;
|
|
} else {
|
|
if (yych <= 'q') {
|
|
if (yych <= 'p') goto yy150;
|
|
goto yy602;
|
|
} else {
|
|
if (yych != 't') goto yy150;
|
|
}
|
|
}
|
|
YYDEBUG(601, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'U') goto yy614;
|
|
if (yych == 'u') goto yy614;
|
|
goto yy150;
|
|
yy602:
|
|
YYDEBUG(602, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'U') goto yy603;
|
|
if (yych != 'u') goto yy150;
|
|
yy603:
|
|
YYDEBUG(603, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy604;
|
|
if (yych != 'i') goto yy150;
|
|
yy604:
|
|
YYDEBUG(604, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy605;
|
|
if (yych != 'r') goto yy150;
|
|
yy605:
|
|
YYDEBUG(605, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy606;
|
|
if (yych != 'e') goto yy150;
|
|
yy606:
|
|
YYDEBUG(606, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) <= '^') {
|
|
if (yych <= '9') {
|
|
if (yych >= '0') goto yy149;
|
|
} else {
|
|
if (yych <= '@') goto yy607;
|
|
if (yych <= 'Z') goto yy149;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych <= '_') goto yy608;
|
|
} else {
|
|
if (yych <= 'z') goto yy149;
|
|
if (yych >= 0x7F) goto yy149;
|
|
}
|
|
}
|
|
yy607:
|
|
YYDEBUG(607, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1340 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_REQUIRE;
|
|
}
|
|
#line 5816 "Zend/zend_language_scanner.c"
|
|
yy608:
|
|
YYDEBUG(608, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy609;
|
|
if (yych != 'o') goto yy150;
|
|
yy609:
|
|
YYDEBUG(609, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy610;
|
|
if (yych != 'n') goto yy150;
|
|
yy610:
|
|
YYDEBUG(610, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy611;
|
|
if (yych != 'c') goto yy150;
|
|
yy611:
|
|
YYDEBUG(611, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy612;
|
|
if (yych != 'e') goto yy150;
|
|
yy612:
|
|
YYDEBUG(612, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(613, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1344 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_REQUIRE_ONCE;
|
|
}
|
|
#line 5849 "Zend/zend_language_scanner.c"
|
|
yy614:
|
|
YYDEBUG(614, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy615;
|
|
if (yych != 'r') goto yy150;
|
|
yy615:
|
|
YYDEBUG(615, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy616;
|
|
if (yych != 'n') goto yy150;
|
|
yy616:
|
|
YYDEBUG(616, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(617, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1106 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_RETURN;
|
|
}
|
|
#line 5872 "Zend/zend_language_scanner.c"
|
|
yy618:
|
|
YYDEBUG(618, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'T') {
|
|
if (yych <= 'L') {
|
|
if (yych <= 'K') goto yy150;
|
|
goto yy641;
|
|
} else {
|
|
if (yych <= 'R') goto yy150;
|
|
if (yych <= 'S') goto yy640;
|
|
goto yy639;
|
|
}
|
|
} else {
|
|
if (yych <= 'r') {
|
|
if (yych == 'l') goto yy641;
|
|
goto yy150;
|
|
} else {
|
|
if (yych <= 's') goto yy640;
|
|
if (yych <= 't') goto yy639;
|
|
goto yy150;
|
|
}
|
|
}
|
|
yy619:
|
|
YYDEBUG(619, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'O') {
|
|
if (yych == 'A') goto yy631;
|
|
if (yych <= 'N') goto yy150;
|
|
goto yy632;
|
|
} else {
|
|
if (yych <= 'a') {
|
|
if (yych <= '`') goto yy150;
|
|
goto yy631;
|
|
} else {
|
|
if (yych == 'o') goto yy632;
|
|
goto yy150;
|
|
}
|
|
}
|
|
yy620:
|
|
YYDEBUG(620, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy621;
|
|
if (yych != 'n') goto yy150;
|
|
yy621:
|
|
YYDEBUG(621, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'T') {
|
|
if (yych <= 'R') goto yy150;
|
|
if (yych >= 'T') goto yy623;
|
|
} else {
|
|
if (yych <= 'r') goto yy150;
|
|
if (yych <= 's') goto yy622;
|
|
if (yych <= 't') goto yy623;
|
|
goto yy150;
|
|
}
|
|
yy622:
|
|
YYDEBUG(622, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy629;
|
|
if (yych == 't') goto yy629;
|
|
goto yy150;
|
|
yy623:
|
|
YYDEBUG(623, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy624;
|
|
if (yych != 'i') goto yy150;
|
|
yy624:
|
|
YYDEBUG(624, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy625;
|
|
if (yych != 'n') goto yy150;
|
|
yy625:
|
|
YYDEBUG(625, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'U') goto yy626;
|
|
if (yych != 'u') goto yy150;
|
|
yy626:
|
|
YYDEBUG(626, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy627;
|
|
if (yych != 'e') goto yy150;
|
|
yy627:
|
|
YYDEBUG(627, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(628, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1210 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_CONTINUE;
|
|
}
|
|
#line 5966 "Zend/zend_language_scanner.c"
|
|
yy629:
|
|
YYDEBUG(629, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(630, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1102 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_CONST;
|
|
}
|
|
#line 5979 "Zend/zend_language_scanner.c"
|
|
yy631:
|
|
YYDEBUG(631, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy636;
|
|
if (yych == 's') goto yy636;
|
|
goto yy150;
|
|
yy632:
|
|
YYDEBUG(632, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy633;
|
|
if (yych != 'n') goto yy150;
|
|
yy633:
|
|
YYDEBUG(633, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy634;
|
|
if (yych != 'e') goto yy150;
|
|
yy634:
|
|
YYDEBUG(634, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(635, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1292 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_CLONE;
|
|
}
|
|
#line 6008 "Zend/zend_language_scanner.c"
|
|
yy636:
|
|
YYDEBUG(636, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy637;
|
|
if (yych != 's') goto yy150;
|
|
yy637:
|
|
YYDEBUG(637, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(638, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1226 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_CLASS;
|
|
}
|
|
#line 6026 "Zend/zend_language_scanner.c"
|
|
yy639:
|
|
YYDEBUG(639, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy650;
|
|
if (yych == 'c') goto yy650;
|
|
goto yy150;
|
|
yy640:
|
|
YYDEBUG(640, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy648;
|
|
if (yych == 'e') goto yy648;
|
|
goto yy150;
|
|
yy641:
|
|
YYDEBUG(641, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy642;
|
|
if (yych != 'l') goto yy150;
|
|
yy642:
|
|
YYDEBUG(642, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy643;
|
|
if (yych != 'a') goto yy150;
|
|
yy643:
|
|
YYDEBUG(643, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'B') goto yy644;
|
|
if (yych != 'b') goto yy150;
|
|
yy644:
|
|
YYDEBUG(644, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy645;
|
|
if (yych != 'l') goto yy150;
|
|
yy645:
|
|
YYDEBUG(645, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy646;
|
|
if (yych != 'e') goto yy150;
|
|
yy646:
|
|
YYDEBUG(646, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(647, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1416 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_CALLABLE;
|
|
}
|
|
#line 6076 "Zend/zend_language_scanner.c"
|
|
yy648:
|
|
YYDEBUG(648, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(649, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1198 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_CASE;
|
|
}
|
|
#line 6089 "Zend/zend_language_scanner.c"
|
|
yy650:
|
|
YYDEBUG(650, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'H') goto yy651;
|
|
if (yych != 'h') goto yy150;
|
|
yy651:
|
|
YYDEBUG(651, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(652, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1118 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_CATCH;
|
|
}
|
|
#line 6107 "Zend/zend_language_scanner.c"
|
|
yy653:
|
|
YYDEBUG(653, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy670;
|
|
if (yych == 'n') goto yy670;
|
|
goto yy150;
|
|
yy654:
|
|
YYDEBUG(654, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy663;
|
|
if (yych == 'r') goto yy663;
|
|
goto yy150;
|
|
yy655:
|
|
YYDEBUG(655, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy656;
|
|
if (yych != 'n') goto yy150;
|
|
yy656:
|
|
YYDEBUG(656, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy657;
|
|
if (yych != 'c') goto yy150;
|
|
yy657:
|
|
YYDEBUG(657, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy658;
|
|
if (yych != 't') goto yy150;
|
|
yy658:
|
|
YYDEBUG(658, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy659;
|
|
if (yych != 'i') goto yy150;
|
|
yy659:
|
|
YYDEBUG(659, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy660;
|
|
if (yych != 'o') goto yy150;
|
|
yy660:
|
|
YYDEBUG(660, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy661;
|
|
if (yych != 'n') goto yy150;
|
|
yy661:
|
|
YYDEBUG(661, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(662, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1098 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_FUNCTION;
|
|
}
|
|
#line 6162 "Zend/zend_language_scanner.c"
|
|
yy663:
|
|
YYDEBUG(663, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) <= '^') {
|
|
if (yych <= '@') {
|
|
if (yych <= '/') goto yy664;
|
|
if (yych <= '9') goto yy149;
|
|
} else {
|
|
if (yych == 'E') goto yy665;
|
|
if (yych <= 'Z') goto yy149;
|
|
}
|
|
} else {
|
|
if (yych <= 'd') {
|
|
if (yych != '`') goto yy149;
|
|
} else {
|
|
if (yych <= 'e') goto yy665;
|
|
if (yych <= 'z') goto yy149;
|
|
if (yych >= 0x7F) goto yy149;
|
|
}
|
|
}
|
|
yy664:
|
|
YYDEBUG(664, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1158 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_FOR;
|
|
}
|
|
#line 6190 "Zend/zend_language_scanner.c"
|
|
yy665:
|
|
YYDEBUG(665, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy666;
|
|
if (yych != 'a') goto yy150;
|
|
yy666:
|
|
YYDEBUG(666, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy667;
|
|
if (yych != 'c') goto yy150;
|
|
yy667:
|
|
YYDEBUG(667, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'H') goto yy668;
|
|
if (yych != 'h') goto yy150;
|
|
yy668:
|
|
YYDEBUG(668, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(669, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1166 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_FOREACH;
|
|
}
|
|
#line 6218 "Zend/zend_language_scanner.c"
|
|
yy670:
|
|
YYDEBUG(670, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy671;
|
|
if (yych != 'a') goto yy150;
|
|
yy671:
|
|
YYDEBUG(671, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy672;
|
|
if (yych != 'l') goto yy150;
|
|
yy672:
|
|
YYDEBUG(672, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) <= '^') {
|
|
if (yych <= '@') {
|
|
if (yych <= '/') goto yy673;
|
|
if (yych <= '9') goto yy149;
|
|
} else {
|
|
if (yych == 'L') goto yy674;
|
|
if (yych <= 'Z') goto yy149;
|
|
}
|
|
} else {
|
|
if (yych <= 'k') {
|
|
if (yych != '`') goto yy149;
|
|
} else {
|
|
if (yych <= 'l') goto yy674;
|
|
if (yych <= 'z') goto yy149;
|
|
if (yych >= 0x7F) goto yy149;
|
|
}
|
|
}
|
|
yy673:
|
|
YYDEBUG(673, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1384 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_FINAL;
|
|
}
|
|
#line 6256 "Zend/zend_language_scanner.c"
|
|
yy674:
|
|
YYDEBUG(674, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'Y') goto yy675;
|
|
if (yych != 'y') goto yy150;
|
|
yy675:
|
|
YYDEBUG(675, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(676, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1122 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_FINALLY;
|
|
}
|
|
#line 6274 "Zend/zend_language_scanner.c"
|
|
yy677:
|
|
YYDEBUG(677, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'F') {
|
|
if (yych == 'C') goto yy683;
|
|
if (yych <= 'E') goto yy150;
|
|
goto yy684;
|
|
} else {
|
|
if (yych <= 'c') {
|
|
if (yych <= 'b') goto yy150;
|
|
goto yy683;
|
|
} else {
|
|
if (yych == 'f') goto yy684;
|
|
goto yy150;
|
|
}
|
|
}
|
|
yy678:
|
|
YYDEBUG(678, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy681;
|
|
if (yych == 'e') goto yy681;
|
|
goto yy150;
|
|
yy679:
|
|
YYDEBUG(679, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(680, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1154 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_DO;
|
|
}
|
|
#line 6309 "Zend/zend_language_scanner.c"
|
|
yy681:
|
|
YYDEBUG(681, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(682, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1094 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_EXIT;
|
|
}
|
|
#line 6322 "Zend/zend_language_scanner.c"
|
|
yy683:
|
|
YYDEBUG(683, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy690;
|
|
if (yych == 'l') goto yy690;
|
|
goto yy150;
|
|
yy684:
|
|
YYDEBUG(684, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy685;
|
|
if (yych != 'a') goto yy150;
|
|
yy685:
|
|
YYDEBUG(685, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'U') goto yy686;
|
|
if (yych != 'u') goto yy150;
|
|
yy686:
|
|
YYDEBUG(686, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy687;
|
|
if (yych != 'l') goto yy150;
|
|
yy687:
|
|
YYDEBUG(687, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy688;
|
|
if (yych != 't') goto yy150;
|
|
yy688:
|
|
YYDEBUG(688, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(689, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1202 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_DEFAULT;
|
|
}
|
|
#line 6361 "Zend/zend_language_scanner.c"
|
|
yy690:
|
|
YYDEBUG(690, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy691;
|
|
if (yych != 'a') goto yy150;
|
|
yy691:
|
|
YYDEBUG(691, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy692;
|
|
if (yych != 'r') goto yy150;
|
|
yy692:
|
|
YYDEBUG(692, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy693;
|
|
if (yych != 'e') goto yy150;
|
|
yy693:
|
|
YYDEBUG(693, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(694, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1174 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_DECLARE;
|
|
}
|
|
#line 6389 "Zend/zend_language_scanner.c"
|
|
yy695:
|
|
YYDEBUG(695, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'H') goto yy757;
|
|
if (yych == 'h') goto yy757;
|
|
goto yy150;
|
|
yy696:
|
|
YYDEBUG(696, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy751;
|
|
if (yych == 's') goto yy751;
|
|
goto yy150;
|
|
yy697:
|
|
YYDEBUG(697, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'P') goto yy747;
|
|
if (yych == 'p') goto yy747;
|
|
goto yy150;
|
|
yy698:
|
|
YYDEBUG(698, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'D') goto yy713;
|
|
if (yych == 'd') goto yy713;
|
|
goto yy150;
|
|
yy699:
|
|
YYDEBUG(699, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy710;
|
|
if (yych == 'a') goto yy710;
|
|
goto yy150;
|
|
yy700:
|
|
YYDEBUG(700, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych <= 'T') {
|
|
if (yych == 'I') goto yy701;
|
|
if (yych <= 'S') goto yy150;
|
|
goto yy702;
|
|
} else {
|
|
if (yych <= 'i') {
|
|
if (yych <= 'h') goto yy150;
|
|
} else {
|
|
if (yych == 't') goto yy702;
|
|
goto yy150;
|
|
}
|
|
}
|
|
yy701:
|
|
YYDEBUG(701, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy708;
|
|
if (yych == 't') goto yy708;
|
|
goto yy150;
|
|
yy702:
|
|
YYDEBUG(702, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy703;
|
|
if (yych != 'e') goto yy150;
|
|
yy703:
|
|
YYDEBUG(703, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'N') goto yy704;
|
|
if (yych != 'n') goto yy150;
|
|
yy704:
|
|
YYDEBUG(704, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'D') goto yy705;
|
|
if (yych != 'd') goto yy150;
|
|
yy705:
|
|
YYDEBUG(705, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'S') goto yy706;
|
|
if (yych != 's') goto yy150;
|
|
yy706:
|
|
YYDEBUG(706, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(707, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1238 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_EXTENDS;
|
|
}
|
|
#line 6473 "Zend/zend_language_scanner.c"
|
|
yy708:
|
|
YYDEBUG(708, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(709, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1090 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_EXIT;
|
|
}
|
|
#line 6486 "Zend/zend_language_scanner.c"
|
|
yy710:
|
|
YYDEBUG(710, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy711;
|
|
if (yych != 'l') goto yy150;
|
|
yy711:
|
|
YYDEBUG(711, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(712, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1328 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_EVAL;
|
|
}
|
|
#line 6504 "Zend/zend_language_scanner.c"
|
|
yy713:
|
|
YYDEBUG(713, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
YYDEBUG(-1, yych);
|
|
switch (yych) {
|
|
case 'D':
|
|
case 'd': goto yy714;
|
|
case 'F':
|
|
case 'f': goto yy715;
|
|
case 'I':
|
|
case 'i': goto yy716;
|
|
case 'S':
|
|
case 's': goto yy717;
|
|
case 'W':
|
|
case 'w': goto yy718;
|
|
default: goto yy150;
|
|
}
|
|
yy714:
|
|
YYDEBUG(714, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy740;
|
|
if (yych == 'e') goto yy740;
|
|
goto yy150;
|
|
yy715:
|
|
YYDEBUG(715, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy732;
|
|
if (yych == 'o') goto yy732;
|
|
goto yy150;
|
|
yy716:
|
|
YYDEBUG(716, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'F') goto yy730;
|
|
if (yych == 'f') goto yy730;
|
|
goto yy150;
|
|
yy717:
|
|
YYDEBUG(717, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'W') goto yy724;
|
|
if (yych == 'w') goto yy724;
|
|
goto yy150;
|
|
yy718:
|
|
YYDEBUG(718, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'H') goto yy719;
|
|
if (yych != 'h') goto yy150;
|
|
yy719:
|
|
YYDEBUG(719, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy720;
|
|
if (yych != 'i') goto yy150;
|
|
yy720:
|
|
YYDEBUG(720, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy721;
|
|
if (yych != 'l') goto yy150;
|
|
yy721:
|
|
YYDEBUG(721, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy722;
|
|
if (yych != 'e') goto yy150;
|
|
yy722:
|
|
YYDEBUG(722, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(723, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1150 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ENDWHILE;
|
|
}
|
|
#line 6578 "Zend/zend_language_scanner.c"
|
|
yy724:
|
|
YYDEBUG(724, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'I') goto yy725;
|
|
if (yych != 'i') goto yy150;
|
|
yy725:
|
|
YYDEBUG(725, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy726;
|
|
if (yych != 't') goto yy150;
|
|
yy726:
|
|
YYDEBUG(726, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy727;
|
|
if (yych != 'c') goto yy150;
|
|
yy727:
|
|
YYDEBUG(727, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'H') goto yy728;
|
|
if (yych != 'h') goto yy150;
|
|
yy728:
|
|
YYDEBUG(728, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(729, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1194 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ENDSWITCH;
|
|
}
|
|
#line 6611 "Zend/zend_language_scanner.c"
|
|
yy730:
|
|
YYDEBUG(730, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(731, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1138 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ENDIF;
|
|
}
|
|
#line 6624 "Zend/zend_language_scanner.c"
|
|
yy732:
|
|
YYDEBUG(732, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy733;
|
|
if (yych != 'r') goto yy150;
|
|
yy733:
|
|
YYDEBUG(733, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) <= '^') {
|
|
if (yych <= '@') {
|
|
if (yych <= '/') goto yy734;
|
|
if (yych <= '9') goto yy149;
|
|
} else {
|
|
if (yych == 'E') goto yy735;
|
|
if (yych <= 'Z') goto yy149;
|
|
}
|
|
} else {
|
|
if (yych <= 'd') {
|
|
if (yych != '`') goto yy149;
|
|
} else {
|
|
if (yych <= 'e') goto yy735;
|
|
if (yych <= 'z') goto yy149;
|
|
if (yych >= 0x7F) goto yy149;
|
|
}
|
|
}
|
|
yy734:
|
|
YYDEBUG(734, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1162 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ENDFOR;
|
|
}
|
|
#line 6657 "Zend/zend_language_scanner.c"
|
|
yy735:
|
|
YYDEBUG(735, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy736;
|
|
if (yych != 'a') goto yy150;
|
|
yy736:
|
|
YYDEBUG(736, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy737;
|
|
if (yych != 'c') goto yy150;
|
|
yy737:
|
|
YYDEBUG(737, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'H') goto yy738;
|
|
if (yych != 'h') goto yy150;
|
|
yy738:
|
|
YYDEBUG(738, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(739, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1170 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ENDFOREACH;
|
|
}
|
|
#line 6685 "Zend/zend_language_scanner.c"
|
|
yy740:
|
|
YYDEBUG(740, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'C') goto yy741;
|
|
if (yych != 'c') goto yy150;
|
|
yy741:
|
|
YYDEBUG(741, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'L') goto yy742;
|
|
if (yych != 'l') goto yy150;
|
|
yy742:
|
|
YYDEBUG(742, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'A') goto yy743;
|
|
if (yych != 'a') goto yy150;
|
|
yy743:
|
|
YYDEBUG(743, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'R') goto yy744;
|
|
if (yych != 'r') goto yy150;
|
|
yy744:
|
|
YYDEBUG(744, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy745;
|
|
if (yych != 'e') goto yy150;
|
|
yy745:
|
|
YYDEBUG(745, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(746, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1178 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ENDDECLARE;
|
|
}
|
|
#line 6723 "Zend/zend_language_scanner.c"
|
|
yy747:
|
|
YYDEBUG(747, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'T') goto yy748;
|
|
if (yych != 't') goto yy150;
|
|
yy748:
|
|
YYDEBUG(748, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'Y') goto yy749;
|
|
if (yych != 'y') goto yy150;
|
|
yy749:
|
|
YYDEBUG(749, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(750, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1368 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_EMPTY;
|
|
}
|
|
#line 6746 "Zend/zend_language_scanner.c"
|
|
yy751:
|
|
YYDEBUG(751, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'E') goto yy752;
|
|
if (yych != 'e') goto yy150;
|
|
yy752:
|
|
YYDEBUG(752, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) <= '^') {
|
|
if (yych <= '@') {
|
|
if (yych <= '/') goto yy753;
|
|
if (yych <= '9') goto yy149;
|
|
} else {
|
|
if (yych == 'I') goto yy754;
|
|
if (yych <= 'Z') goto yy149;
|
|
}
|
|
} else {
|
|
if (yych <= 'h') {
|
|
if (yych != '`') goto yy149;
|
|
} else {
|
|
if (yych <= 'i') goto yy754;
|
|
if (yych <= 'z') goto yy149;
|
|
if (yych >= 0x7F) goto yy149;
|
|
}
|
|
}
|
|
yy753:
|
|
YYDEBUG(753, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1142 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ELSE;
|
|
}
|
|
#line 6779 "Zend/zend_language_scanner.c"
|
|
yy754:
|
|
YYDEBUG(754, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'F') goto yy755;
|
|
if (yych != 'f') goto yy150;
|
|
yy755:
|
|
YYDEBUG(755, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(756, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1134 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ELSEIF;
|
|
}
|
|
#line 6797 "Zend/zend_language_scanner.c"
|
|
yy757:
|
|
YYDEBUG(757, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yych == 'O') goto yy758;
|
|
if (yych != 'o') goto yy150;
|
|
yy758:
|
|
YYDEBUG(758, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if (yybm[0+(yych = *YYCURSOR)] & 4) {
|
|
goto yy149;
|
|
}
|
|
YYDEBUG(759, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1218 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_ECHO;
|
|
}
|
|
#line 6815 "Zend/zend_language_scanner.c"
|
|
}
|
|
/* *********************************** */
|
|
yyc_ST_LOOKING_FOR_PROPERTY:
|
|
{
|
|
static const unsigned char yybm[] = {
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 128, 128, 0, 0, 128, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
128, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 0, 0, 0, 0, 0, 0,
|
|
0, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 0, 0, 0, 0, 64,
|
|
0, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 0, 0, 0, 0, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
64, 64, 64, 64, 64, 64, 64, 64,
|
|
};
|
|
YYDEBUG(760, *YYCURSOR);
|
|
YYFILL(2);
|
|
yych = *YYCURSOR;
|
|
if (yych <= '-') {
|
|
if (yych <= '\r') {
|
|
if (yych <= 0x08) goto yy768;
|
|
if (yych <= '\n') goto yy762;
|
|
if (yych <= '\f') goto yy768;
|
|
} else {
|
|
if (yych == ' ') goto yy762;
|
|
if (yych <= ',') goto yy768;
|
|
goto yy764;
|
|
}
|
|
} else {
|
|
if (yych <= '_') {
|
|
if (yych <= '@') goto yy768;
|
|
if (yych <= 'Z') goto yy766;
|
|
if (yych <= '^') goto yy768;
|
|
goto yy766;
|
|
} else {
|
|
if (yych <= '`') goto yy768;
|
|
if (yych <= 'z') goto yy766;
|
|
if (yych <= '~') goto yy768;
|
|
goto yy766;
|
|
}
|
|
}
|
|
yy762:
|
|
YYDEBUG(762, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yych = *YYCURSOR;
|
|
goto yy774;
|
|
yy763:
|
|
YYDEBUG(763, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1251 "Zend/zend_language_scanner.l"
|
|
{
|
|
HANDLE_NEWLINES(yytext, yyleng);
|
|
return T_WHITESPACE;
|
|
}
|
|
#line 6893 "Zend/zend_language_scanner.c"
|
|
yy764:
|
|
YYDEBUG(764, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) == '>') goto yy771;
|
|
yy765:
|
|
YYDEBUG(765, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1266 "Zend/zend_language_scanner.l"
|
|
{
|
|
yyless(0);
|
|
yy_pop_state();
|
|
goto restart;
|
|
}
|
|
#line 6907 "Zend/zend_language_scanner.c"
|
|
yy766:
|
|
YYDEBUG(766, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yych = *YYCURSOR;
|
|
goto yy770;
|
|
yy767:
|
|
YYDEBUG(767, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1260 "Zend/zend_language_scanner.l"
|
|
{
|
|
yy_pop_state();
|
|
zend_copy_value(zendlval, yytext, yyleng);
|
|
return T_STRING;
|
|
}
|
|
#line 6922 "Zend/zend_language_scanner.c"
|
|
yy768:
|
|
YYDEBUG(768, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy765;
|
|
yy769:
|
|
YYDEBUG(769, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy770:
|
|
YYDEBUG(770, *YYCURSOR);
|
|
if (yybm[0+yych] & 64) {
|
|
goto yy769;
|
|
}
|
|
goto yy767;
|
|
yy771:
|
|
YYDEBUG(771, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(772, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1256 "Zend/zend_language_scanner.l"
|
|
{
|
|
return T_OBJECT_OPERATOR;
|
|
}
|
|
#line 6947 "Zend/zend_language_scanner.c"
|
|
yy773:
|
|
YYDEBUG(773, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy774:
|
|
YYDEBUG(774, *YYCURSOR);
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy773;
|
|
}
|
|
goto yy763;
|
|
}
|
|
/* *********************************** */
|
|
yyc_ST_LOOKING_FOR_VARNAME:
|
|
{
|
|
static const unsigned char yybm[] = {
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 0, 0, 0, 0, 0, 0,
|
|
0, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 0, 0, 0, 0, 128,
|
|
0, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 0, 0, 0, 0, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
128, 128, 128, 128, 128, 128, 128, 128,
|
|
};
|
|
YYDEBUG(775, *YYCURSOR);
|
|
YYFILL(2);
|
|
yych = *YYCURSOR;
|
|
if (yych <= '_') {
|
|
if (yych <= '@') goto yy779;
|
|
if (yych <= 'Z') goto yy777;
|
|
if (yych <= '^') goto yy779;
|
|
} else {
|
|
if (yych <= '`') goto yy779;
|
|
if (yych <= 'z') goto yy777;
|
|
if (yych <= '~') goto yy779;
|
|
}
|
|
yy777:
|
|
YYDEBUG(777, *YYCURSOR);
|
|
yyaccept = 0;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yych <= '_') {
|
|
if (yych <= '@') {
|
|
if (yych <= '/') goto yy778;
|
|
if (yych <= '9') goto yy781;
|
|
} else {
|
|
if (yych <= '[') goto yy781;
|
|
if (yych >= '_') goto yy781;
|
|
}
|
|
} else {
|
|
if (yych <= '|') {
|
|
if (yych <= '`') goto yy778;
|
|
if (yych <= 'z') goto yy781;
|
|
} else {
|
|
if (yych != '~') goto yy781;
|
|
}
|
|
}
|
|
yy778:
|
|
YYDEBUG(778, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1567 "Zend/zend_language_scanner.l"
|
|
{
|
|
yyless(0);
|
|
yy_pop_state();
|
|
yy_push_state(ST_IN_SCRIPTING);
|
|
goto restart;
|
|
}
|
|
#line 7039 "Zend/zend_language_scanner.c"
|
|
yy779:
|
|
YYDEBUG(779, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy778;
|
|
yy780:
|
|
YYDEBUG(780, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy781:
|
|
YYDEBUG(781, *YYCURSOR);
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy780;
|
|
}
|
|
if (yych == '[') goto yy783;
|
|
if (yych == '}') goto yy783;
|
|
YYDEBUG(782, *YYCURSOR);
|
|
YYCURSOR = YYMARKER;
|
|
goto yy778;
|
|
yy783:
|
|
YYDEBUG(783, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(784, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1558 "Zend/zend_language_scanner.l"
|
|
{
|
|
yyless(yyleng - 1);
|
|
zend_copy_value(zendlval, yytext, yyleng);
|
|
yy_pop_state();
|
|
yy_push_state(ST_IN_SCRIPTING);
|
|
return T_STRING_VARNAME;
|
|
}
|
|
#line 7072 "Zend/zend_language_scanner.c"
|
|
}
|
|
/* *********************************** */
|
|
yyc_ST_NOWDOC:
|
|
YYDEBUG(785, *YYCURSOR);
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(787, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(788, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2239 "Zend/zend_language_scanner.l"
|
|
{
|
|
int newline = 0;
|
|
|
|
zend_heredoc_label *heredoc_label = zend_ptr_stack_top(&SCNG(heredoc_label_stack));
|
|
|
|
if (YYCURSOR > YYLIMIT) {
|
|
return 0;
|
|
}
|
|
|
|
YYCURSOR--;
|
|
|
|
while (YYCURSOR < YYLIMIT) {
|
|
switch (*YYCURSOR++) {
|
|
case '\r':
|
|
if (*YYCURSOR == '\n') {
|
|
YYCURSOR++;
|
|
}
|
|
/* fall through */
|
|
case '\n':
|
|
/* Check for ending label on the next line */
|
|
if (IS_LABEL_START(*YYCURSOR) && heredoc_label->length < YYLIMIT - YYCURSOR && !memcmp(YYCURSOR, heredoc_label->label, heredoc_label->length)) {
|
|
YYCTYPE *end = YYCURSOR + heredoc_label->length;
|
|
|
|
if (*end == ';') {
|
|
end++;
|
|
}
|
|
|
|
if (*end == '\n' || *end == '\r') {
|
|
/* newline before label will be subtracted from returned text, but
|
|
* yyleng/yytext will include it, for zend_highlight/strip, tokenizer, etc. */
|
|
if (YYCURSOR[-2] == '\r' && YYCURSOR[-1] == '\n') {
|
|
newline = 2; /* Windows newline */
|
|
} else {
|
|
newline = 1;
|
|
}
|
|
|
|
CG(increment_lineno) = 1; /* For newline before label */
|
|
BEGIN(ST_END_HEREDOC);
|
|
|
|
goto nowdoc_scan_done;
|
|
}
|
|
}
|
|
/* fall through */
|
|
default:
|
|
continue;
|
|
}
|
|
}
|
|
|
|
nowdoc_scan_done:
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
|
|
zend_copy_value(zendlval, yytext, yyleng - newline);
|
|
HANDLE_NEWLINES(yytext, yyleng - newline);
|
|
return T_ENCAPSED_AND_WHITESPACE;
|
|
}
|
|
#line 7139 "Zend/zend_language_scanner.c"
|
|
/* *********************************** */
|
|
yyc_ST_VAR_OFFSET:
|
|
{
|
|
static const unsigned char yybm[] = {
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
240, 240, 112, 112, 112, 112, 112, 112,
|
|
112, 112, 0, 0, 0, 0, 0, 0,
|
|
0, 80, 80, 80, 80, 80, 80, 16,
|
|
16, 16, 16, 16, 16, 16, 16, 16,
|
|
16, 16, 16, 16, 16, 16, 16, 16,
|
|
16, 16, 16, 0, 0, 0, 0, 16,
|
|
0, 80, 80, 80, 80, 80, 80, 16,
|
|
16, 16, 16, 16, 16, 16, 16, 16,
|
|
16, 16, 16, 16, 16, 16, 16, 16,
|
|
16, 16, 16, 0, 0, 0, 0, 16,
|
|
16, 16, 16, 16, 16, 16, 16, 16,
|
|
16, 16, 16, 16, 16, 16, 16, 16,
|
|
16, 16, 16, 16, 16, 16, 16, 16,
|
|
16, 16, 16, 16, 16, 16, 16, 16,
|
|
16, 16, 16, 16, 16, 16, 16, 16,
|
|
16, 16, 16, 16, 16, 16, 16, 16,
|
|
16, 16, 16, 16, 16, 16, 16, 16,
|
|
16, 16, 16, 16, 16, 16, 16, 16,
|
|
16, 16, 16, 16, 16, 16, 16, 16,
|
|
16, 16, 16, 16, 16, 16, 16, 16,
|
|
16, 16, 16, 16, 16, 16, 16, 16,
|
|
16, 16, 16, 16, 16, 16, 16, 16,
|
|
16, 16, 16, 16, 16, 16, 16, 16,
|
|
16, 16, 16, 16, 16, 16, 16, 16,
|
|
16, 16, 16, 16, 16, 16, 16, 16,
|
|
16, 16, 16, 16, 16, 16, 16, 16,
|
|
};
|
|
YYDEBUG(789, *YYCURSOR);
|
|
YYFILL(3);
|
|
yych = *YYCURSOR;
|
|
if (yych <= '/') {
|
|
if (yych <= ' ') {
|
|
if (yych <= '\f') {
|
|
if (yych <= 0x08) goto yy803;
|
|
if (yych <= '\n') goto yy799;
|
|
goto yy803;
|
|
} else {
|
|
if (yych <= '\r') goto yy799;
|
|
if (yych <= 0x1F) goto yy803;
|
|
goto yy799;
|
|
}
|
|
} else {
|
|
if (yych <= '$') {
|
|
if (yych <= '"') goto yy798;
|
|
if (yych <= '#') goto yy799;
|
|
goto yy794;
|
|
} else {
|
|
if (yych == '\'') goto yy799;
|
|
goto yy798;
|
|
}
|
|
}
|
|
} else {
|
|
if (yych <= '\\') {
|
|
if (yych <= '@') {
|
|
if (yych <= '0') goto yy791;
|
|
if (yych <= '9') goto yy793;
|
|
goto yy798;
|
|
} else {
|
|
if (yych <= 'Z') goto yy801;
|
|
if (yych <= '[') goto yy798;
|
|
goto yy799;
|
|
}
|
|
} else {
|
|
if (yych <= '_') {
|
|
if (yych <= ']') goto yy796;
|
|
if (yych <= '^') goto yy798;
|
|
goto yy801;
|
|
} else {
|
|
if (yych <= '`') goto yy798;
|
|
if (yych <= 'z') goto yy801;
|
|
if (yych <= '~') goto yy798;
|
|
goto yy801;
|
|
}
|
|
}
|
|
}
|
|
yy791:
|
|
YYDEBUG(791, *YYCURSOR);
|
|
yyaccept = 0;
|
|
yych = *(YYMARKER = ++YYCURSOR);
|
|
if (yych <= 'W') {
|
|
if (yych <= '9') {
|
|
if (yych >= '0') goto yy815;
|
|
} else {
|
|
if (yych == 'B') goto yy812;
|
|
}
|
|
} else {
|
|
if (yych <= 'b') {
|
|
if (yych <= 'X') goto yy814;
|
|
if (yych >= 'b') goto yy812;
|
|
} else {
|
|
if (yych == 'x') goto yy814;
|
|
}
|
|
}
|
|
yy792:
|
|
YYDEBUG(792, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1638 "Zend/zend_language_scanner.l"
|
|
{ /* Offset could be treated as a long */
|
|
if (yyleng < MAX_LENGTH_OF_LONG - 1 || (yyleng == MAX_LENGTH_OF_LONG - 1 && strcmp(yytext, long_min_digits) < 0)) {
|
|
ZVAL_LONG(zendlval, ZEND_STRTOL(yytext, NULL, 10));
|
|
} else {
|
|
ZVAL_STRINGL(zendlval, yytext, yyleng);
|
|
}
|
|
return T_NUM_STRING;
|
|
}
|
|
#line 7255 "Zend/zend_language_scanner.c"
|
|
yy793:
|
|
YYDEBUG(793, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy811;
|
|
yy794:
|
|
YYDEBUG(794, *YYCURSOR);
|
|
++YYCURSOR;
|
|
if ((yych = *YYCURSOR) <= '_') {
|
|
if (yych <= '@') goto yy795;
|
|
if (yych <= 'Z') goto yy807;
|
|
if (yych >= '_') goto yy807;
|
|
} else {
|
|
if (yych <= '`') goto yy795;
|
|
if (yych <= 'z') goto yy807;
|
|
if (yych >= 0x7F) goto yy807;
|
|
}
|
|
yy795:
|
|
YYDEBUG(795, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1787 "Zend/zend_language_scanner.l"
|
|
{
|
|
/* Only '[' can be valid, but returning other tokens will allow a more explicit parse error */
|
|
return yytext[0];
|
|
}
|
|
#line 7280 "Zend/zend_language_scanner.c"
|
|
yy796:
|
|
YYDEBUG(796, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(797, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1782 "Zend/zend_language_scanner.l"
|
|
{
|
|
yy_pop_state();
|
|
return ']';
|
|
}
|
|
#line 7291 "Zend/zend_language_scanner.c"
|
|
yy798:
|
|
YYDEBUG(798, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
goto yy795;
|
|
yy799:
|
|
YYDEBUG(799, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(800, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1792 "Zend/zend_language_scanner.l"
|
|
{
|
|
/* Invalid rule to return a more explicit parse error with proper line number */
|
|
yyless(0);
|
|
yy_pop_state();
|
|
ZVAL_NULL(zendlval);
|
|
return T_ENCAPSED_AND_WHITESPACE;
|
|
}
|
|
#line 7309 "Zend/zend_language_scanner.c"
|
|
yy801:
|
|
YYDEBUG(801, *YYCURSOR);
|
|
++YYCURSOR;
|
|
yych = *YYCURSOR;
|
|
goto yy806;
|
|
yy802:
|
|
YYDEBUG(802, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1800 "Zend/zend_language_scanner.l"
|
|
{
|
|
zend_copy_value(zendlval, yytext, yyleng);
|
|
return T_STRING;
|
|
}
|
|
#line 7323 "Zend/zend_language_scanner.c"
|
|
yy803:
|
|
YYDEBUG(803, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYDEBUG(804, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 2296 "Zend/zend_language_scanner.l"
|
|
{
|
|
if (YYCURSOR > YYLIMIT) {
|
|
return 0;
|
|
}
|
|
|
|
zend_error(E_COMPILE_WARNING,"Unexpected character in input: '%c' (ASCII=%d) state=%d", yytext[0], yytext[0], YYSTATE);
|
|
goto restart;
|
|
}
|
|
#line 7338 "Zend/zend_language_scanner.c"
|
|
yy805:
|
|
YYDEBUG(805, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy806:
|
|
YYDEBUG(806, *YYCURSOR);
|
|
if (yybm[0+yych] & 16) {
|
|
goto yy805;
|
|
}
|
|
goto yy802;
|
|
yy807:
|
|
YYDEBUG(807, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(808, *YYCURSOR);
|
|
if (yych <= '^') {
|
|
if (yych <= '9') {
|
|
if (yych >= '0') goto yy807;
|
|
} else {
|
|
if (yych <= '@') goto yy809;
|
|
if (yych <= 'Z') goto yy807;
|
|
}
|
|
} else {
|
|
if (yych <= '`') {
|
|
if (yych <= '_') goto yy807;
|
|
} else {
|
|
if (yych <= 'z') goto yy807;
|
|
if (yych >= 0x7F) goto yy807;
|
|
}
|
|
}
|
|
yy809:
|
|
YYDEBUG(809, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1777 "Zend/zend_language_scanner.l"
|
|
{
|
|
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
|
|
return T_VARIABLE;
|
|
}
|
|
#line 7379 "Zend/zend_language_scanner.c"
|
|
yy810:
|
|
YYDEBUG(810, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
yy811:
|
|
YYDEBUG(811, *YYCURSOR);
|
|
if (yybm[0+yych] & 32) {
|
|
goto yy810;
|
|
}
|
|
goto yy792;
|
|
yy812:
|
|
YYDEBUG(812, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy820;
|
|
}
|
|
yy813:
|
|
YYDEBUG(813, *YYCURSOR);
|
|
YYCURSOR = YYMARKER;
|
|
goto yy792;
|
|
yy814:
|
|
YYDEBUG(814, *YYCURSOR);
|
|
yych = *++YYCURSOR;
|
|
if (yybm[0+yych] & 64) {
|
|
goto yy818;
|
|
}
|
|
goto yy813;
|
|
yy815:
|
|
YYDEBUG(815, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(816, *YYCURSOR);
|
|
if (yych <= '/') goto yy817;
|
|
if (yych <= '9') goto yy815;
|
|
yy817:
|
|
YYDEBUG(817, *YYCURSOR);
|
|
yyleng = YYCURSOR - SCNG(yy_text);
|
|
#line 1647 "Zend/zend_language_scanner.l"
|
|
{ /* Offset must be treated as a string */
|
|
ZVAL_STRINGL(zendlval, yytext, yyleng);
|
|
return T_NUM_STRING;
|
|
}
|
|
#line 7424 "Zend/zend_language_scanner.c"
|
|
yy818:
|
|
YYDEBUG(818, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(819, *YYCURSOR);
|
|
if (yybm[0+yych] & 64) {
|
|
goto yy818;
|
|
}
|
|
goto yy817;
|
|
yy820:
|
|
YYDEBUG(820, *YYCURSOR);
|
|
++YYCURSOR;
|
|
YYFILL(1);
|
|
yych = *YYCURSOR;
|
|
YYDEBUG(821, *YYCURSOR);
|
|
if (yybm[0+yych] & 128) {
|
|
goto yy820;
|
|
}
|
|
goto yy817;
|
|
}
|
|
}
|
|
#line 2305 "Zend/zend_language_scanner.l"
|
|
|
|
}
|