Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nyuuuukie/dr-quine
A simple programs that can produce itself
https://github.com/nyuuuukie/dr-quine
42ecole 42projects dr-quine
Last synced: 11 days ago
JSON representation
A simple programs that can produce itself
- Host: GitHub
- URL: https://github.com/nyuuuukie/dr-quine
- Owner: nyuuuukie
- Created: 2022-09-06T14:27:31.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-09T11:54:32.000Z (about 2 years ago)
- Last Synced: 2023-09-17T19:35:50.009Z (about 1 year ago)
- Topics: 42ecole, 42projects, dr-quine
- Language: Makefile
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dr-quine
## Description
The goal of this project is to write three quines.
A quine is a program whose output is equal to its source code.
This project is done using C, Asm ans JavaScript.
## Requirements
### Colleen
1. The source code should be printed in stdout
2. At least 1 comment in global scope
3. At least 1 comment inside function
4. One extra function that should be called inside main### Grace
1. The source code should be printed in Grace_kid.ext
2. At least 1 comment should present
3. Only three defines
4. No main declared### Sully
1. A variable equal to 5 should be declared in source
2. The source code should be printed in Sully_**X**.ext with a var decremented by 1
3. The program should compile Sully_**X**.ext (if necessary)
4. The result executable should be run if **X** > 0## Try
:warning: All the asm parts were written on Linux (Ubuntu 20.04, elf64)
Use `make` to compile project.
`make test` will run basic test for each quine.
There is also `make test2` for Sully.