PageRenderTime 23ms CodeModel.GetById 18ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/parsing/d/expressionunit.d

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