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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? scan.l

?? PostgreSQL 8.1.4的源碼 適用于Linux下的開源數(shù)據(jù)庫系統(tǒng)
?? L
?? 第 1 頁 / 共 2 頁
字號(hào):
%{/*------------------------------------------------------------------------- * * 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('\'');

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品成人在线| 亚洲一区二区中文在线| 色哟哟精品一区| 蜜臀av性久久久久蜜臀aⅴ流畅| 欧美r级在线观看| 91欧美一区二区| 蜜桃久久久久久久| 亚洲成人自拍一区| 国产精品毛片高清在线完整版 | 欧美色中文字幕| 国产一区二区三区蝌蚪| 午夜视频在线观看一区二区三区| 国产欧美日韩不卡| 日韩欧美一区二区免费| 欧美优质美女网站| av不卡一区二区三区| 国模无码大尺度一区二区三区| 亚洲综合色区另类av| 中文字幕精品一区二区三区精品| 日韩欧美亚洲国产精品字幕久久久| 色综合久久综合中文综合网| 国产成人综合亚洲网站| 麻豆免费看一区二区三区| 婷婷综合在线观看| 日韩视频在线永久播放| 捆绑紧缚一区二区三区视频| 精品国产露脸精彩对白| 欧美影片第一页| 亚洲午夜三级在线| 亚洲视频在线观看三级| 国产清纯美女被跳蛋高潮一区二区久久w| 欧美三级电影精品| 一道本成人在线| 99久久精品国产精品久久| 国产mv日韩mv欧美| 国产精品一区二区久久精品爱涩| 日韩av电影免费观看高清完整版 | 67194成人在线观看| 日本高清无吗v一区| 97国产一区二区| 99re热视频这里只精品| 91麻豆国产自产在线观看| 99久久伊人精品| 亚洲精品v日韩精品| 亚洲欧洲三级电影| 久久精品国产久精国产| 免费人成精品欧美精品| www.日本不卡| 成人免费黄色大片| 99免费精品视频| 色婷婷综合五月| 欧美无人高清视频在线观看| 欧美三级韩国三级日本三斤| 欧美色倩网站大全免费| 精品视频1区2区| 91精品国产综合久久精品麻豆| 6080午夜不卡| 精品第一国产综合精品aⅴ| 久久综合久久鬼色| 国产精品三级av| 亚洲欧美日韩中文播放 | 国产一区欧美二区| 国产在线精品一区在线观看麻豆| 国产精品中文字幕日韩精品 | 日本一区二区三区四区| 综合色天天鬼久久鬼色| 亚洲高清视频中文字幕| 麻豆精品一区二区综合av| 国产精品一区在线观看乱码| 成人免费的视频| 欧美性大战久久久久久久| 91精品国产色综合久久不卡蜜臀| 久久亚洲一级片| 亚洲素人一区二区| 日本va欧美va欧美va精品| 国产尤物一区二区| 91黄色免费网站| 2017欧美狠狠色| 亚洲精品国久久99热| 日本人妖一区二区| www.亚洲国产| 精品少妇一区二区三区免费观看| 国产精品素人视频| 亚洲国产精品精华液网站| 久久成人麻豆午夜电影| 色琪琪一区二区三区亚洲区| 欧美成人艳星乳罩| 亚洲美女视频一区| 激情综合色综合久久综合| aaa国产一区| 精品国产91九色蝌蚪| 樱花草国产18久久久久| 国产毛片一区二区| 欧美日韩高清在线播放| 国产精品久久久久久亚洲伦| 欧美aaaaaa午夜精品| 91网页版在线| 久久综合视频网| 亚洲超丰满肉感bbw| 国产91露脸合集magnet| 欧美一区二区三区在线观看视频 | 午夜精品影院在线观看| 国产精品69久久久久水密桃| 欧美人妖巨大在线| 国产精品伦理在线| 国产精品2024| 欧美精品一区二区蜜臀亚洲| 亚洲一二三区在线观看| 成人毛片老司机大片| 日韩视频在线一区二区| 视频一区中文字幕| 在线精品视频免费观看| 国产精品午夜电影| 国产一区二区不卡老阿姨| 在线电影欧美成精品| 亚洲综合激情网| 91网站在线播放| 中文幕一区二区三区久久蜜桃| 久久精品久久99精品久久| 欧美日韩高清在线播放| 伊人开心综合网| 97成人超碰视| 自拍偷拍国产精品| 99久久777色| 中文字幕制服丝袜成人av| 国产成人综合网| 国产欧美一区二区三区网站| 国内精品嫩模私拍在线| 日韩美女一区二区三区| 视频一区中文字幕国产| 69久久99精品久久久久婷婷 | 26uuu久久天堂性欧美| 另类人妖一区二区av| 精品国产乱码久久久久久久久 | 欧美日韩高清在线| 视频一区二区国产| 91精品国产综合久久精品性色| 亚洲电影视频在线| 精品视频在线看| 午夜精品福利一区二区三区蜜桃| 在线看不卡av| 日韩在线卡一卡二| 日韩一级免费观看| 久久91精品国产91久久小草| 久久综合久久99| 成人黄色av电影| 亚洲色图色小说| 色婷婷综合久色| 国产亚洲1区2区3区| 国产精品99久久久久久有的能看| 精品对白一区国产伦| 国产一区二区三区高清播放| 99久久免费精品高清特色大片| 综合在线观看色| 欧美日韩高清一区二区| 午夜视频一区二区三区| 99久久精品国产一区| 成人欧美一区二区三区在线播放| 99re热这里只有精品视频| 亚洲欧美激情插| 欧美人xxxx| 午夜在线电影亚洲一区| 欧美不卡一二三| 成人中文字幕电影| 1024成人网色www| 欧美日韩在线播放三区四区| 亚洲成a天堂v人片| 久久久一区二区三区捆绑**| 青青草伊人久久| 亚洲国产精品成人久久综合一区| 一本大道久久a久久精品综合| 一区二区三区不卡在线观看| 日韩视频国产视频| 国产电影精品久久禁18| 亚洲婷婷综合色高清在线| 91久久精品一区二区三| 蜜桃一区二区三区在线| 中文字幕欧美激情| 在线亚洲免费视频| 狠狠色2019综合网| 国产精品毛片久久久久久| 5月丁香婷婷综合| 国内精品国产成人国产三级粉色 | 国产精品一二三四| 亚洲视频一区在线观看| 欧美不卡视频一区| 99免费精品视频| 久久国产精品无码网站| 久久免费偷拍视频| 欧美色综合网站| 成人一级视频在线观看| 一区二区三区在线高清| 久久婷婷国产综合精品青草 | 亚洲成人av在线电影| 日韩欧美亚洲一区二区| 欧美亚洲精品一区| 成人av在线网站| 蜜桃一区二区三区在线观看| 一区二区在线观看免费| 精品欧美一区二区久久|