mirror of
https://github.com/Noratrieb/crapderive.git
synced 2026-01-14 16:45:08 +01:00
doc doc
This commit is contained in:
parent
1722a9ea0f
commit
1d56ed5dac
4 changed files with 26 additions and 28 deletions
|
|
@ -33,6 +33,7 @@ pub struct Location {
|
|||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, DebugPls)]
|
||||
// tag::stmt[]
|
||||
pub enum Stmt {
|
||||
Mov { to: Place, from: Value },
|
||||
Movb { to: Place, from: Value },
|
||||
|
|
@ -45,6 +46,7 @@ pub enum Stmt {
|
|||
Je { to: Location },
|
||||
Cmp { lhs: Value, rhs: Value },
|
||||
}
|
||||
// end::stmt[]
|
||||
|
||||
struct CompileCtx {
|
||||
stmts: Vec<Stmt>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue