3 <title>Key and reserved words - Sketch
</title>
4 <meta http-equiv=
"Content-Type" content=
"text/html">
5 <meta name=
"description" content=
"Sketch">
6 <meta name=
"generator" content=
"makeinfo 4.7">
7 <link title=
"Top" rel=
"start" href=
"index.html#Top">
8 <link rel=
"up" href=
"Language-basics.html#Language-basics" title=
"Language basics">
9 <link rel=
"prev" href=
"Identifiers.html#Identifiers" title=
"Identifiers">
10 <link rel=
"next" href=
"Literals.html#Literals" title=
"Literals">
11 <link href=
"http://www.gnu.org/software/texinfo/" rel=
"generator-home" title=
"Texinfo Homepage">
13 Copyright (C) 2005, 2006, 2007, 2008 Eugene K. Ressler.
15 This manual is for `sketch', version 0.2 (build 161),
16 Tuesday, September 08, 2009, a program that converts descriptions of simple
17 three-dimensional scenes into static drawings. This version generates
18 `PSTricks' or `PGF/TikZ' code suitable for use with the
19 TeX document processing system.
21 `Sketch' is free software; you can redistribute it and/or modify
22 it under the terms of the GNU General Public License as published by
23 the Free Software Foundation; either version 3, or (at your option)
26 Sketch is distributed in the hope that it will be useful,
27 but WITHOUT ANY WARRANTY; without even the implied warranty of
28 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 GNU General Public License for more details.
31 You should have received a copy of the GNU General Public License
32 along with `sketch'; see the file COPYING.txt. If not, see
33 http://www.gnu.org/copyleft.-->
34 <meta http-equiv=
"Content-Style-Type" content=
"text/css">
35 <style type=
"text/css"><!--
36 pre
.display
{ font-family:inherit
}
37 pre
.format
{ font-family:inherit
}
38 pre
.smalldisplay
{ font-family:inherit
; font-size:smaller
}
39 pre
.smallformat
{ font-family:inherit
; font-size:smaller
}
40 pre
.smallexample
{ font-size:smaller
}
41 pre
.smalllisp
{ font-size:smaller
}
42 span
.sc
{ font-variant:small-caps
}
43 span
.roman
{ font-family: serif
; font-weight: normal
; }
49 <a name=
"Key-and-reserved-words"></a>Next:
<a rel=
"next" accesskey=
"n" href=
"Literals.html#Literals">Literals
</a>,
50 Previous:
<a rel=
"previous" accesskey=
"p" href=
"Identifiers.html#Identifiers">Identifiers
</a>,
51 Up:
<a rel=
"up" accesskey=
"u" href=
"Language-basics.html#Language-basics">Language basics
</a>
55 <!-- node-name, next, previous, up -->
56 <h4 class=
"subsection">3.1.2 Key and reserved words
</h4>
58 <p><a name=
"index-keywords-171"></a>The keywords of
<code>sketch
</code> are
<code>picturebox
</code> <code>curve
</code>
59 <code>def
</code> <code>dots
</code> <code>frame
</code> <code>global
</code> <code>input
</code>
60 <code>line
</code> <code>polygon
</code> <code>put
</code> <code>repeat
</code> <code>set
</code>
61 <code>sweep
</code> and
<code>then
</code>. The
<code>sketch
</code> parser will note a
62 syntax error if any of these are used in place of a proper identifier.
64 <p>In addition, there are reserved words
65 <a name=
"index-reserved-words-172"></a>that can currently be defined by the user, but with the risk that
66 future versions of
<code>sketch
</code> will reject those definitions. The
67 reserved words are
<code>atan2
</code> <code>cos
</code> <code>inverse
</code>
68 <code>perspective
</code> <code>project
</code> <code>rotate
</code> <code>scale
</code>
69 <code>sin
</code> <code>special
</code> <code>sqrt
</code> <code>translate
</code> <code>unit
</code> and