Skip to content
Snippets Groups Projects
Commit 6f24dc26 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

Separate operator-unary into operator-unary-left and operator-unary-right.
parent c2cfe5ab
No related branches found
No related tags found
No related merge requests found
\input texinfo.tex @c -*-texinfo-*- \input texinfo.tex @c -*-texinfo-*-
@c $Id: gmsh.texi,v 1.51 2003-04-30 21:30:05 geuzaine Exp $ @c $Id: gmsh.texi,v 1.52 2003-05-05 23:00:44 geuzaine Exp $
@c @c
@c Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle @c Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
@c @c
...@@ -690,7 +690,9 @@ parsing of the data file: ...@@ -690,7 +690,9 @@ parsing of the data file:
@var{real} | @var{real} |
@var{string} | @var{string} |
@var{string} [ @var{expression} ] | @var{string} [ @var{expression} ] |
@var{operator-unary} @var{expression} | ( @var{expression} ) |
@var{operator-unary-left} @var{expression} |
@var{expression} @var{operator-unary-right} |
@var{expression} @var{operator-binary} @var{expression} | @var{expression} @var{operator-binary} @var{expression} |
@var{expression} @var{operator-ternary-left} @var{expression} @var{operator-ternary-right} @var{expression} | @var{expression} @var{operator-ternary-left} @var{expression} @var{operator-ternary-right} @var{expression} |
@var{built-in-function} | @var{built-in-function} |
...@@ -698,12 +700,13 @@ parsing of the data file: ...@@ -698,12 +700,13 @@ parsing of the data file:
@end example @end example
Such @w{@var{expression}s} are used in most of Gmsh's commands. The Such @w{@var{expression}s} are used in most of Gmsh's commands. The
operators @var{operator-unary}, @var{operator-binary} and operators @var{operator-unary-left}, @var{operator-unary-right},
@var{operator-ternary-left}/@var{operator-ternary-right} are defined in @var{operator-binary}, @var{operator-ternary-left} and
@ref{Operators}. For the definition of @w{@var{built-in-function}s}, see @var{operator-ternary-right} are defined in @ref{Operators}. For the
@ref{Built-in functions}. The various @w{@var{real-option}s} are listed in definition of @w{@var{built-in-function}s}, see @ref{Built-in
@ref{General options}, @ref{Geometry options}, @ref{Mesh options}, functions}. The various @w{@var{real-option}s} are listed in @ref{General
@ref{Solver options}, and @ref{Post-processing options}. options}, @ref{Geometry options}, @ref{Mesh options}, @ref{Solver options},
and @ref{Post-processing options}.
@cindex Expressions, lists @cindex Expressions, lists
...@@ -828,16 +831,21 @@ C++. Here is the list of the unary, binary and ternary operators currently ...@@ -828,16 +831,21 @@ C++. Here is the list of the unary, binary and ternary operators currently
implemented. implemented.
@noindent @noindent
@var{operator-unary}: @var{operator-unary-left}:
@ftable @code @ftable @code
@item - @item -
Unary minus. Unary minus.
@item ! @item !
Logical not. Logical not.
@end ftable
@noindent
@var{operator-unary-right}:
@ftable @code
@item ++ @item ++
Post-incrementation. (Pre-incrementation is not supported.) Post-incrementation.
@item -- @item --
Post-decrementation. (Pre-decrementation is not supported.) Post-decrementation.
@end ftable @end ftable
@noindent @noindent
...@@ -903,7 +911,7 @@ Parentheses @code{()} may be used anywhere to change the order of ...@@ -903,7 +911,7 @@ Parentheses @code{()} may be used anywhere to change the order of
evaluation: evaluation:
@enumerate @enumerate
@item @code{.} @item @code{()}, @code{[]}, @code{.}
@item @code{^} @item @code{^}
@item @code{!}, @code{++}, @code{--}, @code{-} (unary) @item @code{!}, @code{++}, @code{--}, @code{-} (unary)
@item @code{*}, @code{/}, @code{%} @item @code{*}, @code{/}, @code{%}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment