8-bit char input patterns and "lex".

8-bit char input patterns and "lex".

Post by Avinash Chop » Fri, 15 Jul 1994 03:36:20



I need to use patterns such as:

"a\xFFb" { action1(); }
"a\x8Fb" { action1(); }

etc...with the UNIX supplied "lex" program.

From my earlier experiences, I have had problems with signed/unsigned
char type casts using lex, but that was a long time ago, was wondering
if the situation has improved today and wondering if 8 bit char input is
acceptable and will work with lex? Thanks for any input...

--
----
Avinash Chopde

 
 
 

1. Sun Workshop C Compiler ("char" as "unsigned char") ?

Hi,

We use the Sun Workshop C Compiler (sorry, I dont know the version
cause Im not at the box, yet) on
SunOS 5.5 and 5.6.

Is there a way to handle a plain "char" datatype as "unsigned char" via
command line option?
I watched out for a compiler flag in the man pages and in online help,
but I havent found anything.

Does anybody know about such compiler option?
Thanks!!!

-Volker-

--
################################
 sender: Volker Dormeyer

################################

2. What the hell is this? 451 Can't create transcript file xfWAA04241: File table overflow

3. GETSERVBYNAME()????????????????????"""""""""""""

4. Notes on Writing Portable Programs in C: part1.tex

5. lex handling 8-bit chars and kanji

6. UNIX SCHEDULERS

7. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

8. Can I get a list of APARs?

9. PPPD: "Receive serial link is not 8-bit clean"

10. PPP connection fails - "not 8-bit clean"

11. Cancel "Re: 8-bit usernames under Solaris 8?"

12. pppd problem - "Not 8-bit clean"

13. pppd dies, "receiving line is not 8-bit clean..."