litex/execute/
exec_tooling_stmt.rs1use crate::prelude::*;
2
3impl Runtime {
4 pub fn exec_import_stmt(&mut self, stmt: &ImportStmt) -> Result<StmtResult, RuntimeError> {
5 return Err(RuntimeError::ExecStmtError({
6 let st: Stmt = stmt.clone().into();
7 let lf = st.line_file();
8 RuntimeErrorStruct::new(Some(st), "".to_string(), lf, None, vec![])
9 }));
10 }
11
12 pub fn exec_do_nothing_stmt(
13 &mut self,
14 stmt: &DoNothingStmt,
15 ) -> Result<StmtResult, RuntimeError> {
16 return Ok(NonFactualStmtSuccess::new_with_stmt(stmt.clone().into()).into());
17 }
18
19 pub fn exec_clear_stmt(&mut self, stmt: &ClearStmt) -> Result<StmtResult, RuntimeError> {
20 self.clear_current_env_and_parse_name_scope();
21 Ok(NonFactualStmtSuccess::new_with_stmt(stmt.clone().into()).into())
22 }
23
24 pub fn exec_run_file_stmt(&mut self, stmt: &RunFileStmt) -> Result<StmtResult, RuntimeError> {
25 return Err(RuntimeError::ExecStmtError({
26 let st: Stmt = stmt.clone().into();
27 let lf = st.line_file();
28 RuntimeErrorStruct::new(Some(st), "".to_string(), lf, None, vec![])
29 }));
30 }
31}