Skip to content

J#-0.1.0-Beta

Choose a tag to compare

@CookieX-a CookieX-a released this 18 Jun 10:20
· 4 commits to main since this release

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 & loopsif/elseif/else, while with compound conditions (&&, ||)
  • Functions — user-defined with parameters and return values
  • Cross-project calls — reuse other project blocks
  • File I/Oreadfile, writefile
  • Arrayslist_create, list_add, list_get, etc.
  • Strings — length, substring, replace, trim, uppercase/lowercase, concat, split, join
  • Mathmath_sqrt, math_abs, math_ceil, math_floor, math_round, math_sin, math_cos, math_log, math_pow, math_random
  • Networkinghttp_get and http_post
  • Time & sleeptime_now, sleep
  • Type conversion & encodingconv_int, conv_float, conv_str, base64_encode, base64_decode
  • Regular expressionsregex_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.jsharp

or start the interactive REPL:

java -jar jsharp-0.1.0-beta.jar

J# v0.1.0 Beta(zh-cn)

我们激动地宣布 J# 的首个公开测试版本!J# 是一门 JSON 驱动的脚本语言——你可以使用标准 JSON 对象编写程序,并享受变量、计算、条件、循环、函数、文件读写、网络请求等丰富功能。

🚀 主要特性

  • 标准 JSON 语法 — 每条命令都是合法 JSON 对象(支持多行)
  • 变量与表达式 — 支持算术运算和字符串插值
  • 条件与循环if/elseif/elsewhile,复合条件(&&||
  • 函数 — 可自定义参数和返回值
  • 跨项目调用 — 复用其他项目块
  • 文件读写readfilewritefile
  • 数组 — 创建、添加、获取、设置、删除等
  • 字符串 — 长度、子串、替换、去空格、大小写、拼接、分割、连接
  • 数学库 — 开方、绝对值、上下取整、三角函数、对数、乘方、随机数
  • 网络请求http_gethttp_post
  • 时间与暂停time_nowsleep
  • 类型转换与编码 — 整数/浮点/字符串转换,Base64 编解码
  • 正则表达式 — 匹配、查找、替换
  • 交互式 REPL(变量持久化)
  • 多项目并行执行

Enjoy J# — a language where your code is also your data.