0ainterpreter

中文文档
0.8.7发布于 2021/08/07LGPL-2.1CommonJS

Basic node.js command line interpreter for a custom language.

原始使用文档
文档目录4 节
  1. About
  2. Currently Includes
  3. Links
  4. License

0a Interpreter

Note that 0aInterpreter is meant to be used as a CLI, if using from npm inside of a javascript file with require or import use buildLaunch() to create a batch file to launch 0aInterpreter. If launched from npm into a javascript file, use the run() function to run a command from your file. Note that configuration files, file loading, and custom commands are disabled if running by import and require.

If downloading from github, make sure you use the typescript compiler to compile the typescript files into javascript files. 0aInterpreter can be run from package/core/index.js after being compiled.

If downloading from npm, it is recommended that you run buildLaunch() and then use the generated batch file to run 0aInterpreter.

About

I tried to create a basic programming language interpreter for a simple language with little features and simple syntax.

Please note that I made this just for fun, and used it to learn more typescript than I already knew.

Currently Includes

  • Simple syntax
  • Easy to use custom function system
  • Simple to understand configuration system for configuring permissions

License

The 0a Interpreter is licensed under the GNU Lesser General Public License v2.1 license. For more information of limits and permissions view the license page.

https://github.com/0aoq/0aInterpreter/blob/main/LICENSE

版本与发布记录

0ainterpreter 共发布 15 个版本,首次发布于 2021/07/13;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.8.7latest2021/08/075 年前
0.8.62021/07/145 年前
0.8.52021/07/145 年前
0.8.42021/07/145 年前
0.8.32021/07/145 年前
0.8.22021/07/145 年前

关于 0ainterpreter 的常见问题

0ainterpreter 是什么?

用于自定义语言的基本node.js命令行解释器。

如何安装 0ainterpreter?

在项目目录运行 npm install 0ainterpreter,或使用 pnpm add / yarn add / bun add。

0ainterpreter 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/0ainterpreter 是否存在。

0ainterpreter 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

0ainterpreter 可以商用吗?

0ainterpreter 使用 LGPL-2.1 许可。弱 Copyleft:作为库被调用时通常不要求开源你自己的代码,但修改库本身需以 LGPL 开源;前端打包合并后的适用边界存在不同理解。以上为概括,不构成法律意见,请以许可原文为准。

0ainterpreter 还在维护吗?

最新版本 0.8.7 发布于 2021/08/07(5 年前);至今共发布 15 个版本,其中过去 12 个月发布了 0 个;首次发布于 2021/07/13。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。