Created
July 7, 2020 17:41
-
-
Save tomhodgins/905fe34022d7730f2f2c676d45f6b9f0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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