[pure-lang-svn] SF.net SVN: pure-lang:[486] pure/trunk/pure.1.in
Status: Beta
Brought to you by:
agraef
From: <ag...@us...> - 2008-08-13 13:51:32
|
Revision: 486 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=486&view=rev Author: agraef Date: 2008-08-13 13:51:40 +0000 (Wed, 13 Aug 2008) Log Message: ----------- Add remark concerning predefined operators. Modified Paths: -------------- pure/trunk/pure.1.in Modified: pure/trunk/pure.1.in =================================================================== --- pure/trunk/pure.1.in 2008-08-13 13:25:03 UTC (rev 485) +++ pure/trunk/pure.1.in 2008-08-13 13:51:40 UTC (rev 486) @@ -411,6 +411,24 @@ application binds stronger than all operators. Parentheses can be used to override default precedences and associativities as usual. .PP +The common operator symbols like +, -, *, / etc. are declared at the beginning +of the prelude, see the +.B prelude.pure +script for a list of these. Arithmetic, relational and logical operators +usually follow C conventions. However, out of necessity some of Pure's +operator symbols deviate from C. Most notably, the `!' symbol is Pure's +indexing operator, hence logical negation is denoted +.B not +instead (named for Haskell compatibility, but Pure's +.B not +is a real prefix operator instead of an ordinary function symbol). Moreover, +the bitwise operators are named +.B and +and +.B or +instead of `&' and `|', because the latter is reserved as a special symbol in +rules, see RULE SYNTAX below. +.PP At the toplevel, a Pure program basically consists of equations defining functions, constant and variable definitions, and expressions to be evaluated. .TP This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |