0ainterpreter 中文文档教程

发布于 3年前 浏览 16 项目主页 更新于 3年前

0a Interpreter

请注意,0aInterpreter 旨在用作 CLI,如果在带有 require 或 import 的 javascript 文件中使用 npm,请使用 buildLaunch() 创建批处理文件以启动 0aInterpreter。 如果从 npm 启动到 javascript 文件,请使用 run() 函数从您的文件运行命令。 请注意,如果通过 import 和 require 运行,配置文件、文件加载和自定义命令将被禁用。

如果从 github 下载,请确保使用 typescript 编译器将 typescript 文件编译为 javascript 文件。 0aInterpreter编译后可以从package/core/index.js运行。

如果从npm下载,建议运行buildLaunch(),然后使用生成的批处理文件运行0aInterpreter。

About

我试图为一种功能少、语法简单的简单语言创建一个基本的编程语言解释器。

请注意,我做这个只是为了好玩,并用它来学习比我已经知道的更多的打字稿。

Currently Includes

  • Simple syntax
  • Easy to use custom function system
  • Simple to understand configuration system for configuring permissions
  • Sourced at: https://github.com/0aoq/0aInterpreter
  • Documentation at: https://0aoq.github.io/0aInterpreter (0aInterpreter/docs)
  • Downloadable from npm (CLI)

License

0a Interpreter 根据 GNU Lesser General Public License v2.1 许可获得许可。 有关限制和权限的更多信息,请查看许可证页面

https://github.com/0aoq/0aInterpreter/blob/main/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
  • Sourced at: https://github.com/0aoq/0aInterpreter
  • Documentation at: https://0aoq.github.io/0aInterpreter (0aInterpreter/docs)
  • Downloadable from npm (CLI)

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

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文