Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCIL-22: Implenting basic statements and syntax into the emitter #271

Merged
merged 17 commits into from
Mar 29, 2024
Merged
20 changes: 10 additions & 10 deletions products/bluebell/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions products/bluebell/core/src/evm_bytecode_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ impl<'ctx> EvmBytecodeGenerator<'ctx> {
ref name,
owner: _,
ref arguments,
template_type_arguments: _
} => {
if arguments.len() > 0 {
// TODO: Pack data
Expand Down
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>;
}
Loading
Loading