Make lexeme and token logging more concise
This commit is contained in:
parent
cb24837ff0
commit
735b58866c
15 changed files with 229 additions and 20 deletions
|
|
@ -4,7 +4,7 @@ use crate::types::Config;
|
|||
|
||||
pub mod parser;
|
||||
|
||||
pub trait Parseable {
|
||||
pub trait Parseable: std::fmt::Display {
|
||||
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