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

SCM Repository

[diderot] View of /branches/vis15/src/tests/examples/hello/hello.diderot
ViewVC logotype

View of /branches/vis15/src/tests/examples/hello/hello.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3588 - (download) (annotate)
Thu Jan 14 15:25:22 2016 UTC (4 years, 4 months ago) by jhr
File size: 581 byte(s)
adding tests to merge branch
/* ==========================================
## hello.diderot: The usual greeting, in Diderot

Assuming the directions at https://github.com/Diderot-Language/examples
this program can be compiled and run with:

	../../vis12/bin/diderotc --exec hello.diderot
	./hello

The output can be checked with:

	unu save -f text -i out.nrrd

which should produce "42".
========================================== */

strand hello (int ii) {
   output int out = 42;

   update {
      print("hello, world\n");
      stabilize;
   }
}
initially [ hello(ii) | ii in 0..0 ];  // only one strand

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