/***********************************************************************1* *2* This software is part of the ast package *3* Copyright (c) 1982-2012 AT&T Intellectual Property *4* and is licensed under the *5* Eclipse Public License, Version 1.0 *6* by AT&T Intellectual Property *7* *8* A copy of the License is available at *9* http://www.eclipse.org/org/documents/epl-v10.html *10* (with md5 checksum b35adb5213ca9657e911e9befb180842) *11* *12* Information and Software Systems Research *13* AT&T Research *14* Florham Park NJ *15* *16* David Korn <[email protected]> *17* *18***********************************************************************/19#pragma prototyped20#include "shell.h"21#include "shlex.h"22#include "FEATURE/options"2324/*25* table of reserved words in shell language26* This list must be in in ascii sorted order27*/2829const Shtable_t shtab_reserved[] =30{31"!", NOTSYM,32"[[", BTESTSYM,33"case", CASESYM,34"do", DOSYM,35"done", DONESYM,36"elif", ELIFSYM,37"else", ELSESYM,38"esac", ESACSYM,39"fi", FISYM,40"for", FORSYM,41"function", FUNCTSYM,42"if", IFSYM,43"in", INSYM,44#if SHOPT_NAMESPACE45"namespace", NSPACESYM,46#endif /* SHOPT_NAMESPACE */47"select", SELECTSYM,48"then", THENSYM,49"time", TIMESYM,50"until", UNTILSYM,51"while", WHILESYM,52"{", LBRACE,53"}", RBRACE,54"", 0,55};5657const char e_unexpected[] = "unexpected";58const char e_unmatched[] = "unmatched";59const char e_endoffile[] = "end of file";60const char e_newline[] = "newline";61626364