add: vector SymbolTable init
This commit is contained in:
+10
@@ -1,4 +1,5 @@
|
|||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
#![allow(dead_code)]
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
@@ -6,6 +7,15 @@ use std::io::{BufRead, BufReader};
|
|||||||
use log::{debug, error, info, trace, warn};
|
use log::{debug, error, info, trace, warn};
|
||||||
use plume_log::{PlumeBuilder, success};
|
use plume_log::{PlumeBuilder, success};
|
||||||
|
|
||||||
|
struct SymbolRow {
|
||||||
|
sym: String,
|
||||||
|
_type: String,
|
||||||
|
scope: String,
|
||||||
|
is_const: bool,
|
||||||
|
}
|
||||||
|
|
||||||
|
static SYM_TABLE: Vec<SymbolRow> = Vec::new();
|
||||||
|
|
||||||
fn main() -> std::io::Result<()>{
|
fn main() -> std::io::Result<()>{
|
||||||
PlumeBuilder::new()
|
PlumeBuilder::new()
|
||||||
.with_level(log::LevelFilter::Trace)
|
.with_level(log::LevelFilter::Trace)
|
||||||
|
|||||||
Reference in New Issue
Block a user