Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/y1yang0/llmd
如果将markdown视作一门编程语言可以做哪些有趣的事情呢?
https://github.com/y1yang0/llmd
Last synced: about 1 month ago
JSON representation
如果将markdown视作一门编程语言可以做哪些有趣的事情呢?
- Host: GitHub
- URL: https://github.com/y1yang0/llmd
- Owner: y1yang0
- License: gpl-3.0
- Created: 2018-09-25T11:04:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-06T10:45:11.000Z (about 6 years ago)
- Last Synced: 2024-08-01T03:30:01.030Z (4 months ago)
- Language: C
- Homepage:
- Size: 8.7 MB
- Stars: 74
- Watchers: 6
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- stars - y1yang0/llmd
README
# Using markdown as a programming language
![](bin/source.png)
![](bin/exec.png)如果将markdown视作一门编程语言可以做哪些有趣的事情?这个项目就是为了解决这个好奇:
# 获取LLMD
## 推荐使用预编译版本:
+ [llmd-win-x86](./bin/llmd-win-x86.exe)## 源码构建:
三步即可编译得到**llmd**(需要在CMakeLists.txt中配置LLVM libs):
```bash
$ mkdir build && cd build && cmake .. && make
$ llmv your_markdown_file
```# markdown示例
> [你好,世界](example/helloworld.md)> 计算[斐波那契数列](example/fibonacci.md)
# 图灵完备的语法集
```comment // todo:注释[var](value) // 赋值(Literal,Arithmetic)
> hello `var` // 输出
`a+b` // 算术运算(+,-,*)
**label** // 跳转标记
![condition](tag) // 条件跳转(condition!=0)
```
# 计划
1. 如果给定的markdown源码无法满足编译要求会报错,而不是直接crash
2. ~~编译最终产物是对象文件或者库文件,可以与C系语言输出进行链接~~