Skip to content

Commit

Permalink
SCIL-22: Implenting basic statements and syntax into the emitter (#271)
Browse files Browse the repository at this point in the history
* 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
troelsfr authored Mar 29, 2024
1 parent 1782d7f commit 0878bdd
Show file tree
Hide file tree
Showing 22 changed files with 2,864 additions and 140 deletions.
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

0 comments on commit 0878bdd

Please sign in to comment.