Skip to content

Commit

Permalink
push version
Browse files Browse the repository at this point in the history
  • Loading branch information
NightProg committed Sep 16, 2023
1 parent c949def commit 1ebfee0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion crates/popper_ast/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ pub use basic_stmt::*;
pub use types::*;
pub use function::*;


#[cfg(feature = "serde")]
pub fn get_ast_from_json_file(file: &str) -> Vec<Statement> {
let file = std::fs::read_to_string(file).unwrap();
Expand Down
2 changes: 1 addition & 1 deletion crates/popper_ast/src/op/bin_op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::expr::Expression;
#[cfg_attr(feature = "extra-trait", derive(Debug, PartialEq))]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Clone)]
/// binary operation: `<expr> <op> <expr`
/// binary operation: `<expr> <op> <expr>`
pub struct BinOp {
span: Span,
pub op: BinOpKind,
Expand Down
5 changes: 3 additions & 2 deletions crates/popper_builtin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use popper_asm::ast::{Register, Command, MemoryFetching, Mov, Add, Expr};
use popper_flag::{SymbolFlags, ValueFlag};
use popper_error::{diff_length_of_argument::DiffLengthOfArgument, typemismatch::TypeMismatch, Error};


pub trait Builtin {

fn args_type(&self) -> Vec<TypeKind>;
Expand Down Expand Up @@ -72,14 +73,14 @@ fn builtin_print() -> CustomBuiltin {
}

pub fn builtins() -> Builtins {
vec![
dbg!(vec![
Box::new(
builtin_print()
),
Box::new(
builtin_sum()
)
]
])
}

pub fn get_builtin(lang_name: &str, builtins: Builtins) -> Option<Box<dyn Builtin>> {
Expand Down

0 comments on commit 1ebfee0

Please sign in to comment.