[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Where does semantic_type, sic, YYSTYPE get defined
From: |
Arthur Schwarz |
Subject: |
Where does semantic_type, sic, YYSTYPE get defined |
Date: |
Wed, 4 Dec 2013 10:18:55 -0800 (PST) |
The following example code:
1: Defines YYSTYPE as semantic_type,
2: Does not define semantic_type,
3: Generates C output files instead of C++.
Section 3.4.2 of Bison 3.0 and Bison 2.7 manual says:
"o let Bison compute the union type from the tags you assign to symbols"
What am I missing?
/* > bison -d --no-lines --warnings=all --language=c++ multipleTypes */
%language "C++"
%token <float> B
%token <char> D
%token <int> E
%type <int> a
%type <int> c
%start a
%%
a : B c { $$ = 1; }
;
c : D E { $$ = 2; }
;
- Where does semantic_type, sic, YYSTYPE get defined,
Arthur Schwarz <=