PageRenderTime 53ms CodeModel.GetById 46ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/parsing/d/assignexprunit.d

http://github.com/wilkie/djehuty
D | 38 lines | 23 code | 9 blank | 6 comment | 1 complexity | 1d5577ad9af9a9ba28beaad31cfa42ff MD5 | raw file
 1/*
 2 * expressionunit.d
 3 *
 4 * This module parses expressions.
 5 *
 6 */
 7
 8module parsing.d.assignexprunit;
 9
10import parsing.parseunit;
11import parsing.token;
12
13import parsing.d.tokens;
14import parsing.d.nodes;
15
16import parsing.d.conditionalexprunit;
17
18import io.console;
19
20import djehuty;
21
22class AssignExprUnit : ParseUnit {
23	override bool tokenFound(Token current) {
24		switch (current.type) {
25			default:
26				lexer.push(current);
27				auto tree = expand!(ConditionalExprUnit)();
28				break;
29		}
30		return false;
31	}
32
33protected:
34	string cur_string = "";
35
36	static const string _common_error_msg = "";
37	static const string[] _common_error_usages = null;
38}