summaryrefslogtreecommitdiff
path: root/projects/Stacker/lib/compiler/StackerParser.y
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-03-31 03:49:47 +0000
committerChris Lattner <sabre@nondot.org>2004-03-31 03:49:47 +0000
commit91ef460285021b5bf43b3850f0f8958a09b8939c (patch)
tree8be960ee89ea7b68ba8977e7a202304ce3b20afe /projects/Stacker/lib/compiler/StackerParser.y
parent1438102576b94d6dac9bb18e8df291c4d632572d (diff)
downloadllvm-91ef460285021b5bf43b3850f0f8958a09b8939c.tar.gz
llvm-91ef460285021b5bf43b3850f0f8958a09b8939c.tar.bz2
llvm-91ef460285021b5bf43b3850f0f8958a09b8939c.tar.xz
Avoid TRUE and FALSE which apparently conflict with some macros on OSX
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12566 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'projects/Stacker/lib/compiler/StackerParser.y')
-rw-r--r--projects/Stacker/lib/compiler/StackerParser.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/projects/Stacker/lib/compiler/StackerParser.y b/projects/Stacker/lib/compiler/StackerParser.y
index 59139122a2..e45cc1a4b3 100644
--- a/projects/Stacker/lib/compiler/StackerParser.y
+++ b/projects/Stacker/lib/compiler/StackerParser.y
@@ -55,7 +55,7 @@ int yyparse();
/* Terminal Tokens */
%token SEMI COLON FORWARD MAIN DUMP
-%token TRUE FALSE LESS MORE LESS_EQUAL MORE_EQUAL NOT_EQUAL EQUAL
+%token TRUETOK FALSETOK LESS MORE LESS_EQUAL MORE_EQUAL NOT_EQUAL EQUAL
%token PLUS MINUS INCR DECR MULT DIV MODULUS NEGATE ABS MIN MAX STAR_SLASH
%token AND OR XOR LSHIFT RSHIFT
%token DROP DROP2 NIP NIP2 DUP DUP2 SWAP SWAP2 OVER OVER2 ROT ROT2
@@ -109,8 +109,8 @@ Word : STRING { $$ = SCI->handle_string( $1 ); } ;
Word : INTEGER { $$ = SCI->handle_integer( $1 ); } ;
/* Everything else is a terminal symbol and goes to handle_word */
-Word : TRUE { $$ = SCI->handle_word( TRUE ); } ;
-Word : FALSE { $$ = SCI->handle_word( FALSE ); } ;
+Word : TRUETOK { $$ = SCI->handle_word( TRUETOK ); } ;
+Word : FALSETOK { $$ = SCI->handle_word( FALSETOK ); } ;
Word : LESS { $$ = SCI->handle_word( LESS ); } ;
Word : MORE { $$ = SCI->handle_word( MORE ); } ;
Word : LESS_EQUAL { $$ = SCI->handle_word( LESS_EQUAL ); } ;