Re-implement eval as a regular builtin

I did not realize builtins could safely call into the parser and inject
jobs during execution. This is much cleaner than hacking around the
required shape of a plain_statement.
This commit is contained in:
Mahmoud Al-Qudsi
2019-04-12 06:53:08 -05:00
parent 9cf1b18b26
commit e0e0fe9dd3
12 changed files with 58 additions and 66 deletions

View File

@@ -161,9 +161,6 @@ process_type_t parse_execution_context_t::process_type_for_command(
case parse_statement_decoration_builtin:
process_type = process_type_t::builtin;
break;
case parse_statement_decoration_eval:
process_type = process_type_t::eval;
break;
case parse_statement_decoration_none:
if (function_exists(cmd)) {
process_type = process_type_t::function;