greenplumn keywords 源码

  • 2022-08-18
  • 浏览 (322)

greenplumn keywords 代码

文件路径:/src/interfaces/ecpg/preproc/keywords.c

/*-------------------------------------------------------------------------
 *
 * keywords.c
 *	  lexical token lookup for key words in PostgreSQL
 *
 *
 * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
 * Portions Copyright (c) 1994, Regents of the University of California
 *
 *
 * IDENTIFICATION
 *	  src/interfaces/ecpg/preproc/keywords.c
 *
 *-------------------------------------------------------------------------
 */
#include "postgres_fe.h"

/*
 * This is much trickier than it looks.  We are #include'ing kwlist.h
 * but the token numbers that go into the table are from preproc.h
 * not the backend's gram.h.  Therefore this token table will match
 * the ScanKeywords table supplied from common/keywords.c, including all
 * keywords known to the backend, but it will supply the token numbers used
 * by ecpg's grammar, which is what we need.  The ecpg grammar must
 * define all the same token names the backend does, else we'll get
 * undefined-symbol failures in this compile.
 */

#include "preproc_extern.h"
#include "preproc.h"

#define PG_KEYWORD(kwname, value, category) value,

const uint16 SQLScanKeywordTokens[] = {
#include "parser/kwlist.h"
};

#undef PG_KEYWORD

相关信息

greenplumn 源码目录

相关文章

greenplumn c_keywords 源码

greenplumn c_kwlist 源码

greenplumn descriptor 源码

greenplumn ecpg 源码

greenplumn ecpg_keywords 源码

greenplumn ecpg_kwlist 源码

greenplumn output 源码

greenplumn parser 源码

greenplumn preproc_extern 源码

greenplumn type 源码

0  赞