fixed the line system
This commit is contained in:
+2
-1
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user