Topic: Grammar Problem
Author: mathieu@info.polymtl.ca (Philippe Mathieu)
Date: Fri, 15 Oct 1993 12:09:39 GMT Raw View
I'm currently working on a C++ Parser with the
Roskind grammar. I recently ran into a syntax error.
Here it is :
int a;
int &b = a;
void main()
{
(int &)b = a;
}
Typically, a type cast can't be an lvalue but in the
case of a cast to a reference it can. The grammar doesn't
support it. Does anyone know what to do with this?
--
Philippe Mathieu (mathieu@info.polymtl.ca)
" This is a test..." , Ministry