-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
parserLeetsheet.scroll
76 lines (65 loc) · 2.01 KB
/
parserLeetsheet.scroll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
title Parsers LeetSheet
header.scroll
printTitle
css body {color: grey;}
center
*Parsers* is the advanced language Scroll developers use to extend the Scroll language with new parsers. Parsers files end in *.parsers*. Book available: Parsers Explained.
https://parsers.breckyunits.com/ Parsers Explained
br
thinColumns 4
printparsersLeetSheet
endColumns
Parser Phases: Assemble -> Acquire -> Analyze -> Act
center
center
Links - Parser Designer · Particles Sandbox · r/WorldWideScroll · Release Notes & Roadmap · Scroll LeetSheet · Particles LeetSheet
https://sdk.scroll.pub/designer/index.html Parser Designer
https://sdk.scroll.pub/sandbox/index.html Particles Sandbox
https://reddit.com/r/WorldWideScroll r/WorldWideScroll
https://sdk.scroll.pub/langs/parsers/ Release Notes & Roadmap
leetsheet.html Scroll LeetSheet
particlesLeetsheet.html Particles LeetSheet
br
// Currently updated by hand.
1. Open Scroll parsers in Parser Designer
2. Copy/paste Scroll parsers into Program side, and switch language side to Parsers
3. In DevTools run: copy(app.program.topDownArray.map(a => a.definition.id).join("\n"))
4. In try.scroll.pub paste data, add header, and use Tables groupBy to get counts.
thinColumns 1
expander Parser usage rankings
A rough _estimate_ of parser usage in Parsers.
table
printTable
data
count id
2293 catchAllJavascriptCodeLineParser
341 catchAllMultilineStringConstantParser
258 parserDefinitionParser
212 extendsParserParser
184 parserDescriptionParser
164 javascriptParser
155 catchAllExampleLineParser
80 cueFromIdParser
69 atomsParser
66 cueParser
66 catchAllAtomTypeParser
61 exampleParser
43 atomTypeDefinitionParser
36 stringParser
34 slashCommentParser
32 booleanParser
26 catchAllParserParser
25 paintParser
21 inScopeParser
21 extendsAtomTypeParser
12 atomTypeDescriptionParser
8 patternParser
7 singleParser
6 baseParserParser
4 enumParser
3 regexParser
3 commentLineParser
2 floatParser
1 tagsParser
1 rootFlagParser
footer.scroll