mirror of
https://github.com/TxtDot/dalet-rs.git
synced 2025-02-26 12:21:24 +03:00
refactor(lexer): make functions for specific tokens
This commit is contained in:
parent
aaa4328818
commit
ccc9773030
4 changed files with 136 additions and 106 deletions
|
@ -1,12 +1,12 @@
|
|||
use ariadne::{Color, Label, Report, ReportKind, Source};
|
||||
use chumsky::Parser;
|
||||
use dalet::daleth::{format::format, lexer::lexer};
|
||||
use dalet::daleth::{format::format, lexer::full_lexer};
|
||||
|
||||
fn main() {
|
||||
let src_file = "daleth.dlth";
|
||||
let src = include_str!("./daleth.dlth");
|
||||
|
||||
let parsed = lexer().parse(src);
|
||||
let parsed = full_lexer().parse(src);
|
||||
|
||||
match parsed.into_result() {
|
||||
Ok(t) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue