Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Annotation of /tests/examples/hello/hello.diderot
ViewVC logotype

Annotation of /tests/examples/hello/hello.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4640 - (view) (download)

1 : glk 4640 /* ==========================================
2 :     ## hello.diderot: The usual greeting, in Diderot
3 :    
4 :     Assuming the directions at https://github.com/Diderot-Language/examples
5 :     this program can be compiled and run with:
6 :    
7 :     ../../vis12/bin/diderotc --exec hello.diderot
8 :     ./hello
9 :    
10 :     The output can be checked with:
11 :    
12 :     unu save -f text -i out.nrrd
13 :    
14 :     which should produce "42".
15 :     ========================================== */
16 :    
17 :     strand hello (int ii) {
18 :     output int out = 42;
19 :    
20 :     update {
21 :     print("hello, world\n");
22 :     stabilize;
23 :     }
24 :     }
25 :     initially [ hello(ii) | ii in 0..0 ]; // only one strand

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