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
This is a challenge of designing any parser based on context free grammars. How it is solved depends on the methods you prefer. You could use two separate parsers in conjunction and it would look similar to your example. You could also try using flags and start conditions, which Jison supports.
Hi, Im implementing an CSS parser with Jison, but sometimes I will need to use just a context of grammar, instead it all.
For example, a full parse works ok with this:
body { background: #fff }
but sometimes I just wanna parse the Attributes context, like:
background: #fff
Will be nice to be able to do something like:
attributes = parser.parse("background: #fff", "Attributes")
The text was updated successfully, but these errors were encountered: