Skip to content

Commit

Permalink
tools: make parser_speed.v more robust (now `find . -name "*.v" | xar…
Browse files Browse the repository at this point in the history
…gs v run cmd/tools/measure/parser_speed.v` passes)
  • Loading branch information
spytheman committed Aug 14, 2023
1 parent 2fec2fa commit eef77e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/tools/measure/parser_speed.v
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ fn main() {
}

fn process_files(files []string) ! {
mut table := ast.new_table()
mut pref_ := pref.new_preferences()
pref_.is_fmt = true
pref_.skip_warnings = true
Expand All @@ -28,6 +27,7 @@ fn process_files(files []string) ! {
mut total_bytes := i64(0)
mut total_tokens := i64(0)
for f in files {
mut table := ast.new_table()
if f == '' {
continue
}
Expand Down

0 comments on commit eef77e3

Please sign in to comment.