caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] stack
@ 2001-02-13 22:24 maulin shah
  2001-02-14  0:29 ` Gauthier Nadji
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: maulin shah @ 2001-02-13 22:24 UTC (permalink / raw)
  To: caml-list

hi all,
I am a student and learning ocaml. need help for one
problem of Unbound value stack
here is my code.

type ins =PUSH of float| IADD|ISUB;;
type stack = ins list;;
type opn = Add|Sub;;
type exp = Num of float | Opn of exp* opn *exp;;

let rec compile exp=
match exp with 
Num x-> (PUSH x)::stack
|Opn e1,Add,e2 -> compile e2,
                  compile e1,
                  (IADD)::stack;;

gives error : unbound value stack????
 could any one clrify this???

thanks
maulin




__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/
-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-02-14 22:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-13 22:24 [Caml-list] stack maulin shah
2001-02-14  0:29 ` Gauthier Nadji
2001-02-14  7:30 ` Ohad Rodeh
2001-02-14 17:34 ` wester

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).