Releases: CookieX-a/JsonSharp
Releases · CookieX-a/JsonSharp
J#-0.1.0-Beta
J# v0.1.0 Beta (en-uk)
We're excited to announce the first beta release of J#, a JSON-driven scripting language. Write your programs using standard JSON objects, with support for variables, arithmetic, conditions, loops, functions, file I/O, HTTP requests, and much more.
🚀 Features
- Standard JSON syntax — every command is a valid JSON object (multiline supported)
- Variables & expressions — arithmetic and string interpolation
- Conditionals & loops —
if/elseif/else,whilewith compound conditions (&&,||) - Functions — user-defined with parameters and return values
- Cross-project calls — reuse other project blocks
- File I/O —
readfile,writefile - Arrays —
list_create,list_add,list_get, etc. - Strings — length, substring, replace, trim, uppercase/lowercase, concat, split, join
- Math —
math_sqrt,math_abs,math_ceil,math_floor,math_round,math_sin,math_cos,math_log,math_pow,math_random - Networking —
http_getandhttp_post - Time & sleep —
time_now,sleep - Type conversion & encoding —
conv_int,conv_float,conv_str,base64_encode,base64_decode - Regular expressions —
regex_match,regex_find,regex_replace - Interactive REPL with persistent variables
- Multi-project parallel execution
🛠️ Quick Start
Make sure you have JDK 21 or higher installed, then run:
java -jar jsharp-0.1.0-beta.jar hello.jsharpor start the interactive REPL:
java -jar jsharp-0.1.0-beta.jarJ# v0.1.0 Beta(zh-cn)
我们激动地宣布 J# 的首个公开测试版本!J# 是一门 JSON 驱动的脚本语言——你可以使用标准 JSON 对象编写程序,并享受变量、计算、条件、循环、函数、文件读写、网络请求等丰富功能。
🚀 主要特性
- 标准 JSON 语法 — 每条命令都是合法 JSON 对象(支持多行)
- 变量与表达式 — 支持算术运算和字符串插值
- 条件与循环 —
if/elseif/else,while,复合条件(&&、||) - 函数 — 可自定义参数和返回值
- 跨项目调用 — 复用其他项目块
- 文件读写 —
readfile、writefile - 数组 — 创建、添加、获取、设置、删除等
- 字符串 — 长度、子串、替换、去空格、大小写、拼接、分割、连接
- 数学库 — 开方、绝对值、上下取整、三角函数、对数、乘方、随机数
- 网络请求 —
http_get和http_post - 时间与暂停 —
time_now、sleep - 类型转换与编码 — 整数/浮点/字符串转换,Base64 编解码
- 正则表达式 — 匹配、查找、替换
- 交互式 REPL(变量持久化)
- 多项目并行执行
Enjoy J# — a language where your code is also your data.