亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? scan.l

?? PostgreSQL 8.1.4的源碼 適用于Linux下的開源數據庫系統
?? L
?? 第 1 頁 / 共 2 頁
字號:
%{/*------------------------------------------------------------------------- * * scan.l *	  lexical scanner for PostgreSQL * * NOTE NOTE NOTE: * * The rules in this file must be kept in sync with psql's lexer!!! * * The rules are designed so that the scanner never has to backtrack, * in the sense that there is always a rule that can match the input * consumed so far (the rule action may internally throw back some input * with yyless(), however).  As explained in the flex manual, this makes * for a useful speed increase --- about a third faster than a plain -CF * lexer, in simple testing.  The extra complexity is mostly in the rules * for handling float numbers and continued string literals.  If you change * the lexical rules, verify that you haven't broken the no-backtrack * property by running flex with the "-b" option and checking that the * resulting "lex.backup" file says that no backing up is needed. * * * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION *	  $PostgreSQL: pgsql/src/backend/parser/scan.l,v 1.128.2.1 2006/05/21 20:11:02 tgl Exp $ * *------------------------------------------------------------------------- */#include "postgres.h"#include <ctype.h>#include <unistd.h>#include "parser/gramparse.h"#include "parser/keywords.h"/* Not needed now that this file is compiled as part of gram.y *//* #include "parser/parse.h" */#include "parser/scansup.h"#include "mb/pg_wchar.h"/* Avoid exit() on fatal scanner errors (a bit ugly -- see yy_fatal_error) */#undef fprintf#define fprintf(file, fmt, msg)  ereport(ERROR, (errmsg_internal("%s", msg)))extern YYSTYPE yylval;static int		xcdepth = 0;	/* depth of nesting in slash-star comments */static char    *dolqstart;      /* current $foo$ quote start string *//* * GUC variables.  This is a DIRECT violation of the warning given at the * head of gram.y, ie flex/bison code must not depend on any GUC variables; * as such, changing their values can induce very unintuitive behavior. * But we shall have to live with it as a short-term thing until the switch * to SQL-standard string syntax is complete. */BackslashQuoteType backslash_quote = BACKSLASH_QUOTE_SAFE_ENCODING;bool			escape_string_warning = true;static bool		warn_on_first_escape;/* * literalbuf is used to accumulate literal values when multiple rules * are needed to parse a single literal.  Call startlit to reset buffer * to empty, addlit to add text.  Note that the buffer is palloc'd and * starts life afresh on every parse cycle. */static char	   *literalbuf;		/* expandable buffer */static int		literallen;		/* actual current length */static int		literalalloc;	/* current allocated buffer size */#define startlit()  (literalbuf[0] = '\0', literallen = 0)static void addlit(char *ytext, int yleng);static void addlitchar(unsigned char ychar);static char *litbufdup(void);static int	pg_err_position(void);static void check_escape_warning(void);/* * When we parse a token that requires multiple lexer rules to process, * we set token_start to point at the true start of the token, for use * by yyerror().  yytext will point at just the text consumed by the last * rule, so it's not very helpful (e.g., it might contain just the last * quote mark of a quoted identifier).  But to avoid cluttering every rule * with setting token_start, we allow token_start = NULL to denote that * it's okay to use yytext. */static char	   *token_start;/* Handles to the buffer that the lexer uses internally */static YY_BUFFER_STATE scanbufhandle;static char *scanbuf;unsigned char unescape_single_char(unsigned char c);%}%option 8bit%option never-interactive%option nodefault%option nounput%option noyywrap%option prefix="base_yy"/* * OK, here is a short description of lex/flex rules behavior. * The longest pattern which matches an input string is always chosen. * For equal-length patterns, the first occurring in the rules list is chosen. * INITIAL is the starting state, to which all non-conditional rules apply. * Exclusive states change parsing rules while the state is active.  When in * an exclusive state, only those rules defined for that state apply. * * We use exclusive states for quoted strings, extended comments, * and to eliminate parsing troubles for numeric strings. * Exclusive states: *  <xb> bit string literal *  <xc> extended C-style comments *  <xd> delimited identifiers (double-quoted identifiers) *  <xh> hexadecimal numeric string *  <xq> quoted strings *  <xdolq> $foo$ quoted strings */%x xb%x xc%x xd%x xh%x xq%x xdolq/* * In order to make the world safe for Windows and Mac clients as well as * Unix ones, we accept either \n or \r as a newline.  A DOS-style \r\n * sequence will be seen as two successive newlines, but that doesn't cause * any problems.  Comments that start with -- and extend to the next * newline are treated as equivalent to a single whitespace character. * * NOTE a fine point: if there is no newline following --, we will absorb * everything to the end of the input as a comment.  This is correct.  Older * versions of Postgres failed to recognize -- as a comment if the input * did not end with a newline. * * XXX perhaps \f (formfeed) should be treated as a newline as well? */space			[ \t\n\r\f]horiz_space		[ \t\f]newline			[\n\r]non_newline		[^\n\r]comment			("--"{non_newline}*)whitespace		({space}+|{comment})/* * SQL requires at least one newline in the whitespace separating * string literals that are to be concatenated.  Silly, but who are we * to argue?  Note that {whitespace_with_newline} should not have * after * it, whereas {whitespace} should generally have a * after it... */special_whitespace		({space}+|{comment}{newline})horiz_whitespace		({horiz_space}|{comment})whitespace_with_newline	({horiz_whitespace}*{newline}{special_whitespace}*)/* * To ensure that {quotecontinue} can be scanned without having to back up * if the full pattern isn't matched, we include trailing whitespace in * {quotestop}.  This matches all cases where {quotecontinue} fails to match, * except for {quote} followed by whitespace and just one "-" (not two, * which would start a {comment}).  To cover that we have {quotefail}. * The actions for {quotestop} and {quotefail} must throw back characters * beyond the quote proper. */quote			'quotestop		{quote}{whitespace}*quotecontinue	{quote}{whitespace_with_newline}{quote}quotefail		{quote}{whitespace}*"-"/* Bit string * It is tempting to scan the string for only those characters * which are allowed. However, this leads to silently swallowed * characters if illegal characters are included in the string. * For example, if xbinside is [01] then B'ABCD' is interpreted * as a zero-length string, and the ABCD' is lost! * Better to pass the string forward and let the input routines * validate the contents. */xbstart			[bB]{quote}xbinside		[^']*/* Hexadecimal number */xhstart			[xX]{quote}xhinside		[^']*/* National character */xnstart			[nN]{quote}/* Quoted string that allows backslash escapes */xestart			[eE]{quote}/* Extended quote * xqdouble implements embedded quote, '''' */xqstart			{quote}xqdouble		{quote}{quote}xqinside		[^\\']+xqescape		[\\][^0-7]xqoctesc		[\\][0-7]{1,3}xqhexesc		[\\]x[0-9A-Fa-f]{1,2}/* $foo$ style quotes ("dollar quoting") * The quoted string starts with $foo$ where "foo" is an optional string * in the form of an identifier, except that it may not contain "$",  * and extends to the first occurrence of an identical string.   * There is *no* processing of the quoted text. * * {dolqfailed} is an error rule to avoid scanner backup when {dolqdelim} * fails to match its trailing "$". */dolq_start		[A-Za-z\200-\377_]dolq_cont		[A-Za-z\200-\377_0-9]dolqdelim		\$({dolq_start}{dolq_cont}*)?\$dolqfailed		\${dolq_start}{dolq_cont}*dolqinside		[^$]+/* Double quote * Allows embedded spaces and other special characters into identifiers. */dquote			\"xdstart			{dquote}xdstop			{dquote}xddouble		{dquote}{dquote}xdinside		[^"]+/* C-style comments * * The "extended comment" syntax closely resembles allowable operator syntax. * The tricky part here is to get lex to recognize a string starting with * slash-star as a comment, when interpreting it as an operator would produce * a longer match --- remember lex will prefer a longer match!  Also, if we * have something like plus-slash-star, lex will think this is a 3-character * operator whereas we want to see it as a + operator and a comment start. * The solution is two-fold: * 1. append {op_chars}* to xcstart so that it matches as much text as *    {operator} would. Then the tie-breaker (first matching rule of same *    length) ensures xcstart wins.  We put back the extra stuff with yyless() *    in case it contains a star-slash that should terminate the comment. * 2. In the operator rule, check for slash-star within the operator, and *    if found throw it back with yyless().  This handles the plus-slash-star *    problem. * Dash-dash comments have similar interactions with the operator rule. */xcstart			\/\*{op_chars}*xcstop			\*+\/xcinside		[^*/]+digit			[0-9]ident_start		[A-Za-z\200-\377_]ident_cont		[A-Za-z\200-\377_0-9\$]identifier		{ident_start}{ident_cont}*typecast		"::"/* * "self" is the set of chars that should be returned as single-character * tokens.  "op_chars" is the set of chars that can make up "Op" tokens, * which can be one or more characters long (but if a single-char token * appears in the "self" set, it is not to be returned as an Op).  Note * that the sets overlap, but each has some chars that are not in the other. * * If you change either set, adjust the character lists appearing in the * rule for "operator"! */self			[,()\[\].;\:\+\-\*\/\%\^\<\>\=]op_chars		[\~\!\@\#\^\&\|\`\?\+\-\*\/\%\<\>\=]operator		{op_chars}+/* we no longer allow unary minus in numbers.  * instead we pass it separately to parser. there it gets * coerced via doNegate() -- Leon aug 20 1999 * * {realfail1} and {realfail2} are added to prevent the need for scanner * backup when the {real} rule fails to match completely. */integer			{digit}+decimal			(({digit}*\.{digit}+)|({digit}+\.{digit}*))real			({integer}|{decimal})[Ee][-+]?{digit}+realfail1		({integer}|{decimal})[Ee]realfail2		({integer}|{decimal})[Ee][-+]param			\${integer}other			./* * Dollar quoted strings are totally opaque, and no escaping is done on them. * Other quoted strings must allow some special characters such as single-quote *  and newline. * Embedded single-quotes are implemented both in the SQL standard *  style of two adjacent single quotes "''" and in the Postgres/Java style *  of escaped-quote "\'". * Other embedded escaped characters are matched explicitly and the leading *  backslash is dropped from the string. * Note that xcstart must appear before operator, as explained above! *  Also whitespace (comment) must appear before operator. */%%%{					/* code to execute during start of each call of yylex() */					token_start = NULL;%}{whitespace}	{					/* ignore */				}{xcstart}		{					token_start = yytext;					xcdepth = 0;					BEGIN(xc);					/* Put back any characters past slash-star; see above */					yyless(2);				}<xc>{xcstart}	{					xcdepth++;					/* Put back any characters past slash-star; see above */					yyless(2);				}<xc>{xcstop}	{					if (xcdepth <= 0)					{						BEGIN(INITIAL);						/* reset token_start for next token */						token_start = NULL;					}					else						xcdepth--;				}<xc>{xcinside}	{					/* ignore */				}<xc>{op_chars}	{					/* ignore */				}<xc>\*+			{					/* ignore */				}<xc><<EOF>>		{ yyerror("unterminated /* comment"); }{xbstart}		{					/* Binary bit type.					 * At some point we should simply pass the string					 * forward to the parser and label it there.					 * In the meantime, place a leading "b" on the string					 * to mark it for the input routine as a binary string.					 */					token_start = yytext;					BEGIN(xb);					startlit();					addlitchar('b');				}<xb>{quotestop}	|<xb>{quotefail} {					yyless(1);					BEGIN(INITIAL);					yylval.str = litbufdup();					return BCONST;				}<xh>{xhinside}	|<xb>{xbinside}	{					addlit(yytext, yyleng);				}<xh>{quotecontinue}	|<xb>{quotecontinue}	{					/* ignore */				}<xb><<EOF>>		{ yyerror("unterminated bit string literal"); }{xhstart}		{					/* Hexadecimal bit type.					 * At some point we should simply pass the string					 * forward to the parser and label it there.					 * In the meantime, place a leading "x" on the string					 * to mark it for the input routine as a hex string.					 */					token_start = yytext;					BEGIN(xh);					startlit();					addlitchar('x');				}<xh>{quotestop}	|<xh>{quotefail} {					yyless(1);					BEGIN(INITIAL);					yylval.str = litbufdup();					return XCONST;				}<xh><<EOF>>		{ yyerror("unterminated hexadecimal string literal"); }{xnstart}		{					/* National character.					 * We will pass this along as a normal character string,					 * but preceded with an internally-generated "NCHAR".					 */					const ScanKeyword *keyword;					yyless(1);				/* eat only 'n' this time */					/* nchar had better be a keyword! */					keyword = ScanKeywordLookup("nchar");					Assert(keyword != NULL);					yylval.keyword = keyword->name;					return keyword->value;				}{xqstart}		{					warn_on_first_escape = true;					token_start = yytext;					BEGIN(xq);					startlit();				}{xestart}		{					warn_on_first_escape = false;					token_start = yytext;					BEGIN(xq);					startlit();				}<xq>{quotestop}	|<xq>{quotefail} {					yyless(1);					BEGIN(INITIAL);					yylval.str = litbufdup();					return SCONST;				}<xq>{xqdouble}  {					addlitchar('\'');

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产在线精品免费| 国产日韩成人精品| 成人av电影在线| 丁香五精品蜜臀久久久久99网站| 色综合天天综合网国产成人综合天| 亚洲午夜免费视频| 日韩区在线观看| 午夜成人免费视频| 91精品中文字幕一区二区三区| 亚洲一区二区三区四区在线 | 亚洲欧美日韩人成在线播放| 99国内精品久久| 18成人在线观看| 亚洲精品少妇30p| 久久免费看少妇高潮| 日韩亚洲欧美在线| 欧美视频一区在线| 91精品国产麻豆国产自产在线 | 95精品视频在线| 亚洲蜜臀av乱码久久精品| 日韩一级二级三级| 日韩精品综合一本久道在线视频| 久久99日本精品| 一区二区三区电影在线播| 欧美日本在线播放| 国产一二精品视频| 亚洲激情五月婷婷| 久久久久国产一区二区三区四区| 4438x亚洲最大成人网| 黄色日韩三级电影| 成人一区在线观看| 国产真实乱对白精彩久久| 国内精品国产成人国产三级粉色| 国产精品第五页| 亚洲综合区在线| 精品久久久久久久久久久久久久久久久 | 精品国产乱码久久久久久影片| 日韩一区二区电影网| 91精品国产欧美日韩| wwwwxxxxx欧美| 国产精品另类一区| 亚洲国产日韩一区二区| 久88久久88久久久| 99在线精品免费| 欧美一区二区啪啪| 国产精品网站一区| 亚洲动漫第一页| 国产精品一区二区x88av| 91色视频在线| 日韩欧美一级二级三级久久久| 国产三级精品三级在线专区| 亚洲激情五月婷婷| 韩国中文字幕2020精品| 91麻豆国产香蕉久久精品| 欧美男人的天堂一二区| 国产亚洲人成网站| 亚洲一区二区三区中文字幕| 精品在线亚洲视频| 欧美午夜片在线观看| 国产亚洲欧美一区在线观看| 亚洲一卡二卡三卡四卡无卡久久| 日本sm残虐另类| 91欧美激情一区二区三区成人| 日韩一区二区在线看| 亚洲精品成人悠悠色影视| 国内外成人在线| 欧美精品丝袜中出| 综合电影一区二区三区 | 9久草视频在线视频精品| 日韩一区二区三区在线| 亚洲精品高清视频在线观看| 国产高清亚洲一区| 日韩写真欧美这视频| 亚洲永久精品大片| 成人精品视频一区二区三区| 日韩免费高清视频| 图片区小说区区亚洲影院| 91网站最新地址| 国产欧美久久久精品影院| 免费美女久久99| 欧美色视频一区| 国产精品色哟哟网站| 国产一区二区精品久久| 日韩一区二区中文字幕| 五月天丁香久久| 欧美三级资源在线| 一二三四社区欧美黄| 99在线视频精品| 国产精品午夜在线| 国产麻豆精品在线| 久久亚洲精精品中文字幕早川悠里| 日韩中文字幕麻豆| 欧美日韩一区二区在线视频| 一区二区三区四区在线播放| 91麻豆国产福利在线观看| 最新不卡av在线| 99re视频精品| 亚洲三级在线免费| 99久久精品国产一区| 一区二区中文字幕在线| 成人av在线网站| 国产精品福利影院| 成人免费高清视频在线观看| 欧美国产乱子伦| av中文字幕在线不卡| 亚洲视频1区2区| 91麻豆123| 亚洲午夜久久久久久久久电影院| 色就色 综合激情| 亚洲精品国产精华液| 欧美日韩中文另类| 日韩精品亚洲一区| 欧美大片日本大片免费观看| 国产一区二区电影| 欧美国产一区二区| 一本色道久久加勒比精品 | 国产一区二区伦理片| 久久一夜天堂av一区二区三区| 国产在线播精品第三| 欧美经典三级视频一区二区三区| 国产91富婆露脸刺激对白| 国产精品丝袜91| 色94色欧美sute亚洲线路一ni | 美美哒免费高清在线观看视频一区二区| 制服丝袜av成人在线看| 久久97超碰国产精品超碰| 国产三级欧美三级日产三级99| 国产aⅴ精品一区二区三区色成熟| 中文字幕亚洲成人| 欧美午夜电影在线播放| 日韩激情一区二区| 久久久另类综合| 91丨九色porny丨蝌蚪| 亚洲午夜一二三区视频| 国内精品久久久久影院一蜜桃| 欧美日韩中字一区| 久久精品国产色蜜蜜麻豆| 久久一区二区三区国产精品| www.欧美日韩| 午夜久久久影院| 欧美sm美女调教| 91丨九色丨蝌蚪丨老版| 日韩国产欧美在线视频| 久久精品欧美一区二区三区麻豆| 色噜噜狠狠色综合中国| 美女视频免费一区| 国产精品超碰97尤物18| 欧美猛男男办公室激情| 国产伦精一区二区三区| 一区二区视频在线| 日韩小视频在线观看专区| a4yy欧美一区二区三区| 老司机精品视频导航| 亚洲欧美另类在线| 日韩精品在线一区二区| 91丝袜呻吟高潮美腿白嫩在线观看| 午夜精品久久久久| 国产精品传媒入口麻豆| 日韩欧美在线不卡| 91老师国产黑色丝袜在线| 蜜臀av国产精品久久久久| 亚洲欧洲制服丝袜| 久久久久国产精品厨房| 欧美日韩精品欧美日韩精品一| 成人午夜在线免费| 久久成人久久爱| 亚洲国产日韩一区二区| 中文子幕无线码一区tr| 欧美成人伊人久久综合网| 在线精品视频小说1| 国产成人精品影视| 天堂一区二区在线免费观看| 亚洲婷婷综合色高清在线| 26uuu久久天堂性欧美| 欧美午夜电影一区| 99久久国产免费看| 国产精品一品视频| 美女视频黄a大片欧美| 亚洲已满18点击进入久久| 国产精品另类一区| 久久亚洲综合av| 精品国产免费一区二区三区四区| 欧美日韩一区二区在线观看视频 | eeuss国产一区二区三区| 精品一区在线看| 亚洲va韩国va欧美va| 一区二区三区在线观看欧美| 国产精品免费视频观看| 国产日韩欧美麻豆| 精品国产免费人成在线观看| 欧美一区欧美二区| 欧美精品自拍偷拍动漫精品| 91久久精品日日躁夜夜躁欧美| 成人一区二区三区视频在线观看 | 91精品国产综合久久精品性色| 在线免费观看成人短视频| 成人h精品动漫一区二区三区| 国产一区在线不卡| 国产专区欧美精品| 精品亚洲成a人在线观看 |