start bytecode compilation

This commit is contained in:
nora 2021-12-29 17:00:30 +01:00
parent b35d12e041
commit c6765d7da6
14 changed files with 342 additions and 46 deletions

View file

@ -2,13 +2,11 @@
//! The AST module contains all structs and enums for the abstract syntax tree generated by the parser
use crate::errors::Span;
use crate::value::Symbol;
/// imagine interning or something here
pub type Symbol = String;
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct Ident {
pub name: Symbol,
pub sym: Symbol,
pub span: Span,
}