Headache
所属分类:编程语言基础
开发工具:C
文件大小:0KB
下载次数:0
上传日期:2022-11-03 15:59:56
上 传 者:
sh-1993
说明: 编译为8位Brainfuck的编程语言
(Programming Language that compiles to 8 Bit Brainfuck)
文件列表:
.linguist.yml (641, 2022-11-03)
HomebrewFormula/ (0, 2022-11-03)
HomebrewFormula/headache.rb (402, 2022-11-03)
LICENSE (1057, 2022-11-03)
Makefile (7038, 2022-11-03)
examples/ (0, 2022-11-03)
examples/add.ha (69, 2022-11-03)
examples/bottlesofbeer.ha (385, 2022-11-03)
examples/buy.ha (97, 2022-11-03)
examples/calculator.ha (995, 2022-11-03)
examples/cat.ha (336, 2022-11-03)
examples/char.ha (169, 2022-11-03)
examples/countext.ha (123, 2022-11-03)
examples/divide.ha (265, 2022-11-03)
examples/doisNumeros.ha (474, 2022-11-03)
examples/example.ha (60, 2022-11-03)
examples/expanding.ha (148, 2022-11-03)
examples/experimental/ (0, 2022-11-03)
examples/experimental/ackerman.ha (714, 2022-11-03)
examples/experimental/interpreter.ha (468, 2022-11-03)
examples/experimental/recursion.ha (297, 2022-11-03)
examples/experimental/root.ha (364, 2022-11-03)
examples/experimental/sincos.ha (919, 2022-11-03)
examples/factorial.ha (217, 2022-11-03)
examples/factorial8.ha (217, 2022-11-03)
examples/foraDilma.ha (200, 2022-11-03)
examples/foraMaia.ha (208, 2022-11-03)
examples/func.ha (75, 2022-11-03)
examples/func2.ha (128, 2022-11-03)
examples/greaterex.ha (317, 2022-11-03)
examples/if.ha (90, 2022-11-03)
examples/ifex.ha (133, 2022-11-03)
examples/logo.ha (1931, 2022-11-03)
examples/lowercase.ha (535, 2022-11-03)
examples/masoque.ha (172, 2022-11-03)
... ...
# Headache
> Headache is a programming language that compiles to 8-Bit Brainfuck.
## Documentation
For documentation, please visit `Headache`'s wiki: https://github.com/LucasMW/Headache/wiki
## Support Headache
Help Headache launch on Homebrew. This repository needs __50 stargazers__ to become a `brew` package.
## Build
You may build the project by running `make`.
## Install
Run `make install` and the include `$HOME/.Headache/` in your `PATH` variable in order to enable `hac` and `bfi` in your shell.
## Usage
##### Compiling headache (.ha) files
In order to compile `headache` (.ha) files to `brainfuck`, run:
```
./hac file.ha
```
It generates and executes a brainfuck file named `a.bf`.
##### Options
###### Lexical analyzer
To run a lexical analyzer, execute:
```
./hac -lex
```
##### Syntactical Analyzer
To run a syntactical analyzer, execute:
```
./hac -syntax
```
##### AST
To output the current program's AST, execute:
```
./hac -tree
```
##### Warning and errors checking
To check for errors and warnings without compiling, execute:
```
./hac -check
```
## Tests
Execute `make test` to run the default tests.
##### Other test options
For testing only type checks, run:
```
make testchecks
```
For testing only the lexical scope, run:
```
make testlexical
```
For testing only the syntax scope, run:
```
make testsyntax
```
For testing only programs that are compiled and run successfully, run:
```
make testrunnable
```
### Donation Addresses:
Support Headache with cryptocurrency:
- `BTC`: 1NcdcAjkKj9ywiCfinwFi1W3QfsvFSFsAH
- `Doge`: D5wEBGcwLeBSQvwnBckco1EvQQcuXCBvRj
- `LTC`: Ldj6ax1CzdYFRbSiZjpCvcPoxQ2BvX42Kb
- `ZEC`: t1PsMPGuoZfD5YwAgmyd3j2cb8siysxR9fE
- `Dash`: Xt7qYtLiLx6mHR1fUeQVYiHgEbX7YNugM2
- `BCH`: 1NCYSnFb44ybHtzwG51cUYWLa67PZdsREG
- `XMR`: 4CTKuktQ8eQFriMu3xDALEawuu9iWQhFYffgffqgC3RHCWgcLGTG9oyNWgvLiAoDPpYUvsJmRkTAudGSXNqnRFsuT9LNU3Up81F2x3fzkj
近期下载者:
相关文件:
收藏者: