Skip to content

Instantly share code, notes, and snippets.

View tanner00's full-sized avatar
🍀

Tanner Willis tanner00

🍀
View GitHub Profile
package main
import "strings"
type Id struct {
Id string
}
func (Id) CanParse() {}
@tanner00
tanner00 / parse.rs
Created August 13, 2018 19:25
A lisp parser in Rust
#[derive(Debug)]
pub enum Node {
Id(String),
List(Box<Option<Node>>, Vec<Node>),
}
pub struct Parser {
input: String,
position: usize,
}