Commit Graph

186 Commits

Author SHA1 Message Date
27cf09cad0 消除UTF8_iterator编译警告 2026-02-03 19:41:24 +08:00
45e18cc773 规范 include 2026-02-03 19:20:51 +08:00
4535f75058 修复了函数调用时求值类型使用的作用域错误的问题。结构体中现在可以使用自己 2026-02-03 18:49:40 +08:00
01c16dee3f [Feat] 支持运算符重载!详见文档或 Library/lang/lang.fig中的定义。通过 impl Operation for xxx实现重载
[Impl] 函数参数指定现在也接受一个 exp,逐渐改动其他中...
2026-02-02 16:11:08 +08:00
41bff72d44 这是一条 msg. ( 正文:error log修改。新增std.tester。parser precedence重写 2026-02-01 20:01:59 +08:00
aea716ced2 回档之后的重写。部分问题修复。添加了什么我也忘了 2026-02-01 15:52:28 +08:00
61bffdc743 文档与readme更新 2026-02-01 13:59:20 +08:00
ca4ae143b4 v0.4.2-alpha
All checks were successful
Release Build / build-windows-x64 (push) Successful in 43s
Release Build / build-linux-x64 (push) Successful in 50s
[Fix][Impl] 为了消除类构造带来的语法歧义,同时保持实现简洁和括号省略的语法,自此版本,引入了 `new` 操作符
            造成歧义的原方法:
                if a == A{}
            条件是 a == A,还是 a == A{} ?

            因此,现在使用 new a_struct{}来构造类
[Opti] 相较于 Fig v0.4.1-alpha版本,release O3同编译条件下
       Fib普通递归法性能提升 ~50%
       具体方式:
            增加了小整数优化,-128~127的整数现在会直接从IntPool获取而不是新构造
            ...忘了
[Fix] 类构造 shorthand模式忘写了,现在补上了
[Feat][Impl] 类型声明现在接受一个表达式,原为Identifier。实现 var start: time.Time = time.now() 的效果
             这是符合语法和语言特性的支持,类型为一等公民。类似Python的 <class 'type'>

[Impl] 修改了部分错误输出的细节
v0.4.2-alpha
2026-01-22 08:24:14 +08:00
21641f888e 恢复原来的构建逻辑
All checks were successful
Release Build / build-windows-x64 (push) Successful in 2m55s
Release Build / build-linux-x64 (push) Successful in 4m41s
v0.4.1-alpha
2026-01-19 17:33:52 +08:00
def69e031f qswl x3 2026-01-19 17:26:46 +08:00
009a70fc64 气死我了x2 2026-01-19 17:24:29 +08:00
e01b4e9849 气死我了 2026-01-19 17:19:12 +08:00
da262a4cf1 尝试修复 build.yml 版本构建 2026-01-19 17:09:44 +08:00
f76e28ee8d 修改 build action 2026-01-19 16:57:57 +08:00
a324cf17f6 尝试修复windows构建版本获取问题,代码是ds写的。我不会actions
Some checks failed
Release Build / build-windows-x64 (push) Failing after 32s
Release Build / build-linux-x64 (push) Has been cancelled
2026-01-19 16:27:14 +08:00
caf058dd55 [VER] v0.4.1-alpha
Some checks failed
Release Build / build-windows-x64 (push) Failing after 3m2s
Release Build / build-linux-x64 (push) Has been cancelled
[Fix] 修复struct定义创建instanceCtx时拷贝类方法错误的Bug,表现在同一类的2个不同实例内置函数一样的问题
      (即 addr A != addr B, addr A.method == addr B.method)
      修复后为 (addr A != addr B, addr A.method != addr B.method)
      方法的closureContext指向instance的Context
      修复后 std.time可以正常使用
2026-01-19 16:10:12 +08:00
9e3f17711f [VER] 0.4.0-alpha
All checks were successful
Release Build / build-windows-x64 (push) Successful in 54s
Release Build / build-linux-x64 (push) Successful in 1m21s
[Fix] 修复恶性Bug: Parser: parseExpression没有正确解析二元表达式,没有用到 right binding power的问题,表现在生成类似 a * b * c时,结果为 a * (b * c) 的Bug
[Impl][Fix] 修复跨文件(如import)报错信息错误的问题,现在Ast跟踪保存文件信息,报错统一从Error父类获取
[...] 忘了,好困不管了
v0.4.0-alpha
2026-01-19 04:13:55 +08:00
d398d457b5 [VER] v0.3.9-alpha
All checks were successful
Release Build / build-windows-x64 (push) Successful in 1m0s
Release Build / build-linux-x64 (push) Successful in 1m2s
[Feat] is 操作符现在可以直接判断内置数据类型, 如 10 is Int
[Fix] evalMemberExpr的lhs可以为右值,修复原来限制为左值的BUG,如调用一个函数返回结果为struct且访问member触发此bug
[Impl] 可更换的std::dynamic_pointer_cast更换为static版本,更快!
[Feat] 增加标准库 std.time,以及用到的builtin: __ftime_now_ns,但目前 Time类有点BUG
[...] 剩下的忘了
v0.3.9-alpha
2026-01-15 17:51:01 +08:00
ccf80536b3 [Fix] 蠢蛋clang!
All checks were successful
Release Build / build-windows-x64 (push) Successful in 47s
Release Build / build-linux-x64 (push) Successful in 58s
v0.3.8-alpha
2026-01-14 21:35:48 +08:00
13fdbec0c4 [VER] v0.3.8-alpha
Some checks failed
Release Build / build-linux-x64 (push) Failing after 18s
Release Build / build-windows-x64 (push) Successful in 46s
[Impl][Fix] 更改resolveModulePath实现,使用绝对路径查找内置库
2026-01-14 21:31:11 +08:00
99e00492f5 删除蠢蛋注释
All checks were successful
Release Build / build-windows-x64 (push) Successful in 46s
Release Build / build-linux-x64 (push) Successful in 59s
v0.3.7-alpha
2026-01-14 17:37:27 +08:00
310d79acc5 我忘记改版本号了
Some checks failed
Release Build / build-windows-x64 (push) Failing after 48s
Release Build / build-linux-x64 (push) Successful in 58s
2026-01-14 17:34:24 +08:00
e28921ae02 [VER] 0.3.7-alpha
[Fix] 修复科学表达式数字解析的问题(Lexer引起) 由 Satklomi发现,感谢
[Feat] 增加Compiler相关定义,将开发BytecodeVM
[Tip] Evaluator进入Bug fix阶段,新功能延缓开发。转向VM
2026-01-14 17:28:38 +08:00
1ccc63419d [VER] v0.3.6-alpha 发布, 完整的Installer已准备!
All checks were successful
Release Build / build-windows-x64 (push) Successful in 58s
Release Build / build-linux-x64 (push) Successful in 1m0s
[w] Change log 在之前的提交
v0.3.6-alpha
2026-01-04 14:51:32 +08:00
3b5e99242f [Action] 尝试修复win打包计算问题 2026-01-04 14:22:33 +08:00
85bdab5db3 [Action] 重写win发布
Some checks failed
Release Build / build-windows-x64 (push) Failing after 43s
Release Build / build-linux-x64 (push) Successful in 54s
2026-01-04 14:19:38 +08:00
cabe15c581 [CI] Docker镜像安装libpython
Some checks failed
Release Build / build-windows-x64 (push) Successful in 54s
Release Build / build-linux-x64 (push) Has been cancelled
dev-build
2026-01-04 14:01:06 +08:00
57fd8ead4c [CI] linux安装器构建使用兼容dash的方式 2026-01-04 13:59:25 +08:00
2d0651cc3e [CI] Docker容器增加venv依赖 2026-01-04 01:31:00 +08:00
34b2bf0545 [CI] Linux构建使用venv杜绝冲突 2026-01-04 01:24:35 +08:00
8addd51cc7 [CI] Linux安装器尝试修复 2026-01-04 01:19:48 +08:00
903f621ca5 [CI] 让Python在linux镜像中提前安装 2026-01-04 01:08:09 +08:00
1cae0fb849 [CI] 让 Linux安装器构建先安装python 2026-01-04 01:05:27 +08:00
c93840af5f [VER] v0.3.6-alpha
Some checks failed
Release Build / build-linux-x64 (push) Failing after 26s
Release Build / build-windows-x64 (push) Failing after 34s
[Feat] 增加控制台在线安装器 !
[Impl] 修改ExampleCodes的一些实现,使用最新库 std.io
2026-01-04 00:51:11 +08:00
893eb1050f [CI] 尝试修复win打包 2026-01-03 22:59:36 +08:00
64deaafb65 [CI] 尝试修复windows发布bug 2026-01-03 22:57:16 +08:00
af607ad26f [CI] windows设置toolchain mingw 2026-01-03 22:51:56 +08:00
b75830f6b1 [CI] windows build 取消 toolchain设置 2026-01-03 22:49:41 +08:00
1679f50e54 [CI] windows修复
Some checks failed
Release Build / build-windows-x64 (push) Failing after 4s
Release Build / build-linux-x64 (push) Successful in 26s
2026-01-03 22:43:06 +08:00
d5ac32a5ad [CI] ag5 2026-01-03 22:36:32 +08:00
91def51579 [CI] ag3 2026-01-03 22:34:16 +08:00
779a530dd1 [CI] againn 2026-01-03 22:30:12 +08:00
4326e14681 [CI] again 2026-01-03 22:29:15 +08:00
0e8928099f [CI] win 设置版本 2026-01-03 22:26:56 +08:00
17d1978f2b [CI] 不小心写到linux了 2026-01-03 22:23:16 +08:00
227c156942 [CI] windows ps 难搞捏 2026-01-03 22:22:09 +08:00
6fc0fd7f49 [CI] windows ps修复~ 2026-01-03 22:15:46 +08:00
4f71fa09cf [CI] 去掉windows安装xmake 2026-01-03 22:07:23 +08:00
f67a43f159 [CI] Windows工具链验证修复
Some checks failed
Release Build / build-windows-x64 (push) Failing after 4s
Release Build / build-linux-x64 (push) Successful in 23s
2026-01-03 22:03:24 +08:00
b382a0bca5 [CI] 修复上传 2026-01-03 21:57:39 +08:00