//
// Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
//
// The contents of this file are covered under the licence agreement in the
// file "LICENCE" distributed with Cforall.
//
// io1.cfa --
//
// Author : Peter A. Buhr
// Created On : Wed Mar 2 16:56:02 2016
// Last Modified By : Peter A. Buhr
// Last Modified On : Wed Dec 12 18:23:44 2018
// Update Count : 110
//
#include
int main() {
int x = 3, y = 5, z = 7;
sout | x * 3 | y + 1 | z << 2 | x == y | (x | y) | (x || y) | (x > z ? 1 : 2);
sout | 1 | 2 | 3;
sout | '1' | '2' | '3';
sout | 1 | "" | 2 | "" | 3;
sout;
sout | "opening delimiters";
sout | "x (" | 1 | nonl;
sout | "x [" | 2 | nonl;
sout | "x {" | 3 | nonl;
sout | "x =" | 4 | nonl;
sout | "x $" | 5 | nonl;
sout | "x £" | 6 | nonl;
sout | "x ¥" | 7 | nonl;
sout | "x ¡" | 8 | nonl;
sout | "x ¿" | 9 | nonl;
sout | "x «" | 10;
sout | "closing delimiters";
sout | 1 | ", x" | nonl;
sout | 2 | ". x" | nonl;
sout | 3 | "; x" | nonl;
sout | 4 | "! x" | nonl;
sout | 5 | "? x" | nonl;
sout | 6 | "% x" | nonl;
sout | 7 | "¢ x" | nonl;
sout | 8 | "» x" | nonl;
sout | 9 | ") x" | nonl;
sout | 10 | "] x" | nonl;
sout | 11 | "} x";
sout | "opening/closing delimiters";
sout | "x`" | 1 | "`x'" | 2 | nonl;
sout | "'x\"" | 3 | "\"x:" | 4 | nonl;
sout | ":x " | 5 | " x\t" | 6 | nonl;
sout | "\tx\f" | 7 | "\fx\v" | 8 | nonl;
sout | "\vx\n" | 9 | "\nx\r" | 10 | nonl;
sout | "\rx";
sout | "override opening/closing delimiters";
sout | "x ( " | 1 | " ) x" | 2 | " , x" | 3 | " :x: " | 4;
sout;
}
// Local Variables: //
// tab-width: 4 //
// compile-command: "cfa io1.cfa" //
// End: //