9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Bruce Ellis" <bruce.ellis@gmail.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu>
Subject: Re: [9fans] ... --- ...
Date: Mon,  5 Feb 2007 21:20:56 +1100	[thread overview]
Message-ID: <775b8d190702050220i46066654uae8d624a3d954dee@mail.gmail.com> (raw)
In-Reply-To: <ACCF003CBA3D09458207DB0CB86AD17D481AF7@XMAIL.asuch.cas.cz>

hand code that part.  it's a bit tricky but not too hard.
i've done it dozens of times (got it right 20 years ago
and use copy/paste).  almost any screwy requirement
is best done by just doing it.  lex has it's land but it will
drive you insane - and in a parallel universe you've
finished the C code.

ken's code is different to mine but i'd copy/paste it
in a second.

brucee

On 2/5/07, cej@gli.cas.cz <cej@gli.cas.cz> wrote:
>
> hi all,
> my problem is to read-in the data in the form(regex):
> [0-9]+'-'[0-9]+[acr]
> e.g., : 0-2a 3-4c 6-8r
> to obtain:
> a a a c c [blank] r r r
>
> Is this better to be solved by 'lex', or directly in C?? Could someone, please, hint???
>
> Big 'Thank You',
>
> Peter.
>


      reply	other threads:[~2007-02-05 10:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-05 10:03 cej
2007-02-05 10:20 ` Bruce Ellis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=775b8d190702050220i46066654uae8d624a3d954dee@mail.gmail.com \
    --to=bruce.ellis@gmail.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).