https://github.com/colleagueriley/dna-lang
Very very simple example DNA based programming language
https://github.com/colleagueriley/dna-lang
Last synced: about 1 month ago
JSON representation
Very very simple example DNA based programming language
- Host: GitHub
- URL: https://github.com/colleagueriley/dna-lang
- Owner: ColleagueRiley
- License: mit
- Created: 2023-02-02T01:38:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-29T02:31:22.000Z (over 1 year ago)
- Last Synced: 2025-01-19T22:41:09.041Z (3 months ago)
- Language: C
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DNA LANG
Very very simple example DNA based programming languageconverts DNA to RNA then compiles or interprets as code
# Compiling
including the argument `-c` (after the file) will compile the DNA code, otherwise the code will be run as a script# base pairs
```
A T
G C
```Base pairs must be correct or there will be an error\
Pairs must be seperated by two spaces, as shown# Functions
ATG - print\
prints the next (STR) lineATC - input
# Statements
GCA - if# Operator
TGC - ==# Numbers
AAA - 0\
GGG - 1# Arguments
if an function requires an argument, the next line of the file will be passed as the argumenteg. print
```
A T
T A
G C
STR OUTPUT
```