Add negative integers

This commit is contained in:
Bruno BELANYI 2024-04-07 22:49:15 +01:00
parent 26b6891160
commit 57b38c01c0
5 changed files with 225 additions and 96 deletions

21
src/grammar.json generated
View file

@ -86,8 +86,25 @@
"value": "[_\\p{XID_Start}][_\\p{XID_Continue}]*"
},
"integer_literal": {
"type": "PATTERN",
"value": "[0-9]+"
"type": "SEQ",
"members": [
{
"type": "CHOICE",
"members": [
{
"type": "STRING",
"value": "-"
},
{
"type": "BLANK"
}
]
},
{
"type": "PATTERN",
"value": "[0-9]+"
}
]
}
},
"extras": [