cl-lexer: Move lexer into its own crate

This commit is contained in:
2024-02-29 20:58:50 -06:00
parent abf00f383c
commit 50b473cd55
15 changed files with 198 additions and 188 deletions

View File

@@ -1,9 +1,9 @@
//! Collects identifiers into a list
use cl_lexer::Lexer;
use cl_parser::Parser;
use cl_repl::repline::Repline;
use cl_structures::span::Loc;
use conlang::lexer::Lexer;
use std::{
collections::HashMap,
error::Error,

View File

@@ -1,7 +1,7 @@
//! This example grabs input from stdin, lexes it, and prints which lexer rules matched
#![allow(unused_imports)]
use cl_lexer::Lexer;
use cl_token::Token;
use conlang::lexer::Lexer;
use std::{
error::Error,
io::{stdin, IsTerminal, Read},