Hello,
I am currently in need of a css stylesheet parser to retrieve the CSSOM as
a go datastructure.
(probably in a map[*selector* string]map[*cssproperty* string]interface{})
The existing Go libraries that can be found online are a bit lacking in
that respect, imho.
But I also have never written any lexer/parser before. Watched Rob's
youtube video from a while ago which helped in understanding a little bit
but it's only the lexing part.
So I was wondering, what does the parsing step consist in because the
examples of codes I've been looking at online so far were a bit confusing
to me.
I also would like to know if there are ways to create a parser from simply
inputing the ebnf form (found it for CSS3) somewhere? Becauser I am lazy ;D
Notably, I have never understood what should my output look like after
parsing... If this is an AST, should I define the Node type structure
somewhere? What to do?
Bref, I am a total noob on that subject.
Please, help :D
(I also may need to be able to parse the css from an html file afterwards
but I think there are better libraries that already exist for this case)
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/1bf065d3-1915-435d-a5bb-c9afc42481dbn%40googlegroups.com.