Jon*_*ury 27
GitHub上的ExCSS(支持CSS2.1和CSS3):https://github.com/TylerBrinks/ExCSS.
这是代码项目文章的更新版本:http://www.codeproject.com/KB/recipes/CSSParser.aspx
小智 6
GoldParser有一个CSS语法文件:
http://goldparser.org/grammars/files/css.zip
GoldParser很容易包含在C#项目中,并生成一个真正的LALR解析器 - 而不是一些正则表达式.