Last active
August 5, 2024 15:48
-
-
Save conartist6/62802b4563adeea14fc87252ac11095e to your computer and use it in GitHub Desktop.
CSTML JSON example: [1, true, "3"]
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
<!0:cstml bablr-language='https://github.com/bablr-lang/language-json'> | |
<> | |
<Array> | |
openToken: | |
<~*Punctuator '[' balanced=']' /> | |
elements[]: | |
<Number span='Number'> | |
wholePart: | |
<Integer> | |
digits[]: | |
<*Digit> | |
'1' | |
</> | |
</> | |
fractionalPart: | |
null | |
exponentPart: | |
null | |
</> | |
separators[]: | |
<~*Punctuator ',' /> | |
<#*Space:Space> | |
' ' | |
</> | |
elements[]: | |
<Boolean> | |
sigilToken: | |
<~*Keyword 'true' /> | |
</> | |
separators[]: | |
<~*Punctuator ',' /> | |
<#*Space:Space> | |
' ' | |
</> | |
elements[]: | |
<String> | |
openToken: | |
<~*Punctuator '"' balanced='"' balancedSpan='String' /> | |
content: | |
<*StringContent> | |
'3' | |
</> | |
closeToken: | |
<~*Punctuator '"' balancer /> | |
</> | |
closeToken: | |
<~*Punctuator ']' balancer /> | |
</> | |
</> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment