Add tests for the content syntax parser
This commit is contained in:
parent
4ae966e503
commit
e50bbd468d
12 changed files with 383 additions and 120 deletions
|
|
@ -2,7 +2,7 @@ use parser::{token::Token, lexeme::Lexeme};
|
|||
|
||||
pub mod parser;
|
||||
|
||||
pub trait Parseable: Into<Token> {
|
||||
pub trait Parseable {
|
||||
fn probe(lexeme: &Lexeme) -> bool;
|
||||
fn lex(lexeme: &Lexeme) -> Self;
|
||||
fn render(&self) -> String;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue