Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #453

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

From "Steven G. Kargl" <sgk@REMOVEtroutmask.apl.washington.edu>
Newsgroups comp.compilers
Subject Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++
Date 2012-02-11 18:31 +0000
Organization A noiseless patient Spider
Message-ID <12-02-013@comp.compilers> (permalink)
References <12-02-004@comp.compilers> <12-02-006@comp.compilers> <12-02-009@comp.compilers>

Show all headers | View raw


On Fri, 10 Feb 2012 13:24:41 -0800, Paul B Mann wrote:

>> UNIX and unix-like system are case sensitive.  There is no chance that
>> this code will build without a significant porting effort.  For
>> example, you have Global.H in some directory; yet, your source has
>> '#include "global.h"'.
>>
>> It may also be advantageous to include simple instructions of which
>> files need to be compiled and the order.
>
> I have created a newer release: 3.0.211 in which I renamed the file
> names to all lower case and changed the #include filenames to match.
>
> I also added "readme.txt" files to the "source" directories which
> tells you how to compile under UNIX/Linux (i.e. compile the
> "lrstar.cpp" file, the "dfastar.cpp" file and the "dfac.cpp" file).
>
> I'm sure there will be more changes needed, because I'm not so
> familiar with UNIX.

Thanks.

Yes, more changes are needed.  First, one needs to comment out
'#define DOS' in globals.h.  Then, (on at least FreeBSD) one needs to
remove '#include "malloc.h", because everything that at one time was
declared in that file is now found in stdlib.h and inclusion of
malloc.h leads to an error.  Now, I hit the show stopper:

laptop:kargl[240] g++ -o z -I. dfac.cpp |& more
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++

--
steve

Back to comp.compilers | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ Paul B Mann <paul@paulbmann.com> - 2012-02-07 14:47 -0800
  Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ "Steven G. Kargl" <sgk@REMOVEtroutmask.apl.washington.edu> - 2012-02-08 19:08 +0000
    Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ Hans Aberg <haberg-news@telia.com> - 2012-02-09 10:28 +0100
    Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ Paul B Mann <paul@paulbmann.com> - 2012-02-10 10:19 -0800
    Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ Paul B Mann <paul@paulbmann.com> - 2012-02-10 13:24 -0800
      Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ "Steven G. Kargl" <sgk@REMOVEtroutmask.apl.washington.edu> - 2012-02-11 18:31 +0000
        Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-02-12 06:29 +0000
          Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ Paul B Mann <paul@paulbmann.com> - 2012-02-14 08:14 -0800
            Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ Boriel <boriel@gmail.com> - 2012-10-24 01:44 -0700
              Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ charlesb@calvaryanaheim.org - 2013-02-26 10:14 -0800
                Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ Roberto Waltman <lists@rwaltman.com> - 2013-02-27 21:35 -0500
                Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ Thomas David Rivers <rivers@dignus.com> - 2013-02-28 07:46 -0500
  Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ Jim Patchell <patchell@cox.net> - 2012-11-05 20:36 -0800
    Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ "Charles E. Bortle, Jr." <charlesb.cca@mpowercom.net> - 2012-11-12 13:24 -0800
      Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ "Charles E. Bortle, Jr." <charlesb.cca@mpowercom.net> - 2012-11-12 14:45 -0800
    Re: LRSTAR 3.0: LALR(k) parser generator & lexer generator for C++ "Armel Asselin" <armelasselin@hotmail.com> - 2012-11-13 09:22 +0100

csiph-web