www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/10/13/05:12:55

Date: Thu, 13 Oct 94 08:34:12 JST
From: Stephen Turnbull <turnbull AT shako DOT sk DOT tsukuba DOT ac DOT jp>
To: LIP AT odie DOT ee DOT wits DOT ac DOT za
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: yyless Lex/Yacc function

Tony--

   Can anyone supply a generic C function for the "stamdard" Unix 
   yyless function? (to get C code produced by a Sun's Lex/Yacc to link 
   under DJGPP). This function appears to be not available in the 
   Bison/Flex libs. 

I don't know if it's "standard", could be a Sun extension.  It's
certainly not a "Unix" function.  It would be part of the yacc
package, and should be available on the Sun, although there are surely
licensing restrictions---which may apply to the use you're putting the
code to as well; be careful.  That is, if you're not allowed to use
the yyless from the Sun lex/yacc, I'm sure you're not allowed to use
the other code produced by those compilers either.  But if it's
standard, try byacc (Berkeley-yacc) instead of Bison.  It should be
available at Simtel mirrors, in the c programmer's directory or
suchlike.

   The two custom Flex synthesized versions of yyless are totally 
   incompatible. The Flex/Bison generated C code is incompatible with 
   the rest of the app or there is a problem with these tools (app 
   appears to go into an infinite loop when parsing input).

What do you mean, "flex/bison generated code"?  If you have access to
the lex and yacc sources, why are you using the Sun yacc at all?  Use
Bison -y instead.  (If you're worried about the GNU restrictions on
Bison-generated code, but not about the presumable Sun restrictions,
good grief.)

   Thanks,
   Tony.

+-----------------------------------------------------------------------+
|                           Stephen Turnbull                            |
|     University of Tsukuba, Institute of Socio-Economic Planning       |
|          Tennodai 1-chome 1--1, Tsukuba, Ibaraki 305 JAPAN            |
|        Phone:  +81 (298) 53-5091     Fax:  +81 (298) 55-3849          |
|               Email:  turnbull AT shako DOT sk DOT tsukuba DOT ac DOT jp                 |
|                                                                       |
|                Founder and CEO, Skinny Boy Associates                 |
|               Mechanism Design and Social Engineering                 |
| REAL solutions to REAL problems of REAL people in REAL time!  REALLY. |
|                      Phone:  +81 (298) 56-2703                        |
+-----------------------------------------------------------------------+

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019