This commit is contained in:
Alain Zscheile 2023-12-23 22:29:22 +01:00
parent c38236847d
commit 1c5bc9c3da
4 changed files with 8 additions and 13 deletions

6
Cargo.lock generated
View file

@ -16,9 +16,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "bitflags"
version = "2.3.1"
version = "2.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6776fc96284a0bb647b615056fc496d1fe1644a7ab01829818a6d91cae888b84"
checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07"
[[package]]
name = "cfg-if"
@ -155,7 +155,7 @@ checksum = "e5464a87b239f13a63a501f2701565754bae92d243d4bb7eb12f6d57d2269bf4"
name = "wafl-parser"
version = "0.1.0"
dependencies = [
"bitflags 2.3.1",
"bitflags 2.4.1",
"peeking_take_while",
"string_cache",
"unicode-ident",

View file

@ -3,9 +3,10 @@ name = "wafl-parser"
description = "Walls of Flesh parser"
version = "0.1.0"
edition = "2021"
license = "Apache-2.0"
[dependencies]
bitflags = "2.3"
bitflags = "2.4"
peeking_take_while = "1.0"
string_cache = "0.8"
unicode-ident = "1.0"

View file

@ -1,3 +1,5 @@
#![no_std]
extern crate alloc;
pub mod lex;
pub mod parser;

View file

@ -1,4 +1,4 @@
use alloc::collections::BTreeMap;
use alloc::{boxed::Box, collections::BTreeMap, vec::Vec};
use bitflags::bitflags;
use core::iter::Peekable;
use peeking_take_while::PeekableExt as _;
@ -53,14 +53,6 @@ pub enum Expression {
},
}
// a match is the destructuring stmt for tags
#[derive(Clone, Debug)]
pub struct Match {
pub loc: Location,
pub module: Expression,
pub key: Expression,
}
#[derive(Clone, Debug)]
pub struct FullIdentifier {
pub loc: Location,