[antlr-interest] token.hpp 24 Sept 2000

wiggjd at sbu.ac.uk wiggjd at sbu.ac.uk
Tue Aug 12 03:43:51 PDT 2003


For your information.

Whilst testing my latest version of the C++ definition
the following lines found in my copy of token.hpp dated
24 Sept 2000 have given me some grief when they
appeared in support.i because no return type had been
given. It seems clear that this should be "bool".

#ifdef NEEDS_OPERATOR_LESS_THAN
inline operator<(RefToken l,RefToken r); //{return true;}
#endif

I realise that my compiler (MSVC 6) had already accepted
it but perhaps it accepted a default of "int".

However, the C++ standard no longer allows "implicit" int.

It is of course possible that later versions of token.hpp
have been updated.

I would be grateful if someone could confirm that the
return type should be given as "bool".

In the meantime I have updated my copy.

Thanks.

David Wigg
Research Fellow
London South Bank University, UK.


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list