svg-filters & basic parser #15

Merged
schrottkatze merged 67 commits from schrottkatze/iowo:svg-filters into main 2024-07-08 18:29:05 +00:00
2 changed files with 18 additions and 2 deletions
Showing only changes of commit 2d59a7f560 - Show all commits

View file

@ -1,6 +1,5 @@
use std::borrow::Borrow;
use chumsky::container::Container;
use rowan::{
Checkpoint, GreenNode, GreenNodeBuilder, GreenNodeData, GreenTokenData, Language, NodeOrToken,
};
@ -12,6 +11,23 @@ use crate::parser::{
use super::lex::{self, SyntaxKind};
mod parsers {
use rowan::GreenNode;
use crate::parser::ast::lossless::lex::SyntaxKind;
use super::SyntaxError;
struct ParseResult {
green_node: GreenNode,
errors: Vec<SyntaxError>,
}
trait Parser {
fn parse<'src>(input: &[(SyntaxKind, &'src str)]) -> ParseResult;
}
}
#[derive(PartialEq, Eq)]
pub struct Parse {
pub green_node: GreenNode,

View file

@ -46,7 +46,7 @@
};
pre-commit.hooks = {
clippy.enable = true;
clippy.enable = false;
rustfmt.enable = true;
};