Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arcj137442/babelnar.jl
一个统一NARS各计算机实现的通用输入输出接口 | A unified IO interface of CINs (NARS Computer Implementations)
https://github.com/arcj137442/babelnar.jl
Last synced: about 6 hours ago
JSON representation
一个统一NARS各计算机实现的通用输入输出接口 | A unified IO interface of CINs (NARS Computer Implementations)
- Host: GitHub
- URL: https://github.com/arcj137442/babelnar.jl
- Owner: ARCJ137442
- License: lgpl-3.0
- Created: 2023-11-03T19:09:15.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-14T12:57:41.000Z (2 months ago)
- Last Synced: 2024-09-14T23:05:28.236Z (2 months ago)
- Language: Julia
- Homepage:
- Size: 116 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# BabelNAR.jl
![GitHub License](https://img.shields.io/github/license/ARCJ137442/BabelNAR.jl?style=for-the-badge&color=a270ba)
![Code Size](https://img.shields.io/github/languages/code-size/ARCJ137442/BabelNAR.jl?style=for-the-badge&color=a270ba)
![Lines of Code](https://www.aschey.tech/tokei/github.com/ARCJ137442/BabelNAR.jl?style=for-the-badge&color=a270ba)
[![Language](https://img.shields.io/badge/language-Julia%201.8+-purple?style=for-the-badge&color=a270ba)](https://cn.julialang.org/)开发状态:
![Created At](https://img.shields.io/github/created-at/ARCJ137442/BabelNAR.jl?style=for-the-badge)
![Last Commit](https://img.shields.io/github/last-commit/ARCJ137442/BabelNAR.jl?style=for-the-badge)[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?style=for-the-badge)](https://conventionalcommits.org)
## 简介
基于[**JuNarsese**](https://github.com/ARCJ137442/JuNarsese.jl)、[**JuNarsese Parsers**](https://github.com/ARCJ137442/JuNarseseParsers.jl)、[**NAVM**](https://github.com/ARCJ137442/NAVM.jl)的CIN(NARS计算机实现)接口
- 前身自[**JuNEI**](https://github.com/ARCJ137442/JuNEI.jl)的「CIN」模块分离
- 原 `JuNEI/Interface` 现成为 `BabelNAR/CIN`
- 旨在方便连接各类CIN,并通过**Websocket**等服务提供**通用统一交互接口**。## 概念
### CIN (Computer Implement of NARS)
- 「NARS计算机实现」之英文缩写
- 指代所有**实现NARS**的计算机软件系统
- 不要求完整实现NAL 1~9### ***CommonNarsese***
🔗参考[**NAVM.jl**的对应部分](https://github.com/ARCJ137442/navm.jl?tab=readme-ov-file#commonnarsese)
## 安装
作为一个**Julia包**,您只需:
1. 在安装`Pkg`包管理器的情况下,
2. 在REPL(`julia.exe`)运行如下代码:```julia
using Pkg
Pkg.add(url="https://github.com/ARCJ137442/BabelNAR.jl")
```## 使用
🔗参考[BabelNAR_Implements](https://github.com/ARCJ137442/BabelNAR_Implements)的具体实现
## 代码规范 Notes
### 文件头部注释
形如
```julia
# ! be included in: 【文件名】.jl @ module 【模块名】
```的文件头代码,意味着该文件夹将被包含在名为【文件名】文件的名为【模块名】的模块中。
这同样约定了:1:`【文件名】.jl`中会出现如下形式的代码:
```julia
module 【模块名】
# ...
include("XXX/【文件名】.jl")
# ...
end
```2:当前文件中的所有的`export 【符号名】`语句,将会从名为【模块名】的模块里导出名为【符号名】的符号,如:
```julia
# ! be included in: CIN.jl @ module CIN
export inputType
```将意味着模块`CIN`将会导出符号`inputType`——这使得其可通过`using CIN: inputType`访问
## 参考
### 依赖
- [JuNarsese](https://github.com/ARCJ137442/JuNarsese.jl)
- [NAVM](https://github.com/ARCJ137442/NAVM.jl)
- [BabelNAR](https://github.com/ARCJ137442/BabelNAR.jl)