Add comments

This commit is contained in:
Bruno BELANYI 2024-04-07 22:20:57 +01:00
parent bc06816b57
commit 26b6891160
5 changed files with 250 additions and 69 deletions

17
src/grammar.json generated
View file

@ -17,6 +17,19 @@
}
]
},
"comment": {
"type": "SEQ",
"members": [
{
"type": "STRING",
"value": "#"
},
{
"type": "PATTERN",
"value": ".*"
}
]
},
"assignment": {
"type": "SEQ",
"members": [
@ -81,6 +94,10 @@
{
"type": "PATTERN",
"value": "\\s+"
},
{
"type": "SYMBOL",
"name": "comment"
}
],
"conflicts": [],