PageRenderTime 19ms CodeModel.GetById 10ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/parsing/d/conditionalexprunit.d

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