1N/A/***********************************************************************
1N/A* *
1N/A* This software is part of the ast package *
1N/A* Copyright (c) 1982-2011 AT&T Intellectual Property *
1N/A* and is licensed under the *
1N/A* Common Public License, Version 1.0 *
1N/A* by AT&T Intellectual Property *
1N/A* *
1N/A* A copy of the License is available at *
1N/A* http://www.opensource.org/licenses/cpl1.0.txt *
1N/A* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
1N/A* *
1N/A* Information and Software Systems Research *
1N/A* AT&T Research *
1N/A* Florham Park NJ *
1N/A* *
1N/A* David Korn <dgk@research.att.com> *
1N/A* *
1N/A***********************************************************************/
1N/A#pragma prototyped
1N/A#include "shtable.h"
1N/A#include <shell.h>
1N/A#include "shlex.h"
1N/A#include "FEATURE/options"
1N/A
1N/A/*
1N/A * table of reserved words in shell language
1N/A * This list must be in in ascii sorted order
1N/A */
1N/A
1N/Aconst Shtable_t shtab_reserved[] =
1N/A{
1N/A "!", NOTSYM,
1N/A "[[", BTESTSYM,
1N/A "case", CASESYM,
1N/A "do", DOSYM,
1N/A "done", DONESYM,
1N/A "elif", ELIFSYM,
1N/A "else", ELSESYM,
1N/A "esac", ESACSYM,
1N/A "fi", FISYM,
1N/A "for", FORSYM,
1N/A "function", FUNCTSYM,
1N/A "if", IFSYM,
1N/A "in", INSYM,
1N/A#if SHOPT_NAMESPACE
1N/A "namespace", NSPACESYM,
1N/A#endif /* SHOPT_NAMESPACE */
1N/A "select", SELECTSYM,
1N/A "then", THENSYM,
1N/A "time", TIMESYM,
1N/A "until", UNTILSYM,
1N/A "while", WHILESYM,
1N/A "{", LBRACE,
1N/A "}", RBRACE,
1N/A "", 0,
1N/A};
1N/A
1N/Aconst char e_unexpected[] = "unexpected";
1N/Aconst char e_unmatched[] = "unmatched";
1N/Aconst char e_endoffile[] = "end of file";
1N/Aconst char e_newline[] = "newline";
1N/A