comparison parser/Action.d @ 126:c3b24e7e8cf8

Carius changes to the parser. Parsing attributes, lexing many keywords(not all yet).
author Anders Johnsen <skabet@gmail.com>
date Tue, 27 May 2008 10:32:31 +0200
parents 6a5f745d351c
children 2be29b296081
comparison
equal deleted inserted replaced
125:d604152de1eb 126:c3b24e7e8cf8
1 module parser.Action; 1 module parser.Action;
2 2
3 import lexer.Token; 3 import lexer.Token;
4
5 import basic.Attribute;
4 6
5 /** 7 /**
6 Used to indicate what type of operator is used in a given binary expression 8 Used to indicate what type of operator is used in a given binary expression
7 (and unary expressions?) 9 (and unary expressions?)
8 */ 10 */
9 public enum Operator 11 public enum Operator
10 { 12 {
11 Assign, 13 Assign,
14 AddAssign,
15 SubAssign,
16 MulAssign,
17 DivAssign,
18 ModAssign,
12 19
13 Eq, Ne, 20 Eq, Ne,
14 21
15 Lt, Le, 22 Lt, Le,
16 Gt, Ge, 23 Gt, Ge,
146 As an example, this method could handle the params in `int f(int, int)` 153 As an example, this method could handle the params in `int f(int, int)`
147 as well as handling `int x` at both top-level, in classes and in methods. 154 as well as handling `int x` at both top-level, in classes and in methods.
148 155
149 The other solution is an addParamToFunc or similar. 156 The other solution is an addParamToFunc or similar.
150 */ 157 */
151 DeclT actOnDeclarator(ref Id type, ref Id name, ExprT init) 158 DeclT actOnDeclarator(ref Id type, ref Id name, ExprT init, Attribute att)
152 { 159 {
153 return null; 160 return null;
154 } 161 }
155 162
156 /** 163 /**