-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
笔记中的一些想法 #21
Comments
Playground 相关
|
再更新一波,越往下记录得越早。 完成这些后就暂时不碰本库了:
目前发现且要修复的 bug(没有长期记录价值,修好后直接把这里删掉。):
|
再记录一波由于准备将目前 “基于树遍历的解释器” 重写为 “基于字节码的虚拟机”,针对前者实现层面的改进将无限期推迟。 关于复杂计数计数方式可以为:
rojo 对此的处理: Playground
问题
杂项
2023/11/01 更新本来预计的阶段性收尾工作是:
目前只是完成了第一项中的一部分(尚未并入 main 分枝)。 Footnotes
|
打算在清扫完实现
reroll
、explode
的阻碍后将重心移到 rotext或其他地方,待到能将 rotext 与 dicexp 整合时再继续完成剩下的工作。
以下是一些记在笔记中,但没有单独开 issues 的想法:
一般
.
[1, 2, 3].(0)
=>1
[foo: 42].foo
=>
42
[foo: [bar: 42]].foo.bar
=>42
.
相区分?隐式转换?
2 * 3
这样的常量。#
右侧、不在闭包内)的随机取值操作提前求出。
d%
?Playground
这个问题阻挡着。
随便找个库加上 bar chart 不难。(私下已经做过了。)
但考虑到需要定制一些功能(分布、至少、至多光标悬浮同时高亮,同时显示数量和百分比,可能性过多时合并结果…),打算未来用
d3.js
手动实现。一行例子、一行说明。例子只举出相关的部分运算符,说明中举出全部。众所周知的运算符在说明中只列举,不阐述。
分以下几对:
1~10
--~
3d(4+5*6)
--+
、-
、*
、//
(整除)、%
(正数求余)、^
(幂)、d
、(
、)
3#d10
--#
reroll(3d10, \(x -> x <= 2))
==3d10 |> reroll \(x -> x <= 2)
--reroll
、explode
、闭包、(布尔值?)、|>
通常函数
identity/1
或id/1
。(还没确定好用哪个。)shuffle/1
。里提到。
限制
步骤展现
null
代表不能去掉括号),以让同优先级的运算内外去掉括号。
解析
/
,给一个解析错误,像是 “dicexp 仅支持整除,是否想用 “//”整除运算符?”。
杂项
callValue
里对左侧值的concretize
是不是该放在_yield
里?+1
总计 5 步,为什么?'a'~'z'
,但目前不打算引入字符串。还可以拓展到范围运算符。The text was updated successfully, but these errors were encountered: