rename serialization file (conflicts with serde)
This commit is contained in:
parent
93067b3010
commit
9b2ad49f3b
3 changed files with 3 additions and 7 deletions
|
@ -27,9 +27,9 @@ use thiserror::Error;
|
|||
use utils::{inflate, InflateError};
|
||||
|
||||
mod lex;
|
||||
mod ser;
|
||||
mod serialize;
|
||||
mod utils;
|
||||
pub use ser::*;
|
||||
pub use serialize::*;
|
||||
|
||||
use super::Expression as Instruction;
|
||||
|
||||
|
|
|
@ -40,11 +40,7 @@ impl Parse for Modifier {
|
|||
|
||||
pub fn flat_atom_parser(notes: &str) -> impl Parser<&str, FlatAtom, nom::error::Error<&str>> {
|
||||
alt((
|
||||
map_res(
|
||||
map_opt(one_of(notes), |c| notes.find(dbg!(c))),
|
||||
u8::try_from,
|
||||
)
|
||||
.map(FlatAtom::Note),
|
||||
map_res(map_opt(one_of(notes), |c| notes.find(c)), u8::try_from).map(FlatAtom::Note),
|
||||
value(FlatAtom::Rest, char(Atom::REST)),
|
||||
value(FlatAtom::StartHere, char(Atom::START_HERE)),
|
||||
preceded(char(Atom::MODIFIER), Modifier::parse).map(FlatAtom::Modifier),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue