fixed the line system

This commit is contained in:
2024-05-07 17:51:31 +02:00
parent b4e6b6ca0b
commit 1e4acdec40
3 changed files with 113 additions and 96 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ mod lexer;
mod compile;
use std::fs;
use clap::Parser;
use lexer::LexerState;
// Arguments for Wyst (short and long version)
#[derive(Parser)]
@@ -23,7 +24,7 @@ fn main() {
let file_content = fs::read_to_string(&args.file)
.expect("Error reading file");
let transpiled_code = transpiler::transpile(file_content, 0);
let transpiled_code = transpiler::transpile(file_content, 0, LexerState { line: 1, column: 0 });
match args.rust {
Some(ref rust_file_name) => {