no more if expressions.

This commit is contained in:
Roberto Ierusalimschy
1999-03-11 16:00:12 -03:00
parent 82ad0d5770
commit c454dc7bdd
2 changed files with 10 additions and 36 deletions

View File

@@ -1,4 +1,4 @@
% $Id: manual.tex,v 1.25 1999/03/04 21:23:39 roberto Exp roberto $
% $Id: manual.tex,v 1.26 1999/03/10 14:09:45 roberto Exp roberto $
\documentclass[11pt]{article}
\usepackage{fullpage,bnf}
@@ -41,7 +41,7 @@ Waldemar Celes
\tecgraf\ --- Computer Science Department --- PUC-Rio
}
%\date{\small \verb$Date: 1999/03/04 21:23:39 $}
%\date{\small \verb$Date: 1999/03/10 14:09:45 $}
\maketitle
@@ -686,17 +686,6 @@ All binary operators are left associative,
except for \verb|^| (exponentiation),
which is right associative.
\subsubsection{If Expressions}
\begin{Produc}
\produc{exp}{\rwd{if} exp1 \rwd{then} exp1
\rep{\rwd{elseif} exp1 \rwd{then} exp1}
\opt{\rwd{else} exp1} \rwd{end}}
\end{Produc}%
An \Index{if expression} chooses an expression to evaluate
according to its condition.
Its final value is the value of the chosen expression.
An absent else-part is equivalent to \verb|else nil|.
\subsubsection{Table Constructors} \label{tableconstructor}
Table \Index{constructors} are expressions that create tables;
every time a constructor is evaluated, a new table is created.