lexstates.c revision 1
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* A copy of the License is available at * 1N/A* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) * 1N/A* Information and Software Systems Research * 1N/A* David Korn <dgk@research.att.com> * 1N/A***********************************************************************/ 1N/A * This is the initial state for tokens 1N/A#
endif /* SHOPT_CRNL */ 1N/A#
endif /* SHOPT_NAMESPACE */ 1N/A * This state is for identifiers 1N/A#
endif /* SHOPT_CRNL */ 1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A#
endif /* SHOPT_CRNL */ 1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A * for skipping over '...' 1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A * for skipping over "..." and `...` 1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A * for skipping over ?(...), [...] 1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A * Defines valid expansion characters 1N/A * for skipping over ${...} until modifier 1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A * This state is for $name 1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A * This is used for macro expansion 1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A 0, 0, 0, 0, 0, 0, 0, 0,
1N/A#
endif /* SHOPT_BRACEPAT */ 1N/Aconst char e_lexspace[] =
"line %d: use space or tab to separate operators %c and %c";
1N/Aconst char e_lexsyntax4[] =
"syntax error at line %d: invalid reference list";
1N/Aconst char e_lexwarnvar[] =
"line %d: variable expansion makes arithmetic evaluation less efficient";
1N/Aconst char e_lexnonstandard[] =
"line %d: `&>file' is nonstandard -- interpreted as `>file 2>&1' for profile input only";
1N/Aconst char e_lexusebrace[] =
"line %d: use braces to avoid ambiguities with $id[...]";
1N/Aconst char e_lexquote[] =
"line %d: quote %c to avoid ambiguities";
1N/Aconst char e_lexnested[] =
"line %d: spaces required for nested subshell";
1N/Aconst char e_lexfuture[] =
"line %d: \\ in front of %c reserved for future use";
1N/Aconst char e_lexcharclass[] =
"line %d: '^' as first character in character class not portable";