You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After having tried and waited for several other parsing libraries to provide a HTML and CSS parser, and having gotten nothing out of it other than some knowledge, I have given up and want to write my own parsers using MPC.
Now, I am far from an expert in parsing and really just getting started - and, out of frustration, no less. ;)
So I wanted to start with something very, very simple: In CSS, seeing .foo > .bar is not uncommon, so I wanted to implement a basic version of that in mpc to learn how to start with the very basics:
My goal was to parse either "a" or "a>b" for now, and later add subsequent further depths with the > operator, like a>b>c>d.... What is the problem here, exactly? Did I order the rules incorrectly or something?
Thanks and kind regards!
(PS. my idea is to parse basic CSS to extract properties and feed it to LVGL widget properties and use HTML as a "commonly known way" to describe a UI. Think Electron, but much, much more minimal...intended for tiny tools at best.)
The text was updated successfully, but these errors were encountered:
Hello!
After having tried and waited for several other parsing libraries to provide a HTML and CSS parser, and having gotten nothing out of it other than some knowledge, I have given up and want to write my own parsers using MPC.
Now, I am far from an expert in parsing and really just getting started - and, out of frustration, no less. ;)
So I wanted to start with something very, very simple: In CSS, seeing
.foo > .bar
is not uncommon, so I wanted to implement a basic version of that in mpc to learn how to start with the very basics:This, however, tells me:
My goal was to parse either
"a"
or"a>b"
for now, and later add subsequent further depths with the>
operator, likea>b>c>d...
. What is the problem here, exactly? Did I order the rules incorrectly or something?Thanks and kind regards!
(PS. my idea is to parse basic CSS to extract properties and feed it to LVGL widget properties and use HTML as a "commonly known way" to describe a UI. Think Electron, but much, much more minimal...intended for tiny tools at best.)
The text was updated successfully, but these errors were encountered: