# yyc

> 中文编程解释器, YY language complier

Latest version **1.4.10** (published 2021-03-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install yyc
pnpm add yyc
yarn add yyc
bun add yyc
```

Provides the command `yyc`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.10 |
| Published | 2021-03-20 |
| First published | 2021-02-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=14.15.4 |
| Dependencies | 0 |
| Unpacked size | 51.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | qian.zhang |
| Maintainers | qianzhang |
| Keywords | js, yy, parser, compiler, bison, node, chinese-programming |

## Links

- npm: https://www.npmjs.com/package/yyc
- Repository: https://github.com/FIRESIDE-STORY/yyc
- Homepage: https://github.com/FIRESIDE-STORY/yyc#readme
- Issues: https://github.com/FIRESIDE-STORY/yyc/issues
- npm.io page: https://npm.io/package/yyc

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.4.10 (latest) — 2021-03-20
- 1.4.9 — 2021-03-17
- 1.4.8 — 2021-03-16
- 1.4.7 — 2021-03-15
- 1.4.6 — 2021-02-19
- 1.4.5 — 2021-02-19
- 1.4.4 — 2021-02-19
- 1.4.3 — 2021-02-17
- 1.4.2 — 2021-02-17
- 1.4.1 — 2021-02-16
- 1.4.0 — 2021-02-16

## README

[English](README_en.md)&nbsp;&nbsp;&nbsp;&nbsp;
[Deutsche](README_en.md)
### 说明

YYC是一个小型解释器, 可实现中文编程, 并支持Node.js扩展.

---
---


### 安装

可以使用npm安装yyc
```bash
npm install yyc -g
```

编译执行
```bash
yyc demo.yy
```

### 举例

![avatar](./demo.gif)

```javascript
特征 唐诗宋词 {
  基态(人物) {
    此.人物 = 人物
  }

  曰() {
    匹配(此.人物) {
      场景 '李白':
        打印('故人西辞黄鹤楼, 烟花三月下扬州')
        返回
      场景 '张继':
        打印("姑苏城外寒山寺, 夜半钟声到客船")
        返回
      场景 '苏轼':
        打印(`人生如逆旅，我亦是行人`)
        返回
      默认:
        打印('选择: 李白 | 张继 | 苏轼')
        返回
    }
  }

}

定义 李白 = 唐诗宋词.基态('李白')
定义 张继 = 唐诗宋词.基态('张继')
定义 苏轼 = 唐诗宋词.基态('苏轼')

李白.曰()
张继.曰()
苏轼.曰()
```


* [文档](doc/doc.md)
* [项目](doc/projects.md)

---
Y-Y
---

---
_Source: https://npm.io/package/yyc · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
