Skip to content

Commit 9e6ef2e

Browse files
committed
add missing subscripts
1 parent 0f82d8e commit 9e6ef2e

File tree

2 files changed

+25
-9
lines changed

2 files changed

+25
-9
lines changed

src/flisp/julia_opsuffs.h

+24-9
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
produced by:
55
6-
for c in "²³¹ʰʲʳʷʸˡˢˣᴬᴮᴰᴱᴳᴴᴵᴶᴷᴸᴹᴺᴼᴾᴿᵀᵁᵂᵃᵇᵈᵉᵍᵏᵐᵒᵖᵗᵘᵛᵝᵞᵟᵠᵡᵢᵣᵤᵥᵦᵧᵨᵩᵪᶜᶠᶥᶦᶫᶰᶸᶻᶿ ⁰ⁱ⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾ⁿₐₑₒₓₕₖₗₘₙₚₛₜⱼⱽ" * "′″‴‵‶‷⁗"
6+
for c in sort(unique(collect("₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎²³¹ʰʲʳʷʸˡˢˣᴬᴮᴰᴱᴳᴴᴵᴶᴷᴸᴹᴺᴼᴾᴿᵀᵁᵂᵃᵇᵈᵉᵍᵏᵐᵒᵖᵗᵘᵛᵝᵞᵟᵠᵡᵢᵣᵤᵥᵦᵧᵨᵩᵪᶜᶠᶥᶦᶫᶰᶸᶻᶿ ⁰ⁱ⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾ⁿₐₑₒₓₕₖₗₘₙₚₛₜⱼⱽ" * "′″‴‵‶‷⁗")))
77
println(" ", repr(UInt32(c)), ", // ", c)
88
end
99
*/
@@ -74,6 +74,13 @@ static const uint32_t opsuffs[] = {
7474
0x00001dbb, // ᶻ
7575
0x00001dbf, // ᶿ
7676
0x00002009, //  
77+
0x00002032, // ′
78+
0x00002033, // ″
79+
0x00002034, // ‴
80+
0x00002035, // ‵
81+
0x00002036, // ‶
82+
0x00002037, // ‷
83+
0x00002057, // ⁗
7784
0x00002070, // ⁰
7885
0x00002071, // ⁱ
7986
0x00002074, // ⁴
@@ -88,6 +95,21 @@ static const uint32_t opsuffs[] = {
8895
0x0000207d, // ⁽
8996
0x0000207e, // ⁾
9097
0x0000207f, // ⁿ
98+
0x00002080, // ₀
99+
0x00002081, // ₁
100+
0x00002082, // ₂
101+
0x00002083, // ₃
102+
0x00002084, // ₄
103+
0x00002085, // ₅
104+
0x00002086, // ₆
105+
0x00002087, // ₇
106+
0x00002088, // ₈
107+
0x00002089, // ₉
108+
0x0000208a, // ₊
109+
0x0000208b, // ₋
110+
0x0000208c, // ₌
111+
0x0000208d, // ₍
112+
0x0000208e, // ₎
91113
0x00002090, // ₐ
92114
0x00002091, // ₑ
93115
0x00002092, // ₒ
@@ -101,12 +123,5 @@ static const uint32_t opsuffs[] = {
101123
0x0000209b, // ₛ
102124
0x0000209c, // ₜ
103125
0x00002c7c, // ⱼ
104-
0x00002c7d, // ⱽ
105-
0x00002032, // ′
106-
0x00002033, // ″
107-
0x00002034, // ‴
108-
0x00002035, // ‵
109-
0x00002036, // ‶
110-
0x00002037, // ‷
111-
0x00002057 // ⁗
126+
0x00002c7d // ⱽ
112127
};

test/parse.jl

+1
Original file line numberDiff line numberDiff line change
@@ -1216,6 +1216,7 @@ end
12161216
@test parse("3 +̂ 4") == Expr(:call, :+̂, 3, 4)
12171217
@test parse("3 +̂′ 4") == Expr(:call, :+̂′, 3, 4)
12181218
@test parse("3 +⁽¹⁾ 4") == Expr(:call, :+⁽¹⁾, 3, 4)
1219+
@test parse("3 +₍₀₎ 4") == Expr(:call, :+₍₀₎, 3, 4)
12191220
@test Base.operator_precedence(:+̂) == Base.operator_precedence(:+)
12201221

12211222
# issue #19351

0 commit comments

Comments
 (0)