Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/LucasMW/Headache
Programming Language that compiles to 8 Bit Brainfuck
https://github.com/LucasMW/Headache
ast bf brainfuck c compiler esolang esoteric esoteric-language esoteric-programming-language headache language programming-language translator transpiler
Last synced: 3 months ago
JSON representation
Programming Language that compiles to 8 Bit Brainfuck
- Host: GitHub
- URL: https://github.com/LucasMW/Headache
- Owner: LucasMW
- License: mit
- Created: 2017-06-01T03:17:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-20T17:25:12.000Z (11 months ago)
- Last Synced: 2024-03-26T16:02:56.124Z (10 months ago)
- Topics: ast, bf, brainfuck, c, compiler, esolang, esoteric, esoteric-language, esoteric-programming-language, headache, language, programming-language, translator, transpiler
- Language: C
- Homepage: https://headache.surge.sh
- Size: 29.6 MB
- Stars: 82
- Watchers: 4
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- AwesomeCompiler - Headache
README
# 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