Finally have things printing to the screen

Nothing fancy yet. This commit adds a bunch of stuff (oops):

* compiling code
* VM with instructions
* remove eval.rs and just eval in the Machine struct itself
* squash most warnings now that we're using stuff here

And probably more. But that's all for now folks

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-01-12 17:35:48 -08:00
parent a190157eeb
commit 1c669decc4
14 changed files with 561 additions and 93 deletions

View File

@@ -9,10 +9,12 @@ pub enum Expr {
#[derive(Debug, Clone, PartialEq)]
pub enum Atom {
Assign(Str),
Word(Str),
Float(Float),
Int(Int),
Str(Str),
Apply,
}
pub type SpAtom = Spanned<Atom>;