What is a good C/C++ CSS parser? [closed]

2019-01-23 08:41发布

What is a good C/C++ CSS parser? All that I can find is CSSTidy, and it seems to be more of an application than a parsing library.

标签: c++ c css parsing
3条回答
我只想做你的唯一
2楼-- · 2019-01-23 09:09

A pretty good bet would be to read through the Mozilla or Safari code-base. If you need something a little more accessible for another program, there's an ANTLR grammar (which you can use to create C++ code) at http://www.antlr3.org/grammar/1214945003224/csst3.g. The W3 validator is located at http://dev.w3.org/cvsweb/2002/css-validator/, but it is Java.

查看更多
We Are One
3楼-- · 2019-01-23 09:15

libcss seems also a common google hit and it looks good

http://www.netsurf-browser.org/projects/libcss/

查看更多
相关推荐>>
4楼-- · 2019-01-23 09:26

I googled for:

 "CSS Parser" C++ 

The first result is http://sourceforge.net/projects/htmlcxx. It's a CSS/HTML API for C++.

查看更多
登录 后发表回答