Break up 'types' module
This commit is contained in:
parent
c6f9ea667d
commit
db8c02df04
36 changed files with 382 additions and 329 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use parser::{token::Token, lexeme::Lexeme};
|
||||
use parser::{Token, Lexeme};
|
||||
|
||||
use crate::types::Graph;
|
||||
use crate::graph::Graph;
|
||||
|
||||
pub mod parser;
|
||||
|
||||
|
|
@ -18,3 +18,7 @@ type LexMap<'lm> = &'lm [(Probe, Lexer)];
|
|||
pub fn parse(text: &str, graph: &Graph) -> String {
|
||||
parser::read(text, graph)
|
||||
}
|
||||
|
||||
pub fn rich_parse(text: &str, graph: &Graph) -> (String, Vec<Token>) {
|
||||
parser::rich_read(text, graph)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue