-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SCIL-22: Implenting basic statements and syntax into the emitter (#271)
* Creating tests to arrive at paths * Adding source loader * Preparing for multi file loading * Fixing failure on empty function block * Fixing issue with ByteStr * Minor update * Updating test cases with more paths of unimplemented emitters * Enabling outcommented test * Preparing refactor * Preparing for template types * Formatting * WiP * WiP * Removing accidental commit * Making the playground build again * Disabling test that are WiP
- Loading branch information
Showing
22 changed files
with
2,864 additions
and
140 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
products/bluebell/core/src/intermediate_representation/ast_queue.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use scilla_parser::ast::nodes::NodeProgram; | ||
|
||
/// Trait for a queue that lists the next Ast to be compiled. | ||
pub trait AstQueue { | ||
/// Add a library to the queue. | ||
fn enqueue(&mut self, library_name: &str) -> Result<(), String>; | ||
|
||
/// Add a library to the queue. | ||
fn enqueue_with_alias(&mut self, library_name: &str, alias_name: &str) -> Result<(), String>; | ||
/// Get the next Ast to be converted to the IR. | ||
fn pop_front(&mut self) -> Option<NodeProgram>; | ||
} |
Oops, something went wrong.