Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Nov 1996 20:21:43 -0500 (EST)
From:      Chuck Robey <chuckr@glue.umd.edu>
To:        Terry Lambert <terry@lambert.org>
Cc:        hackers@freebsd.org
Subject:   Re: Lex/Yacc question
Message-ID:  <Pine.OSF.3.95.961127201858.3053A-100000@uplink.eng.umd.edu>
In-Reply-To: <199611280034.RAA29529@phaeton.artisoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 27 Nov 1996, Terry Lambert wrote:

> Well, since I'm here anyway...
> 
> 
> What would be a Lex/Yacc program for handling statements like:
> 
> 	echo This is an undelimited yytext[] to my eol to pass to echo()

Lex uses C strings, you want to make it not use C strings, make a function
that outputs it the way you want, ECHO the first part, your_way() the
second part, ECHO the trailing part.  Probably be easier to convert your
undelimited string to an ASCIIZ.

Or did I misunderstand your question (most likely).  I've been doing a lot
of lex lately for school projects, this is a good time to ask me.

> 
> ???
> 
> PS: Why isn't there a Lex or Yacc FAQ?
> 
> 
> 					Terry Lambert
> 					terry@lambert.org
> ---
> Any opinions in this posting are my own and not those of my present
> or previous employers.
> 

----------------------------+-----------------------------------------------
Chuck Robey                 | Interests include any kind of voice or data 
chuckr@eng.umd.edu          | communications topic, C programming, and Unix.
9120 Edmonston Ct #302      |
Greenbelt, MD 20770         | I run Journey2 and picnic, both FreeBSD
(301) 220-2114              | version 3.0 current -- and great FUN!
----------------------------+-----------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.95.961127201858.3053A-100000>