Add boolean literals
This commit is contained in:
parent
db2e88a539
commit
9dd109b90a
5 changed files with 2581 additions and 600 deletions
17
src/grammar.json
generated
17
src/grammar.json
generated
|
|
@ -75,6 +75,10 @@
|
|||
"type": "SYMBOL",
|
||||
"name": "identifier"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "boolean_literal"
|
||||
},
|
||||
{
|
||||
"type": "SYMBOL",
|
||||
"name": "integer_literal"
|
||||
|
|
@ -97,6 +101,19 @@
|
|||
"type": "PATTERN",
|
||||
"value": "[_\\p{XID_Start}][_\\p{XID_Continue}]*"
|
||||
},
|
||||
"boolean_literal": {
|
||||
"type": "CHOICE",
|
||||
"members": [
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "true"
|
||||
},
|
||||
{
|
||||
"type": "STRING",
|
||||
"value": "false"
|
||||
}
|
||||
]
|
||||
},
|
||||
"integer_literal": {
|
||||
"type": "SEQ",
|
||||
"members": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue