Skip to content

Commit 97e29b3

Browse files
committed
1 parent f0a4ee1 commit 97e29b3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+456
-455
lines changed

designer/DesignerApp.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class DesignerApp extends AbstractParticleComponentParser {
5050
}
5151

5252
inferPrefixParsersCommand() {
53-
this.setParsersCode(new UnknownParsersProgram(this.getCodeValue()).inferParsersFileForAKeywordLanguage("inferredLanguage"))
53+
this.setParsersCode(new UnknownParsersProgram(this.getCodeValue()).inferParsersFileForACueLanguage("inferredLanguage"))
5454
this._onParsersKeyup()
5555
}
5656

@@ -535,7 +535,7 @@ class tableComponent extends AbstractParticleComponentParser {
535535
tr
536536
td
537537
span Your Parsers  
538-
a Infer Prefix Parsers
538+
a Infer Cue Parsers
539539
clickCommand inferPrefixParsersCommand
540540
span |  
541541
a Synthesize Program

langs/arrow/arrow.parsers

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Atom parsers
2-
keywordAtom
2+
cueAtom
33
enum charge cardNumber amount currency description token
44
floatAtom
55
integerAtom
@@ -50,7 +50,7 @@ chargeParser
5050
inScope amountParser currencyParser descriptionParser cardNumberParser tokenParser
5151
description A credit card charge
5252
cueFromId
53-
atoms keywordAtom
53+
atoms cueAtom
5454
javascript
5555
async execute() {
5656
const card = this.get("cardNumber")
@@ -62,17 +62,17 @@ abstractChargeAttributeParser
6262
single
6363
cardNumberParser
6464
extends abstractChargeAttributeParser
65-
atoms keywordAtom cardNumberAtom
65+
atoms cueAtom cardNumberAtom
6666
amountParser
6767
extends abstractChargeAttributeParser
68-
atoms keywordAtom amountAtom
68+
atoms cueAtom amountAtom
6969
currencyParser
7070
extends abstractChargeAttributeParser
71-
atoms keywordAtom currencyAtom
71+
atoms cueAtom currencyAtom
7272
descriptionParser
7373
extends abstractChargeAttributeParser
74-
atoms keywordAtom
74+
atoms cueAtom
7575
catchAllAtomType descriptionAtom
7676
tokenParser
7777
cueFromId
78-
atoms keywordAtom tokenAtom
78+
atoms cueAtom tokenAtom

langs/config/config.parsers

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ anyAtom
33
valueAtom
44
paint string
55
description Any character is valid in a value.
6-
keywordAtom
6+
cueAtom
77
description Allows any character except a space.
88
paint keyword
99

@@ -15,4 +15,4 @@ configParser
1515
pairParser
1616
description Holds a key/value pair
1717
catchAllAtomType valueAtom
18-
atoms keywordAtom
18+
atoms cueAtom

langs/dug/dug.parsers

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// Atom Parsers
55
anyAtom
6-
keywordAtom
6+
cueAtom
77
paint keyword
88
stringAtom
99
paint string
@@ -25,15 +25,15 @@ dugParser
2525
return JSON.stringify(JSON.parse(res), null, 2)
2626
}
2727
abstractValueParser
28-
atoms keywordAtom
28+
atoms cueAtom
2929
cueFromId
3030
nullParser
3131
compiler
3232
stringTemplate null
3333
extends abstractValueParser
3434
numberParser
3535
extends abstractValueParser
36-
atoms keywordAtom numberAtom
36+
atoms cueAtom numberAtom
3737
compiler
3838
stringTemplate {numberAtom}
3939
stringParser
@@ -43,7 +43,7 @@ stringParser
4343
extends abstractValueParser
4444
booleanParser
4545
extends abstractValueParser
46-
atoms keywordAtom booleanAtom
46+
atoms cueAtom booleanAtom
4747
compiler
4848
stringTemplate {booleanAtom}
4949
objectParser

langs/dumbdown/dumbdown.parsers

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dashAtom
55
paint constant.language
66
codeAtom
77
paint comment
8-
keywordAtom
8+
cueAtom
99
paint keyword
1010
textAtom
1111
paint string
@@ -34,9 +34,9 @@ dumbdownParser
3434
// You can add code as well.
3535
print("Hello world")
3636
abstractTopLevelParser
37-
atoms keywordAtom
37+
atoms cueAtom
3838
linkParser
39-
atoms keywordAtom urlAtom
39+
atoms cueAtom urlAtom
4040
catchAllAtomType textAtom
4141
extends abstractTopLevelParser
4242
compiler

langs/fire/fire.parsers

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ methodIdentifierAtom
3232
extends identifierAtom
3333
resultIdentifierAtom
3434
extends identifierAtom
35-
keywordAtom
35+
cueAtom
3636
paint keyword
3737
stringIdentifierAtom
3838
extends identifierAtom
@@ -63,7 +63,7 @@ fireParser
6363
}
6464
abstractNonTerminalParser
6565
inScope abstractTerminalParser abstractNonTerminalParser
66-
atoms keywordAtom
66+
atoms cueAtom
6767
abstractJsblockParser
6868
compiler
6969
openSubparticles {
@@ -79,7 +79,7 @@ blockParser
7979
functionParser
8080
cue function
8181
description Function Assignment
82-
atoms keywordAtom functionIdentifierAtom
82+
atoms cueAtom functionIdentifierAtom
8383
catchAllAtomType anyAtom
8484
compiler
8585
stringTemplate const {functionIdentifierAtom} = ({anyAtom}) =>
@@ -89,25 +89,25 @@ functionParser
8989
ifParser
9090
cue if
9191
description If tile
92-
atoms keywordAtom identifierAtom
92+
atoms cueAtom identifierAtom
9393
popularity .2
9494
compiler
9595
stringTemplate if ({identifierAtom})
9696
extends abstractJsblockParser
9797
whileParser
9898
cue while
9999
description While tile
100-
atoms keywordAtom identifierAtom
100+
atoms cueAtom identifierAtom
101101
popularity .1
102102
compiler
103103
stringTemplate while ({identifierAtom})
104104
extends abstractJsblockParser
105105
abstractTerminalParser
106-
atoms keywordAtom
106+
atoms cueAtom
107107
abstractAssignmentParser
108108
extends abstractTerminalParser
109109
abstractArithmeticParser
110-
atoms keywordAtom identifierAtom
110+
atoms cueAtom identifierAtom
111111
catchAllAtomType anyAtom
112112
compiler
113113
stringTemplate const {identifierAtom} = {anyAtom}
@@ -150,23 +150,23 @@ abstractBooleanOperatorParser
150150
extends abstractAssignmentParser
151151
greaterThanParser
152152
description Greater than test
153-
atoms keywordAtom identifierAtom leftNumberAtom numberAtom
153+
atoms cueAtom identifierAtom leftNumberAtom numberAtom
154154
compiler
155155
stringTemplate const {identifierAtom} = {leftNumberAtom} > {numberAtom}
156156
popularity .1
157157
extends abstractBooleanOperatorParser
158158
cue greaterThan
159159
greaterThanOrEqualParser
160160
description Greater than or equal to test
161-
atoms keywordAtom identifierAtom leftNumberAtom numberAtom
161+
atoms cueAtom identifierAtom leftNumberAtom numberAtom
162162
compiler
163163
stringTemplate const {identifierAtom} = {leftNumberAtom} >= {numberAtom}
164164
popularity .1
165165
extends abstractBooleanOperatorParser
166166
cue greaterThanOrEqual
167167
lessThanParser
168168
description Less than test
169-
atoms keywordAtom identifierAtom leftAnyAtom anyAtom
169+
atoms cueAtom identifierAtom leftAnyAtom anyAtom
170170
compiler
171171
stringTemplate const {identifierAtom} = {leftAnyAtom} < {anyAtom}
172172
popularity .1
@@ -175,15 +175,15 @@ lessThanParser
175175
lessThanOrEqualParser
176176
cue lessThanOrEqual
177177
description Less than or equal to test
178-
atoms keywordAtom identifierAtom leftAnyAtom anyAtom
178+
atoms cueAtom identifierAtom leftAnyAtom anyAtom
179179
compiler
180180
stringTemplate const {identifierAtom} = {leftAnyAtom} <= {anyAtom}
181181
popularity .1
182182
extends abstractBooleanOperatorParser
183183
sumParser
184184
cue sum
185185
description Add numbers and store result
186-
atoms keywordAtom numberIdentifierAtom
186+
atoms cueAtom numberIdentifierAtom
187187
catchAllAtomType numberAtom
188188
compiler
189189
stringTemplate const {numberIdentifierAtom} = [{numberAtom}].reduce((sum, num) => sum + num)
@@ -193,15 +193,15 @@ sumParser
193193
booleanParser
194194
cue boolean
195195
description Boolean Assignment
196-
atoms keywordAtom booleanIdentifierAtom booleanAtom
196+
atoms cueAtom booleanIdentifierAtom booleanAtom
197197
compiler
198198
stringTemplate const {booleanIdentifierAtom} = {booleanAtom}
199199
extends abstractAssignmentParser
200200
callFunctionAndSetParser
201201
cue callFunctionAndSet
202202
description Function Call
203203
popularity .5
204-
atoms keywordAtom resultIdentifierAtom functionIdentifierAtom
204+
atoms cueAtom resultIdentifierAtom functionIdentifierAtom
205205
catchAllAtomType anyAtom
206206
compiler
207207
stringTemplate const {resultIdentifierAtom} = {functionIdentifierAtom}({anyAtom})
@@ -211,7 +211,7 @@ callMethodAndSetParser
211211
cue callMethodAndSet
212212
description Method Call
213213
popularity .5
214-
atoms keywordAtom resultIdentifierAtom instanceIdentifierAtom methodIdentifierAtom
214+
atoms cueAtom resultIdentifierAtom instanceIdentifierAtom methodIdentifierAtom
215215
catchAllAtomType anyAtom
216216
compiler
217217
stringTemplate const {resultIdentifierAtom} = {instanceIdentifierAtom}.{methodIdentifierAtom}({anyAtom})
@@ -220,7 +220,7 @@ callMethodAndSetParser
220220
joinParser
221221
cue join
222222
description Join strings to form new string
223-
atoms keywordAtom identifierAtom
223+
atoms cueAtom identifierAtom
224224
catchAllAtomType identifiersAtom
225225
compiler
226226
stringTemplate const {identifierAtom} = [{identifiersAtom}].join("")
@@ -230,22 +230,22 @@ joinParser
230230
mutableNumberParser
231231
cue mutableNumber
232232
description Mutable Number Assignment
233-
atoms keywordAtom identifierAtom numberAtom
233+
atoms cueAtom identifierAtom numberAtom
234234
compiler
235235
stringTemplate let {identifierAtom} = {numberAtom}
236236
extends abstractAssignmentParser
237237
numberParser
238238
cue number
239239
description Number Assignment
240-
atoms keywordAtom identifierAtom numberAtom
240+
atoms cueAtom identifierAtom numberAtom
241241
compiler
242242
stringTemplate const {identifierAtom} = {numberAtom}
243243
popularity .3
244244
extends abstractAssignmentParser
245245
numbersParser
246246
cue numbers
247247
description Number Array Assignment
248-
atoms keywordAtom identifierAtom
248+
atoms cueAtom identifierAtom
249249
catchAllAtomType numberAtom
250250
popularity .4
251251
compiler
@@ -255,7 +255,7 @@ numbersParser
255255
stringParser
256256
cue string
257257
description String Assignment
258-
atoms keywordAtom stringIdentifierAtom
258+
atoms cueAtom stringIdentifierAtom
259259
catchAllAtomType anyAtom
260260
compiler
261261
stringTemplate const {stringIdentifierAtom} = "{anyAtom}"
@@ -265,7 +265,7 @@ callFunctionParser
265265
cue callFunction
266266
description Function call ignore result.
267267
popularity .1
268-
atoms keywordAtom functionIdentifierAtom
268+
atoms cueAtom functionIdentifierAtom
269269
catchAllAtomType anyAtom
270270
compiler
271271
stringTemplate {functionIdentifierAtom}({anyAtom})
@@ -274,7 +274,7 @@ callFunctionParser
274274
decrementParser
275275
cue decrement
276276
description Decrement
277-
atoms keywordAtom numberIdentifierAtom
277+
atoms cueAtom numberIdentifierAtom
278278
compiler
279279
stringTemplate {numberIdentifierAtom}--
280280
popularity .1
@@ -291,7 +291,7 @@ dumpIdentifierParser
291291
exportParser
292292
cue export
293293
description Export This
294-
atoms keywordAtom identifierAtom
294+
atoms cueAtom identifierAtom
295295
compiler
296296
stringTemplate module.exports = {identifierAtom}
297297
popularity .1
@@ -300,7 +300,7 @@ incrementParser
300300
cue increment
301301
description Increment
302302
popularity .3
303-
atoms keywordAtom numberIdentifierAtom
303+
atoms cueAtom numberIdentifierAtom
304304
compiler
305305
stringTemplate {numberIdentifierAtom}++
306306
extends abstractTerminalParser
@@ -320,14 +320,14 @@ printStringParser
320320
requireParser
321321
cue require
322322
description Require Something
323-
atoms keywordAtom identifierAtom filepathAtom
323+
atoms cueAtom identifierAtom filepathAtom
324324
compiler
325325
stringTemplate const {identifierAtom} = require("{filepathAtom}")
326326
popularity .1
327327
extends abstractTerminalParser
328328
returnParser
329329
cue return
330-
atoms keywordAtom anyAtom
330+
atoms cueAtom anyAtom
331331
compiler
332332
stringTemplate return {anyAtom}
333333
popularity .1

langs/hakon/hakon.parsers

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Atom Parsers
22
anyAtom
3-
keywordAtom
3+
cueAtom
44
commentKeywordAtom
5-
extends keywordAtom
5+
extends cueAtom
66
paint comment
77
enum comment
88
extraAtom
@@ -16,10 +16,9 @@ selectorAtom
1616
vendorPrefixCueAtom
1717
description Properties like -moz-column-fill
1818
paint variable.function
19-
extends keywordAtom
20-
cueAtom
19+
extends cueAtom
20+
propertyNameAtom
2121
paint variable.function
22-
extends keywordAtom
2322
// todo Where are these coming from? Can we add a url link
2423
enum align-content align-items align-self all animation animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name animation-play-state animation-timing-function backface-visibility background background-attachment background-blend-mode background-clip background-color background-image background-origin background-position background-repeat background-size border border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-collapse border-color border-image border-image-outset border-image-repeat border-image-slice border-image-source border-image-width border-left border-left-color border-left-style border-left-width border-radius border-right border-right-color border-right-style border-right-width border-spacing border-style border-top border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width border-width bottom box-shadow box-sizing break-inside caption-side clear clip color column-count column-fill column-gap column-rule column-rule-color column-rule-style column-rule-width column-span column-width columns content counter-increment counter-reset cursor direction display empty-atoms fill filter flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap float font @font-face font-family font-size font-size-adjust font-stretch font-style font-variant font-weight hanging-punctuation height hyphens justify-content @keyframes left letter-spacing line-height list-style list-style-image list-style-position list-style-type margin margin-bottom margin-left margin-right margin-top max-height max-width @media min-height min-width nav-down nav-index nav-left nav-right nav-up opacity order outline outline-color outline-offset outline-style outline-width overflow overflow-x overflow-y padding padding-bottom padding-left padding-right padding-top page-break-after page-break-before page-break-inside perspective perspective-origin position quotes resize right tab-size table-layout text-align text-align-last text-decoration text-decoration-color text-decoration-line text-decoration-style text-indent text-justify text-overflow text-shadow text-transform top transform transform-origin transform-style transition transition-delay transition-duration transition-property transition-timing-function unicode-bidi vertical-align visibility white-space width atom-break atom-spacing atom-wrap z-index overscroll-behavior-x user-select -ms-touch-action -webkit-user-select -webkit-touch-callout -moz-user-select touch-action -ms-user-select -khtml-user-select gap grid-auto-flow grid-column grid-column-end grid-column-gap grid-column-start grid-gap grid-row grid-row-end grid-row-gap grid-row-start grid-template-columns grid-template-rows justify-items justify-self
2524
errorAtom
@@ -60,7 +59,7 @@ propertyParser
6059
compile(spaces) {
6160
return `${spaces}${this.cue}: ${this.content};`
6261
}
63-
atoms cueAtom
62+
atoms propertyNameAtom
6463
variableParser
6564
extends propertyParser
6665
pattern --

0 commit comments

Comments
 (0)