Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /sml/branches/SMLNJ/src/ml-yacc/examples/calc/README
ViewVC logotype

Annotation of /sml/branches/SMLNJ/src/ml-yacc/examples/calc/README

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3 - (view) (download)

1 : monnier 2 This is a sample interactive calculator built using ML-Yacc and ML-Lex.
2 :    
3 :     To compile this example, type
4 :    
5 :     - CM.make();
6 :    
7 :     in this directory.
8 :    
9 :     The end result of loading these files is a structure Calc containing a
10 :     function named parse. The calculator can be invoked by applying that
11 :     function to a value of type unit. The calculator reads from the
12 :     standard input. There is no attempt to fix input errors since this
13 :     is an interactive parser.
14 :    
15 :     The calculator reads a sequence of expressions from the standard input
16 :     and prints the value of each expression after reading the expression.
17 :     Expressions must be separated by semicolons. An expression is not
18 :     evaluated until the semicolon is encountered. The calculator
19 :     terminates when an end-of-file is encountered.
20 :    
21 :    

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0