% This is a C++ file written in noweb

% $Id: attrtest.nw,v 2.0 1996/12/16 16:45:18 gaertner Exp $

\documentclass{article}
\usepackage{noweb,pretzeldoc,version}
\includeversion{bigspecs}
\includeversion{impls}
%\excludeversion{bigspecs}% without elaborate specification
%\excludeversion{impls}% without implementation
\begin{document}

\title{Testing the Attribute Class}
\author{Felix G\"artner}
\maketitle

\begin{abstract}
  This is a short \C\ program to test the [[Attribute]] class.
\end{abstract}


\section{Introduction}

This program is a short test for a C++ class called [[Attribute]]. It
simply plays around with the [[join]], [[create]] and [[print]]
functions and outputs something to the screen using the output class.

<<implementation>>=
/* attribute tester */

#include"attr.h"
#include"output.h"
#include<iostream>

int main()
{
    Attribute* a, *b, *c, *d;
    Latex_cweb_output o(cout);

    a = create("A simple PASCAL example\n\n");
    b = join(create("for"), create(" i:=0 to 10 "), create("do"),
            create(indent), create(force));
    c = join(create("begin"), create(indent), create(force),
            create("writeln(i);"), create(outdent), create(force),
            create("end;"), create(outdent), create(force), create("\n\n"));
    d = join(a,b,c);
    d->print(o);

    return 0;
}



@
\end{document}

%
% $Log: attrtest.nw,v $
% Revision 2.0  1996/12/16 16:45:18  gaertner
% *** empty log message ***
%
% Revision 1.1  1996/03/07  17:40:03  gaertner
% Initial revision
%
%
%
