Add boolean literals

This commit is contained in:
Bruno BELANYI 2024-04-07 23:39:47 +01:00
parent db2e88a539
commit 9dd109b90a
5 changed files with 2581 additions and 600 deletions

17
src/grammar.json generated
View file

@ -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": [