https://github.com/vgsantoniazzi/tiny-lang
tiny-lang — A different programming language. Supports a bunch of spoken languages.
https://github.com/vgsantoniazzi/tiny-lang
compiler compiler- compiler-construction compiler-design compiler-frontend compilers interpreter interpreters just-in-time language programming-language
Last synced: 10 months ago
JSON representation
tiny-lang — A different programming language. Supports a bunch of spoken languages.
- Host: GitHub
- URL: https://github.com/vgsantoniazzi/tiny-lang
- Owner: vgsantoniazzi
- Created: 2015-06-11T13:16:42.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-08-28T14:58:31.000Z (over 5 years ago)
- Last Synced: 2025-04-05T20:11:08.973Z (10 months ago)
- Topics: compiler, compiler-, compiler-construction, compiler-design, compiler-frontend, compilers, interpreter, interpreters, just-in-time, language, programming-language
- Language: C++
- Homepage:
- Size: 371 KB
- Stars: 29
- Watchers: 0
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
## Welcome to Tiny lang
This project is an open-source interpreter based on C++. The proposal of this repository is understand interpreters and build a new one based on my own syntax.
## Getting Started
Clone the project:
```
git clone git@github.com:vgsantoniazzi/tiny-lang.git
```
[Install Google test](https://code.google.com/p/googletest/)
## Usage
##### Compile
```
make
```
##### Run
```
make run
```
##### Docs
Generate doxygen docs
```
make docs
```
### Run in other language
Create tokens file (based on `tokens/` dir files and run your examples based on `examples/` dir)
```
make run FILE=examples/portugues.tl TOKENS=tokens/portugues.yml
```
##### Format code
```
make format
```
##### Install
```
make install
```
##### Clean
```
make clean
```
To run manually, open bin/run
## Contributing
I :heart: Open source!
Before sending a pull request: Please, format the source code
```
bin/format
```
[Follow github guides for forking a project](https://guides.github.com/activities/forking/)
[Follow github guides for contributing open source](https://guides.github.com/activities/contributing-to-open-source/#contributing)
[Squash pull request into a single commit](http://eli.thegreenplace.net/2014/02/19/squashing-github-pull-requests-into-a-single-commit/)
## Code status
[](https://travis-ci.org/vgsantoniazzi/tiny-lang)
## License
Tiny lang is released under the [MIT license](http://opensource.org/licenses/MIT).