Skip to content

Commit

Permalink
Version 0.12.0: conform to Uiua-0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shnarazk committed Oct 20, 2024
1 parent 9efbf32 commit f68684e
Show file tree
Hide file tree
Showing 5 changed files with 66,242 additions and 54,852 deletions.
5 changes: 3 additions & 2 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

- WIP conform to Uiua-0.13.0

### 0.12.0: 2024-10-XX
### 0.12.0: 2024-10-20

- WIP conform to Uiua-0.12.0
- conform to Uiua-0.12.0
- add some missing constants

### 0.11.2: 2024-10-20

Expand Down
93 changes: 75 additions & 18 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,31 @@ module.exports = grammar({
token('Blue'),
token('Purple'),
token('Magenta'),
// FIXME: add Flags
// Flags
token('Gay'),
token('Lesbian'),
token('Bi'),
token('Trans'),
token('Pan'),
token('Ace'),
token('Aro'),
token('Aroace'),
token('Enby'),
token('Fluid'),
token('Queer'),
token('Agender'),
token('PrideFlags'),
token('PrideFlagNames'),
// External
token('True'),
token('False'),
token('NULL'),
// Media
token('Logo'),
token('Lena'),
token('Music'),
token('Lorem'),
// System
token('Os'),
token('Family'),
token('Arch'),
Expand All @@ -108,15 +129,18 @@ module.exports = grammar({
token('ThisFile'),
token('ThisFileName'),
token('ThisFileDir'),
token('WorkingDIr'),
token('NumProcs'),
// FIXME: add Fun, Media

// Since 0.11.0
token('ThisFile'),
token('ThisFileName'),
token('ThisFileDir'),
token('WorkingDir'),
token('NumProcs'),
// Fun
token('Planets'),
token('Zodiac'),
token('Suits'),
token('Cards'),
token('Chess'),
token('Moon'),
token('Skin'),
token('People'),
token('Hair'),

// End of other constants
),
Expand Down Expand Up @@ -161,6 +185,7 @@ module.exports = grammar({
$.function,
$.modifier1,
$.modifier2,
$.macro,
$.deprecated,
),
constant: $ => choice(
Expand Down Expand Up @@ -363,9 +388,6 @@ module.exports = grammar({
// (2, Find, DyadicArray, ("find", '⌕')),
token('find'),
token('⌕'),
// (2, Member, DyadicArray, ("member", '∊')),
token('member'),
token('∊'),
// (2, IndexOf, DyadicArray, ("indexof", '⊗')),
token('indexof'),
token('⊗'),
Expand Down Expand Up @@ -397,7 +419,7 @@ module.exports = grammar({
// (0(0)[1], Dump, Stack, "dump"),
token('dump'),
token('regex'),
token('utf'),
// token('utf'),

// Since 0.0.23
token('send'),
Expand Down Expand Up @@ -434,15 +456,27 @@ module.exports = grammar({
token('mask'),
token('⦷'),
token('csv'),
token('coordinate'),
token('⟔'),

// Since 0.11
token('λ'),
token('⋊'),
// Since 0.11.0
token('json'),
token('xlsx'),

// Since 0.12.0
token('memberOf'),
token('∈'),

token('imen'),
token('gife'),
token('auden'),
token('utf₈'),
token('datetime'),
token('chunk'),
token('⑄'),
token('choose'),
token('permute'),
token('orient'),
token('fft'),

// End of function
),
modifier1: $ => choice(
Expand Down Expand Up @@ -496,6 +530,17 @@ module.exports = grammar({
token('stringify'),
token('signature'),

token('triangle'),
token('◹'),
token('astar'),
token('but'),
token('⤙'),
token('with'),
token('⤚'),
token('above'),
token('◠'),
token('below'),
token('◡'),
// End of modifier1
),
modifier2: $ => choice(
Expand Down Expand Up @@ -548,6 +593,9 @@ module.exports = grammar({

// End of modifier2
),
macro: $ => choice(
token('struct'),
),
deprecated: $ => choice(
token('❥'),
token('→'),
Expand Down Expand Up @@ -586,6 +634,15 @@ module.exports = grammar({
token('strands'),
token('‿'),

// Since 0.12.0
// (2, Member, DyadicArray, ("member", '∊')),
token('member'),
token('∊'),
token('coordinate'),
token('⟔'),
token('λ'),
token('⋊'),

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

0 comments on commit f68684e

Please sign in to comment.