Skip to content

Instantly share code, notes, and snippets.

@tomhodgins
Created July 7, 2020 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomhodgins/905fe34022d7730f2f2c676d45f6b9f0 to your computer and use it in GitHub Desktop.
Save tomhodgins/905fe34022d7730f2f2c676d45f6b9f0 to your computer and use it in GitHub Desktop.
// Instead of these function names (same as the heading text in CSS syntax spec):
parseAStylesheet()
parseAListOfRules()
parseARule()
parseADeclaration()
parseAListOfDeclarations()
parseAComponentValue()
parseAListOfComponentValues()
parseACommaSeparatedListOfComponentValues()
// why am I not using something simpler like this?
parse = {
stylesheet,
ruleList,
rule,
declarationList,
declaration,
componentList,
component,
commaList
}
parse.stylesheet()
parse.ruleList()
parse.rule()
parse.declarationList()
parse.declaration()
parse.componentList()
parse.component()
parse.commaList()
// 🧐💭❓
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment