Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++

glen herrmannsfeldt <gah@ugcs.caltech.edu>
Sun, 12 Feb 2012 06:29:16 +0000 (UTC)

          From comp.compilers

Related articles
LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ paul@paulbmann.com (Paul B Mann) (2012-02-07)
Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ sgk@REMOVEtroutmask.apl.washington.edu (Steven G. Kargl) (2012-02-08)
Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ haberg-news@telia.com (Hans Aberg) (2012-02-09)
Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ paul@paulbmann.com (Paul B Mann) (2012-02-10)
Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ paul@paulbmann.com (Paul B Mann) (2012-02-10)
Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ sgk@REMOVEtroutmask.apl.washington.edu (Steven G. Kargl) (2012-02-11)
Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ gah@ugcs.caltech.edu (glen herrmannsfeldt) (2012-02-12)
Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ paul@paulbmann.com (Paul B Mann) (2012-02-14)
Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ boriel@gmail.com (Boriel) (2012-10-24)
Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ patchell@cox.net (Jim Patchell) (2012-11-05)
Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ charlesb.cca@mpowercom.net (Charles E. Bortle, Jr.) (2012-11-12)
Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ charlesb.cca@mpowercom.net (Charles E. Bortle, Jr.) (2012-11-12)
Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ armelasselin@hotmail.com (Armel Asselin) (2012-11-13)
[3 later articles]
| List of all articles for this month |

From: glen herrmannsfeldt <gah@ugcs.caltech.edu>
Newsgroups: comp.compilers
Date: Sun, 12 Feb 2012 06:29:16 +0000 (UTC)
Organization: Aioe.org NNTP Server
References: 12-02-004 12-02-006 12-02-009 12-02-013
Keywords: parse, C++, debug
Posted-Date: 12 Feb 2012 01:31:55 EST

Steven G. Kargl <sgk@removetroutmask.apl.washington.edu> wrote:


> In file included from actions.cpp:4,
> from dfac.cpp:2:
> global.h:52:15: error: "or" cannot be used as a macro name as
> it is an operator in C++


In C, the preprocessor is logically before the compiler, so, as far as
I understand, there is no problem using any C reserved word as a macro
name, as long as you don't need the word.


I know C++ isn't C, but this one surprises me.


Still, if you aren't using the "or" operator, a quick pass through sed
should be able to fix it.


-- glen


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.