caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: George  Russell <george.russell@clara.co.uk>
To: caml-list@inria.fr
Subject: [Caml-list] Pattern match floats
Date: Fri, 02 Nov 2001 15:37:43 +0000	[thread overview]
Message-ID: <E15zgO7-000NNA-00@oceanus.uk.clara.net> (raw)

I am working through the OReilly book and have got as far as working on 
the little basic interpreter. I Am adding support for float type 
variables, and am trying to modify the lexer. 

I would like to be able to match ('0'..'9')*'.'('0'..'9')* i.e. one or 
more digits, a period, followed bt one or more digits.

I can't see how to do this in OCaml patter matching? Any ideas?

Thanks
George

-- 
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


             reply	other threads:[~2001-11-02 19:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-02 15:37 George Russell [this message]
2001-11-05  8:27 ` Jean-Christophe Filliatre

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=E15zgO7-000NNA-00@oceanus.uk.clara.net \
    --to=george.russell@clara.co.uk \
    --cc=caml-list@inria.fr \
    /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).