Skip to content

Commit

Permalink
Version 0.6.0 for Uiua-0.4.0 (#18)
Browse files Browse the repository at this point in the history
* add new glyphs introduced by Uiua-0.4.0
*  deprecate `⟜`
  • Loading branch information
shnarazk authored Nov 30, 2023
1 parent 9260f11 commit 321018c
Show file tree
Hide file tree
Showing 7 changed files with 6,562 additions and 4,804 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tree-sitter-uiua"
description = "Uiua grammar for the tree-sitter parsing library"
version = "0.3.3"
version = "0.6.0"
keywords = ["incremental", "parsing", "Uiua"]
categories = ["parsing", "text-editors"]
repository = "https://github.com/tree-sitter/tree-sitter-uiua"
Expand Down
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 16 additions & 3 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,13 @@ module.exports = grammar({
token('pack'),
token('⊐'),

// Since 0.24
token('reach'),
token('⟜'),
// Since 0.4.0
token('rectify'),
token('⌅'),
token('this'),
token('↬'),
token('recur'),
token('↫'),
),
modifier2: $ => choice(
// (2[1], Fold, AggregatingModifier, ("fold", '∧')),
Expand Down Expand Up @@ -447,6 +451,12 @@ module.exports = grammar({
// Since 0.26
token('do'),
token('⍢'),

// Since 0.4.0
token('all'),
token('⋔'),
token('setinv'),
token('setunder'),
),
deprecated: $ => choice(
token('❥'),
Expand All @@ -462,6 +472,9 @@ module.exports = grammar({
token('≑'),
token('≐'),
token('∺'),

// Since 0.4.0
token('⟜'),
),
// _whitespace: $ => /[ \t]+/,
_endOfLine:$ => token(/\r?\n/),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tree-sitter-uiua",
"version": "0.3.3",
"version": "0.6.0",
"description": "parser for Uiua",
"main": "bindings/node",
"scripts": {
Expand Down
67 changes: 65 additions & 2 deletions src/grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -2071,14 +2071,42 @@
"type": "TOKEN",
"content": {
"type": "STRING",
"value": "reach"
"value": "rectify"
}
},
{
"type": "TOKEN",
"content": {
"type": "STRING",
"value": ""
"value": ""
}
},
{
"type": "TOKEN",
"content": {
"type": "STRING",
"value": "this"
}
},
{
"type": "TOKEN",
"content": {
"type": "STRING",
"value": ""
}
},
{
"type": "TOKEN",
"content": {
"type": "STRING",
"value": "recur"
}
},
{
"type": "TOKEN",
"content": {
"type": "STRING",
"value": ""
}
}
]
Expand Down Expand Up @@ -2253,6 +2281,34 @@
"type": "STRING",
"value": ""
}
},
{
"type": "TOKEN",
"content": {
"type": "STRING",
"value": "all"
}
},
{
"type": "TOKEN",
"content": {
"type": "STRING",
"value": ""
}
},
{
"type": "TOKEN",
"content": {
"type": "STRING",
"value": "setinv"
}
},
{
"type": "TOKEN",
"content": {
"type": "STRING",
"value": "setunder"
}
}
]
},
Expand Down Expand Up @@ -2335,6 +2391,13 @@
"type": "STRING",
"value": ""
}
},
{
"type": "TOKEN",
"content": {
"type": "STRING",
"value": ""
}
}
]
},
Expand Down
38 changes: 37 additions & 1 deletion src/node-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,10 @@
"type": "absolute value",
"named": false
},
{
"type": "all",
"named": false
},
{
"type": "assert",
"named": false
Expand Down Expand Up @@ -786,7 +790,11 @@
"named": false
},
{
"type": "reach",
"type": "rectify",
"named": false
},
{
"type": "recur",
"named": false
},
{
Expand Down Expand Up @@ -845,6 +853,14 @@
"type": "send",
"named": false
},
{
"type": "setinv",
"named": false
},
{
"type": "setunder",
"named": false
},
{
"type": "shape",
"named": false
Expand Down Expand Up @@ -889,6 +905,10 @@
"type": "tau",
"named": false
},
{
"type": "this",
"named": false
},
{
"type": "transpose",
"named": false
Expand Down Expand Up @@ -1017,6 +1037,14 @@
"type": "",
"named": false
},
{
"type": "",
"named": false
},
{
"type": "",
"named": false
},
{
"type": "",
"named": false
Expand Down Expand Up @@ -1181,6 +1209,10 @@
"type": "",
"named": false
},
{
"type": "",
"named": false
},
{
"type": "",
"named": false
Expand All @@ -1189,6 +1221,10 @@
"type": "",
"named": false
},
{
"type": "",
"named": false
},
{
"type": "",
"named": false
Expand Down
Loading

0 comments on commit 321018c

Please sign in to comment.