Skip to content

Commit

Permalink
Conform to Uiua-0.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shnarazk committed Oct 24, 2024
1 parent 79ad3d4 commit 3f5c840
Show file tree
Hide file tree
Showing 4 changed files with 64,060 additions and 61,646 deletions.
52 changes: 38 additions & 14 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ module.exports = grammar({
token('Skin'),
token('People'),
token('Hair'),
token('Lorem'),
// Iamage
token('Cat'),

// End of other constants
),
Expand Down Expand Up @@ -185,7 +188,7 @@ module.exports = grammar({
$.function,
$.modifier1,
$.modifier2,
$.macro,
// $.macro,
$.deprecated,
),
constant: $ => choice(
Expand Down Expand Up @@ -470,12 +473,20 @@ module.exports = grammar({
token('auden'),
token('utf₈'),
token('datetime'),
token('chunk'),
token('⑄'),
token('choose'),
token('permute'),
token('orient'),
token('⤸'),
token('fft'),
token('graphemes'),
token('timezone'),
token('around'),
token('’'),
token('base'),
token('sort'),
token('⍆'),
token('last'),
token('⊣'),

// End of function
),
Expand Down Expand Up @@ -533,14 +544,24 @@ module.exports = grammar({
token('triangle'),
token('◹'),
token('astar'),
token('but'),
token('⤙'),
token('with'),
token('⤙'),
token('off'),
token('⤚'),
token('above'),
token('◠'),
token('below'),
token('◡'),

// Since 0.13.0
token('anti'),
token('⌝'),
token('obverse'),
token('⌅'),
token('toples'),
token('⧅'),
token('[₁₂₃₄₅₆₇₈₉₀]')

// End of modifier1
),
modifier2: $ => choice(
Expand Down Expand Up @@ -579,10 +600,6 @@ module.exports = grammar({
token('do'),
token('⍢'),

// Since 0.4.0
token('setinv'),
token('setunder'),

// Since 0.9.0
token('f'),

Expand All @@ -593,9 +610,9 @@ module.exports = grammar({

// End of modifier2
),
macro: $ => choice(
token('struct'),
),
// macro: $ => choice(
// token('struct'),
// ),
deprecated: $ => choice(
token('❥'),
token('→'),
Expand Down Expand Up @@ -631,8 +648,8 @@ module.exports = grammar({
// token('types'), removed at 0.11.0

// Since 0.11.0
token('strands'),
token('‿'),
// token('strands'),
// token('‿'),

// Since 0.12.0
// (2, Member, DyadicArray, ("member", '∊')),
Expand All @@ -643,6 +660,13 @@ module.exports = grammar({
token('λ'),
token('⋊'),

// Since 0.13.0
token('chunk'),
token('⑄'),
token('setinv'),
token('setund'),
token('struct'),

// End of deprecated
),
// _whitespace: $ => /[ \t]+/,
Expand Down
Loading

0 comments on commit 3f5c840

Please sign in to comment.