not sure?
This commit is contained in:
parent
ad974a40e5
commit
8d53533235
|
@ -105,7 +105,7 @@ pub fn lexer(text_source: &str) -> Result<Vec<Token>, KError> {
|
||||||
let num = match current_token.parse::<f64>() {
|
let num = match current_token.parse::<f64>() {
|
||||||
Ok(n) => n,
|
Ok(n) => n,
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
println!("{} {}", span_start, pos);
|
debug!("{} {}", span_start, pos);
|
||||||
return Err(KError::UserError(vec![
|
return Err(KError::UserError(vec![
|
||||||
Diagnostic {
|
Diagnostic {
|
||||||
message: "invalid numeric literal".to_string(),
|
message: "invalid numeric literal".to_string(),
|
||||||
|
|
Loading…
Reference in New Issue