Add negative integers
This commit is contained in:
parent
26b6891160
commit
57b38c01c0
5 changed files with 225 additions and 96 deletions
21
src/grammar.json
generated
21
src/grammar.json
generated
|
|
@ -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": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue