PageRenderTime 42ms CodeModel.GetById 35ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/parsing/d/unaryexprunit.d

http://github.com/wilkie/djehuty
D | 38 lines | 23 code | 9 blank | 6 comment | 1 complexity | 4a48d260dd6ed4d03486726aa9dedd1c MD5 | raw file
 1/*
 2 * expressionunit.d
 3 *
 4 * This module parses expressions.
 5 *
 6 */
 7
 8module parsing.d.unaryexprunit;
 9
10import parsing.parseunit;
11import parsing.token;
12
13import parsing.d.tokens;
14import parsing.d.nodes;
15
16import parsing.d.postfixexprunit;
17
18import io.console;
19
20import djehuty;
21
22class UnaryExprUnit : ParseUnit {
23	override bool tokenFound(Token current) {
24		switch (current.type) {
25			default:
26				lexer.push(current);
27				auto tree = expand!(PostFixExprUnit)();
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}