This commit is contained in:
nora 2022-07-04 08:58:30 +02:00
parent 1d56ed5dac
commit be1305bbb8
5 changed files with 32 additions and 52 deletions

View file

@ -11,8 +11,6 @@
use std::io::{Read, Write};
use logos::Span;
use crate::{
error::Result,
ir::{Place, Register, Stmt, Value},

View file

@ -62,17 +62,6 @@ impl DebugPls for Stmt {
}
}
struct Testln {
field: (),
hallo: std::path::Path,
}
impl std::fmt::Debug for Testl {
fn fmt(&self, f: std::fmt::Formatter<'_> {
f.write_str("Testln")
}
}
#[derive(Debug, PartialEq, Eq, DebugPls)]
pub enum StmtKind {
Mov { to: Expr, from: Expr },

View file

@ -41,7 +41,7 @@ Ok(
Stmt {
kind: Je {
to: Expr {
kind: Name(
kind: Symbol(
"true",
),
span: 24..28,
@ -52,7 +52,7 @@ Ok(
Stmt {
kind: Jmp {
to: Expr {
kind: Name(
kind: Symbol(
"false",
),
span: 33..38,
@ -69,7 +69,7 @@ Ok(
Stmt {
kind: Jmp {
to: Expr {
kind: Name(
kind: Symbol(
"exit",
),
span: 49..53,
@ -108,7 +108,7 @@ Ok(
Stmt {
kind: Jmp {
to: Expr {
kind: Name(
kind: Symbol(
"false",
),
span: 86..91,