📄 php_res.gpf
字号:
%{#include "strmake.h"#define START_VARIABLE 1001#define START_WORD 2001#define START_SHARP 3001#define START_YACC 4001#define IS_RESERVED_WORD(a) ((a) >= START_WORD)#define IS_RESERVED_VARIABLE(a) ((a) >= START_VARIABLE && (a) < START_WORD)#define IS_RESERVED_SHARP(a) ((a) >= START_SHARP && (a) < START_YACC)#define IS_RESERVED_YACC(a) ((a) >= START_YACC)#define PHP___FILE__ 2001#define PHP___LINE__ 2002#define PHP___FUNCTION__ 2003#define PHP___CLASS__ 2004#define PHP_AND 2005#define PHP_ARRAY 2006#define PHP_AS 2007#define PHP_BREAK 2008#define PHP_CASE 2009#define PHP_CFUNCTION 2010#define PHP_CLASS 2011#define PHP_CONST 2012#define PHP_CONTINUE 2013#define PHP_DECLARE 2014#define PHP_DEFAULT 2015#define PHP_DEFINE 2016#define PHP_DO 2017#define PHP_DIE 2018#define PHP_EACH 2019#define PHP_ECHO 2020#define PHP_ELSE 2021#define PHP_ELSEIF 2022#define PHP_EMPTY 2023#define PHP_ENDDECLARE 2024#define PHP_ENDFOR 2025#define PHP_ENDFOREACH 2026#define PHP_ENDIF 2027#define PHP_ENDWHILE 2028#define PHP_ENDSWITCH 2029#define PHP_EVAL 2030#define PHP_EXIT 2031#define PHP_FAILURE 2032#define PHP_FALSE 2033#define PHP_FOR 2034#define PHP_FOREACH 2035#define PHP_FUNCTION 2036#define PHP_GLOBAL 2037#define PHP_HEADER 2038#define PHP_LIST 2039#define PHP_IF 2040#define PHP_INCLUDE 2041#define PHP_INCLUDE_ONCE 2042#define PHP_IS_ARRAY 2043#define PHP_IS_SET 2044#define PHP_NEW 2045#define PHP_OLD_FUNCTION 2046#define PHP_OR 2047#define PHP_PRINT 2048#define PHP_PRINTF 2049#define PHP_RETURN 2050#define PHP_REQUIRE 2051#define PHP_REQUIRE_ONCE 2052#define PHP_SETCOOKIE 2053#define PHP_SUCCESS 2054#define PHP_STATIC 2055#define PHP_SWITCH 2056#define PHP_TRUE 2057#define PHP_VAR 2058#define PHP_WHILE 2059#define PHP_UNSET 2060#define PHP_XOR 2061#define PHP_GLOBALS 1001#define PHP_HTTP_COOKIE_VARS 1002#define PHP_HTTP_ENV_VARS 1003#define PHP_HTTP_GET_VARS 1004#define PHP_HTTP_POST_FILES 1005#define PHP_HTTP_POST_VARS 1006#define PHP_HTTP_SERVER_VARS 1007#define PHP_HTTP_SESSION_VARS 1008#define PHP__COOKIE 1009#define PHP__ENV 1010#define PHP__FILES 1011#define PHP__GET 1012#define PHP__POST 1013#define PHP__REQUEST 1014#define PHP__SERVER 1015#define PHP__SESSION 1016%}struct keyword { char *name; int token; }%%__FILE__, PHP___FILE____LINE__, PHP___LINE____FUNCTION__, PHP___FUNCTION____CLASS__, PHP___CLASS__and, PHP_ANDAND, PHP_ANDAnd, PHP_ANDarray, PHP_ARRAYARRAY, PHP_ARRAYArray, PHP_ARRAYas, PHP_ASAS, PHP_ASAs, PHP_ASbreak, PHP_BREAKBREAK, PHP_BREAKBreak, PHP_BREAKcase, PHP_CASECASE, PHP_CASECase, PHP_CASEcfunction, PHP_CFUNCTIONCFUNCTION, PHP_CFUNCTIONCfunction, PHP_CFUNCTIONCFunction, PHP_CFUNCTIONclass, PHP_CLASSCLASS, PHP_CLASSClass, PHP_CLASSconst, PHP_CONSTCONST, PHP_CONSTConst, PHP_CONSTcontinue, PHP_CONTINUECONTINUE, PHP_CONTINUEContinue, PHP_CONTINUEdeclare, PHP_DECLAREDECLARE, PHP_DECLAREDeclare, PHP_DECLAREdefault, PHP_DEFAULTDEFAULT, PHP_DEFAULTDefault, PHP_DEFAULTdefine, PHP_DEFINEDEFINE, PHP_DEFINEDefine, PHP_DEFINEdo, PHP_DODO, PHP_DODo, PHP_DOdie, PHP_DIEDIE, PHP_DIEDie, PHP_DIEeach, PHP_EACHEACH, PHP_EACHEach, PHP_EACHecho, PHP_ECHOECHO, PHP_ECHOEcho, PHP_ECHOelse, PHP_ELSEELSE, PHP_ELSEElse, PHP_ELSEelseif, PHP_ELSEIFELSEIF, PHP_ELSEIFElseif, PHP_ELSEIFElseIf, PHP_ELSEIFempty, PHP_EMPTYEMPTY, PHP_EMPTYEmpty, PHP_EMPTYenddeclare, PHP_ENDDECLAREENDDECLARE, PHP_ENDDECLAREEnddeclare, PHP_ENDDECLAREEndDeclare, PHP_ENDDECLAREendfor, PHP_ENDFORENDFOR, PHP_ENDFOREndfor, PHP_ENDFOREndFor, PHP_ENDFORendforeach, PHP_ENDFOREACHENDFOREACH, PHP_ENDFOREACHEndforeach, PHP_ENDFOREACHEndForeach, PHP_ENDFOREACHendif, PHP_ENDIFENDIF, PHP_ENDIFEndif, PHP_ENDIFEndIf, PHP_ENDIFendwhile, PHP_ENDWHILEENDWHILE, PHP_ENDWHILEEndwhile, PHP_ENDWHILEEndWhile, PHP_ENDWHILEendswitch, PHP_ENDSWITCHENDSWITCH, PHP_ENDSWITCHEndswitch, PHP_ENDSWITCHEndSwitch, PHP_ENDSWITCHeval, PHP_EVALEVAL, PHP_EVALEval, PHP_EVALexit, PHP_EXITEXIT, PHP_EXITExit, PHP_EXITfailure, PHP_FAILUREFAILURE, PHP_FAILUREFailure, PHP_FAILUREfalse, PHP_FALSEFALSE, PHP_FALSEFalse, PHP_FALSEfor, PHP_FORFOR, PHP_FORFor, PHP_FORforeach, PHP_FOREACHFOREACH, PHP_FOREACHForeach, PHP_FOREACHForEach, PHP_FOREACHfunction, PHP_FUNCTIONFUNCTION, PHP_FUNCTIONFunction, PHP_FUNCTIONglobal, PHP_GLOBALGLOBAL, PHP_GLOBALGlobal, PHP_GLOBALheader, PHP_HEADERHEADER, PHP_HEADERHeader, PHP_HEADERlist, PHP_LISTLIST, PHP_LISTList, PHP_LISTif, PHP_IFIF, PHP_IFIf, PHP_IFinclude, PHP_INCLUDEINCLUDE, PHP_INCLUDEInclude, PHP_INCLUDEinclude_once, PHP_INCLUDE_ONCEINCLUDE_ONCE, PHP_INCLUDE_ONCEInclude_once, PHP_INCLUDE_ONCEInclude_Once, PHP_INCLUDE_ONCEis_array, PHP_IS_ARRAYIS_ARRAY, PHP_IS_ARRAYIs_array, PHP_IS_ARRAYIs_Array, PHP_IS_ARRAYis_set, PHP_IS_SETIS_SET, PHP_IS_SETIs_set, PHP_IS_SETIs_Set, PHP_IS_SETnew, PHP_NEWNEW, PHP_NEWNew, PHP_NEWold_function, PHP_OLD_FUNCTIONOLD_FUNCTION, PHP_OLD_FUNCTIONOld_function, PHP_OLD_FUNCTIONOld_Function, PHP_OLD_FUNCTIONor, PHP_OROR, PHP_OROr, PHP_ORprint, PHP_PRINTPRINT, PHP_PRINTPrint, PHP_PRINTprintf, PHP_PRINTFPRINTF, PHP_PRINTFPrintf, PHP_PRINTFreturn, PHP_RETURNRETURN, PHP_RETURNReturn, PHP_RETURNrequire, PHP_REQUIREREQUIRE, PHP_REQUIRERequire, PHP_REQUIRErequire_once, PHP_REQUIRE_ONCEREQUIRE_ONCE, PHP_REQUIRE_ONCERequire_once, PHP_REQUIRE_ONCERequire_Once, PHP_REQUIRE_ONCEsetcookie, PHP_SETCOOKIESETCOOKIE, PHP_SETCOOKIESetcookie, PHP_SETCOOKIESetCookie, PHP_SETCOOKIEsuccess, PHP_SUCCESSSUCCESS, PHP_SUCCESSSuccess, PHP_SUCCESSstatic, PHP_STATICSTATIC, PHP_STATICStatic, PHP_STATICswitch, PHP_SWITCHSWITCH, PHP_SWITCHSwitch, PHP_SWITCHtrue, PHP_TRUETRUE, PHP_TRUETrue, PHP_TRUEvar, PHP_VARVAR, PHP_VARVar, PHP_VARwhile, PHP_WHILEWHILE, PHP_WHILEWhile, PHP_WHILEunset, PHP_UNSETUNSET, PHP_UNSETUnset, PHP_UNSETxor, PHP_XORXOR, PHP_XORXor, PHP_XOR"GLOBALS", PHP_GLOBALS"HTTP_COOKIE_VARS", PHP_HTTP_COOKIE_VARS"HTTP_ENV_VARS", PHP_HTTP_ENV_VARS"HTTP_GET_VARS", PHP_HTTP_GET_VARS"HTTP_POST_FILES", PHP_HTTP_POST_FILES"HTTP_POST_VARS", PHP_HTTP_POST_VARS"HTTP_SERVER_VARS", PHP_HTTP_SERVER_VARS"HTTP_SESSION_VARS", PHP_HTTP_SESSION_VARS"_COOKIE", PHP__COOKIE"_ENV", PHP__ENV"_FILES", PHP__FILES"_GET", PHP__GET"_POST", PHP__POST"_REQUEST", PHP__REQUEST"_SERVER", PHP__SERVER"_SESSION", PHP__SESSION%%int php_reserved_word(const char *, int);intphp_reserved_word(str, len) const char *str; int len;{ struct keyword *keyword; keyword = php_lookup(str, len); return (keyword && IS_RESERVED_WORD(keyword->token)) ? keyword->token : 0;}int php_reserved_variable(const char *, int);intphp_reserved_variable(str, len) const char *str; int len;{ struct keyword *keyword; keyword = php_lookup(str, len); return (keyword && IS_RESERVED_VARIABLE(keyword->token)) ? keyword->token : 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -