girparser: Add missing source references to classes and structs
[vala-lang.git] / doc / vala / expressions.xml
blobaaf7725fa21d9530e65832a28f8bfedd9629ba11
1 <?xml version="1.0"?>
2 <section id="expressions">
3         <h>Expressions</h>
4         <section id="primary">
5                 <h>Primary expressions</h>
6                 <blockquote>
7 primary-expression:
8         literal
9         simple-name
10         <l>(</l> expression <l>)</l>
11         member-access
12         invocation-expression
13         element-access
14         <l>this</l>
15         <l>base</l>
16         object-creation-expression
17         array-creation-expression
18         <l>sizeof (</l> type <l>)</l>
19         <l>typeof (</l> type <l>)</l>
20                 </blockquote>
21         </section>
22         <section id="unary">
23                 <h>Unary expressions</h>
24                 <blockquote>
25 unary-expression:
26         primary-expression
27         <l>+</l> unary-expression
28         <l>-</l> unary-expression
29         <l>!</l> unary-expression
30         <l>~</l> unary-expression
31         cast-expression
32                 </blockquote>
33         </section>
34         <section id="arithmetic">
35                 <h>Arithmetic operations</h>
36                 <blockquote>
37 multiplicative-expression:
38         unary-expression
39         multiplicative-expression <l>*</l> unary-expression
40         multiplicative-expression <l>/</l> unary-expression
41         multiplicative-expression <l>%</l> unary-expression
43 additive-expression:
44         multiplicative-expression
45         additive-expression <l>+</l> multiplicative-expression
46         additive-expression <l>-</l> multiplicative-expression
47                 </blockquote>
48         </section>
49         <section id="shift">
50                 <h>Shift operations</h>
51                 <blockquote>
52 shift-expression:
53         additive-expression
54         shift-expression <l>&lt;&lt;</l> additive-expression
55         shift-expression <l>&gt;&gt;</l> additive-expression
56                 </blockquote>
57         </section>
58         <section id="relational">
59                 <h>Relational operations</h>
60                 <blockquote>
61 relational-expression:
62         shift-expression
63         relational-expression <l>&lt;</l> shift-expression
64         relational-expression <l>&lt;=</l> shift-expression
65         relational-expression <l>&gt;</l> shift-expression
66         relational-expression <l>&gt;=</l> shift-expression
68 equality-expression:
69         relational-expression
70         equality-expression <l>==</l> relational-expression
71         equality-expression <l>!=</l> relational-expression
72                 </blockquote>
73         </section>
74         <section id="logical">
75                 <h>Logical operations</h>
76                 <blockquote>
77 and-expression:
78         equality-expression
79         and-expression <l>&amp;</l> equality-expression
81 exclusive-or-expression:
82         and-expression
83         exclusive-or-expression <l>^</l> and-expression
85 inclusive-or-expression:
86         exclusive-or-expression
87         inclusive-or-expression <l>|</l> exclusive-or-expression
88                 </blockquote>
89         </section>
90         <section id="assignments">
91                 <h>Assignments</h>
92                 <blockquote>
93 assigment:
94         unary-expression <l>=</l> expression
95         unary-expression <l>+=</l> expression
96         unary-expression <l>-=</l> expression
97         unary-expression <l>*=</l> expression
98         unary-expression <l>/=</l> expression
99         unary-expression <l>%=</l> expression
100         unary-expression <l>&amp;=</l> expression
101         unary-expression <l>|=</l> expression
102         unary-expression <l>^=</l> expression
103         unary-expression <l>&lt;&lt;=</l> expression
104         unary-expression <l>&gt;&gt;=</l> expression
105                 </blockquote>
106         </section>
107 </section>