Hi, I'm having trouble getting this to work. I don't know whether my code
is set up correctly. I can't seem to find any other answers that help.
Thank you.
top part of my lex grammar .l file
#
%option c++
%{
#include
#ifdef DEBUGON
#ifndef DEBUG
#define DEBUG
#endif
#
-- Forwarded message -
From: Scott Lorberbaum
Date: Sat, May 8, 2021 at 11:06 AM
Subject: Re: c++ bison, flex, having yylex return parser::symbol_type and
take in arguments (parser::semantic_type, parser::location_type)
To: Akim Demaille
Akim , yes sorry I was in a rush
My namespace is ucc;
I've named the parser uccParser;
This function below I find in the generated ucc.tab.cpp file
void
uccParser::error (const syntax_error& yyexc)
{
error (yyexc.location, yyexc.what ());
}
unfortunately the ucc.tab.hpp file that is generated does not include a
defi