[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Section 10.1.7.2 Complete Symbols question
From: |
lostbits |
Subject: |
Section 10.1.7.2 Complete Symbols question |
Date: |
Fri, 2 Jun 2023 14:46:52 -0700 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 |
Bison.pdf v3.8.1
In 10.1.7.2 Complete Symbols pg. 180 it says:
"... it generates named constructors..."
With the following examples for the generated code:
symbol_type make_token (const value_type& value, const
location_type& location)
symbol_type make_token (const location_type& location)
symbol_type make_token (const value_type& value)
symbol_type make_token ()
In 10.1.8.4 Calc++ Scanner pg. 185 it includes code for make_NUMBER() in
the scanner. Shouldn't this be created in the parser and used in the
scanner as yy::parser::make_NUMBER()?
Do I have to create all the make_token() functions in the scanner and
return the constructed value to the parser, or do I have to use the
parser constructed make_token() functions. Can anyone help out on this?