Section 10.1.7.2 Complete Symbols question

lostbits <[email protected]> Fri, 2 Jun 2023 14:46:52 -0700
Newsgroups gmane.comp.parsers.bison.general
Message-ID <[email protected]>
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?