https://github.com/megaing/tc-exports
Various files and documentations for the export formats for the game Turing Complete
https://github.com/megaing/tc-exports
Last synced: about 1 year ago
JSON representation
Various files and documentations for the export formats for the game Turing Complete
- Host: GitHub
- URL: https://github.com/megaing/tc-exports
- Owner: MegaIng
- Created: 2022-09-27T18:14:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-27T20:49:53.000Z (over 3 years ago)
- Last Synced: 2025-01-26T02:29:59.768Z (over 1 year ago)
- Language: Verilog
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Turing Complete export formats
This repo contains the various files needed for the export implementations in the game [Turing Complete](https://turingcomplete.game).
It does not contain the actual implementations of the export formats, those are build into the game itself.
## Templates
Some files are templates. A very simple templating engine is implemented: The brackets are customizable, by default it's `{name}`, but for C++ it's `{[name]}`.
There are three patterns currently implemented:
- `{name}`, which is just replaced by the provided value
- `{?name} ... {/name}`, which is "conditional inclusion", so the content is only copied over when the provided value for `name` is `true`.
- `{?!name} ... {/name}` indicates the opposite of the above option, so it's only included if the provided value is `false`
## Formats
### verilog
Produces verilog files from schematics. Uses the various prebuild files in /verilog_files.
A bit of documentation for the export process is in [verilog_export.md](verilog_export.md)
### VHDL
Under construction
Will use the files under /vhdl_files
### C
Potentially planned, no promises at the moment :-)