From: "Jacques Carette" <carette@mcmaster.ca>
To: <caml-list@inria.fr>
Cc: <Daniel.Andor@physics.org>
Subject: RE: [Caml-list] camlp4 vs. ocamllex/yacc?
Date: Fri, 24 Jan 2003 09:32:37 -0500 [thread overview]
Message-ID: <EOEHLEIACBIFHDANCLHKGEEGCJAA.carette@mcmaster.ca> (raw)
In-Reply-To: <200301241415.44042.da209@cam.ac.uk>
I am unsure if this solution satisfies all of your requirements, but all of
the functionality you mention below is already available in Maple, both
interactively and in batch. And for a much larger set of functions than
you'd likely ever have the patience to work with... And the Units package
(as of Maple 7) includes more units/dimensions than any sane human being
would ever care to know about [the author of that package was, umm,
thorough, right, that's it :-) ].
If nothing else, you should at least use Maple to test any eventual
implementation you find.
Jacques
PS: disclaimer - I used to be affiliated with Maple, but no longer am.
PPS: even the set of 'usual' units forms a rather nasty poset, much more
complicated than one would imagine. Consistency checking is fully
decidable, but an interesting exercise nevertheless.
-----Original Message-----
From: owner-caml-list@pauillac.inria.fr
[mailto:owner-caml-list@pauillac.inria.fr]On Behalf Of Daniel Andor
Sent: Friday, January 24, 2003 9:16 AM
To: caml-list@inria.fr
Subject: [Caml-list] camlp4 vs. ocamllex/yacc?
Hi,
I want to write a smallish translator that would read mathematical formulae
in
an easy to read (for humans, that is) format and translate them to a
computer
language (ocaml, fortran, c, latex, etc) for output. In the process it
could
do simple consistency checks (like making sure the dimensionality of
physical
equations are correct, for example) on the parse tree.
What are the advantages/disadvantages of using camlp4 vs. a combination of
ocamllex and ocamlyacc?
Is there already a translator like this out there (to save me the effort)?
Any tips on how consistency checks on the equations could be made harnessing
the power of the type system?
Thanks,
Daniel.
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives:
http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ:
http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2003-01-24 14:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-24 14:15 Daniel Andor
2003-01-24 14:32 ` Jacques Carette [this message]
2003-01-24 15:12 ` Jean-Christophe Filliatre
2003-01-24 16:21 ` Alain.Frisch
2003-01-26 2:50 ` Ed L Cashin
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=EOEHLEIACBIFHDANCLHKGEEGCJAA.carette@mcmaster.ca \
--to=carette@mcmaster.ca \
--cc=Daniel.Andor@physics.org \
--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