mirror of
https://github.com/azur1s/bobbylisp.git
synced 2024-10-16 02:37:40 -05:00
misc
This commit is contained in:
parent
070b8b259c
commit
fefffdd79e
|
@ -62,6 +62,8 @@ pub struct IR {
|
|||
pub span: Range<usize>
|
||||
}
|
||||
|
||||
// S-Expression displaying for IR
|
||||
// Used for debugging (run `compile` with `-a`)
|
||||
impl std::fmt::Display for IRKind {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
|
||||
match self {
|
||||
|
|
|
@ -3,8 +3,11 @@ fun iter_ (vec: vec_int) (current: int): void = do
|
|||
do end;
|
||||
else
|
||||
do
|
||||
-- iter logic
|
||||
-- TODO: function as argument
|
||||
@get(vec, current) |> @write(_);
|
||||
@write("\n");
|
||||
|
||||
iter_(vec, current + 1);
|
||||
end;
|
||||
end;
|
||||
|
|
Loading…
Reference in a new issue