mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 20:05:31 +00:00
Code cleanup.
This commit is contained in:
parent
23429486b1
commit
18ffa7d28c
@ -9,17 +9,17 @@ struct Eval
|
||||
{
|
||||
static Value eval(const Ast& ast, shared_ptr<Environment> env) {
|
||||
switch (ast.type) {
|
||||
case Statements: return eval_statements(ast, env);
|
||||
case While: return eval_while(ast, env);
|
||||
case If: return eval_if(ast, env);
|
||||
case Function: return eval_function(ast, env);
|
||||
case FunctionCall: return eval_function_call(ast, env);
|
||||
case Assignment: return eval_assignment(ast, env);
|
||||
case Condition: return eval_condition(ast, env);
|
||||
case BinExpresion: return eval_bin_expression(ast, env);
|
||||
case Identifier: return eval_identifier(ast, env);
|
||||
case Number: return eval_number(ast, env);
|
||||
case Boolean: return eval_bool(ast, env);
|
||||
case Statements: return eval_statements(ast, env);
|
||||
case While: return eval_while(ast, env);
|
||||
case If: return eval_if(ast, env);
|
||||
case Function: return eval_function(ast, env);
|
||||
case FunctionCall: return eval_function_call(ast, env);
|
||||
case Assignment: return eval_assignment(ast, env);
|
||||
case Condition: return eval_condition(ast, env);
|
||||
case BinExpresion: return eval_bin_expression(ast, env);
|
||||
case Identifier: return eval_identifier(ast, env);
|
||||
case Number: return eval_number(ast, env);
|
||||
case Boolean: return eval_bool(ast, env);
|
||||
case InterpolatedString: return eval_interpolated_string(ast, env);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user