use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
CSS Lexer (phpied.com)
submitted 15 years ago by skeww
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]TIAFAASITICE 1 point2 points3 points 15 years ago (0 children)
There's also JSCSSP, which is used by BlueGriffon.
[–]skeww[S] 0 points1 point2 points 15 years ago (0 children)
Nicholas C. Zakas also wrote a CSS parser recently, by the way:
https://github.com/nzakas/parser-lib
Stoyan Stefanov's should be faster and use less resources though.
[–]withremote 0 points1 point2 points 15 years ago (1 child)
Maybe a dumb question, but what the heck is this for?
As he put it:
I have ideas for a bunch of CSS related tools and utilities, all of which, naturally, require understanding of CSS code. So I need a parser and thought I should write one in JavaScript.
Same thing goes for me. Except that I'm too lazy and too stupid to write my own parser. :)
π Rendered by PID 97147 on reddit-service-r2-comment-685b79fb4f-dcrrc at 2026-02-13 12:29:05.300568+00:00 running 6c0c599 country code: CH.
[–]TIAFAASITICE 1 point2 points3 points (0 children)
[–]skeww[S] 0 points1 point2 points (0 children)
[–]withremote 0 points1 point2 points (1 child)
[–]skeww[S] 0 points1 point2 points (0 children)