summaryrefslogtreecommitdiffstats
path: root/Source/cmCommandArgumentParserTokens.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-12-17 13:24:35 (GMT)
committerBrad King <brad.king@kitware.com>2008-12-17 13:24:35 (GMT)
commit625ef26163451686a68b092d672e79c3e2b80e1e (patch)
treecaf361740e62c2e9e727d13f84bb7dc21be59545 /Source/cmCommandArgumentParserTokens.h
parent093cfc22f11ab014abe220e600e2d99c7a356851 (diff)
downloadCMake-625ef26163451686a68b092d672e79c3e2b80e1e.zip
CMake-625ef26163451686a68b092d672e79c3e2b80e1e.tar.gz
CMake-625ef26163451686a68b092d672e79c3e2b80e1e.tar.bz2
ENH: Allow most characters in ENV variable refs
The $ENV{VAR} syntax permits access to environment variables. This teaches CMake to recognize most characters in the VAR name since some environments may have variables with non-C-identifier characters.
Diffstat (limited to 'Source/cmCommandArgumentParserTokens.h')
-rw-r--r--Source/cmCommandArgumentParserTokens.h75
1 files changed, 42 insertions, 33 deletions
diff --git a/Source/cmCommandArgumentParserTokens.h b/Source/cmCommandArgumentParserTokens.h
index 1752e7d..01b101a 100644
--- a/Source/cmCommandArgumentParserTokens.h
+++ b/Source/cmCommandArgumentParserTokens.h
@@ -14,11 +14,12 @@
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
-/* A Bison parser, made by GNU Bison 2.1. */
+/* A Bison parser, made by GNU Bison 2.3. */
-/* Skeleton parser for Yacc-like parsing with Bison, Copyright (C) 1984,
- 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation,
- Inc.
+/* Skeleton interface for Bison's Yacc-like parsers in C
+
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+ Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -35,10 +36,18 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA. */
-/* As a special exception, when this file is copied by Bison into a
- Bison output file, you may use that output file without restriction.
- This special exception was added by the Free Software Foundation
- in version 1.24 of Bison. */
+/* As a special exception, you may create a larger work that contains
+ part or all of the Bison parser skeleton and distribute that work
+ under terms of your choice, so long as that work isn't itself a
+ parser generator using the skeleton or a modified version thereof
+ as a parser skeleton. Alternatively, if you modify or redistribute
+ the parser skeleton itself, you may (at your option) remove this
+ special exception, which will cause the skeleton and the resulting
+ Bison output files to be licensed under the GNU General Public
+ License without this special exception.
+
+ This special exception was added by the Free Software Foundation in
+ version 2.2 of Bison. */
/* Tokens. */
#ifndef YYTOKENTYPE
@@ -46,36 +55,38 @@
/* Put the tokens into the symbol table, so that GDB and other debuggers
know about them. */
enum yytokentype {
- cal_NCURLY = 258,
- cal_DCURLY = 259,
- cal_DOLLAR = 260,
- cal_LCURLY = 261,
- cal_RCURLY = 262,
- cal_NAME = 263,
- cal_BSLASH = 264,
- cal_SYMBOL = 265,
- cal_AT = 266,
- cal_ERROR = 267,
- cal_ATNAME = 268
+ cal_ENVCURLY = 258,
+ cal_NCURLY = 259,
+ cal_DCURLY = 260,
+ cal_DOLLAR = 261,
+ cal_LCURLY = 262,
+ cal_RCURLY = 263,
+ cal_NAME = 264,
+ cal_BSLASH = 265,
+ cal_SYMBOL = 266,
+ cal_AT = 267,
+ cal_ERROR = 268,
+ cal_ATNAME = 269
};
#endif
/* Tokens. */
-#define cal_NCURLY 258
-#define cal_DCURLY 259
-#define cal_DOLLAR 260
-#define cal_LCURLY 261
-#define cal_RCURLY 262
-#define cal_NAME 263
-#define cal_BSLASH 264
-#define cal_SYMBOL 265
-#define cal_AT 266
-#define cal_ERROR 267
-#define cal_ATNAME 268
+#define cal_ENVCURLY 258
+#define cal_NCURLY 259
+#define cal_DCURLY 260
+#define cal_DOLLAR 261
+#define cal_LCURLY 262
+#define cal_RCURLY 263
+#define cal_NAME 264
+#define cal_BSLASH 265
+#define cal_SYMBOL 266
+#define cal_AT 267
+#define cal_ERROR 268
+#define cal_ATNAME 269
-#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
+#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef int YYSTYPE;
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
@@ -84,5 +95,3 @@ typedef int YYSTYPE;
-
-