Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move away from Regular Expression parsing of CSS #30

Open
danschultzer opened this issue Nov 25, 2018 · 1 comment
Open

Move away from Regular Expression parsing of CSS #30

danschultzer opened this issue Nov 25, 2018 · 1 comment

Comments

@danschultzer
Copy link
Owner

From #28:

I've been looking into building a CSS lexer and parser, and checked how Jason decodes JSON.

This ruby library is interesting too: https://github.com/rgrove/crass/blob/master/lib/crass/tokenizer.rb

And there's also this erlang project: https://github.com/acammack-r7/erlang-css

The way Jason does it is probably the better option, but it'll require time to get working. Not sure if I'll have the time available to fix this anytime soon. Any help/suggestions would be welcome.

Right now it's just a RegEx based parser. A tokenizer should be built instead.

@danschultzer
Copy link
Owner Author

I believe NimbleParsec is now the ideal way to build a tokenizer. Whenever I have the time I'll take a stab at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant