Skip to content

Commit 258a369

Browse files
committed
Adding a just_parse.rb file for help optimizing the parser
Right now performance is swamped parsing the full css. This will let me work on optimizing the parser without dealing with the redundancy checking
1 parent 9a3920d commit 258a369

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/just_parse.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#! /usr/bin/env ruby
2+
3+
require "debugger"
4+
require "csscss"
5+
6+
raise "need a file name" unless ARGV[0]
7+
contents = File.read(ARGV[0])
8+
rule_sets = Csscss::Parser::Css.parse(contents)

0 commit comments

Comments
 (0)