Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
1
Task/Quine/Extended-Color-BASIC/quine.basic
Normal file
1
Task/Quine/Extended-Color-BASIC/quine.basic
Normal file
|
|
@ -0,0 +1 @@
|
|||
10 LIST
|
||||
1
Task/Quine/REBOL/quine-1.rebol
Normal file
1
Task/Quine/REBOL/quine-1.rebol
Normal file
|
|
@ -0,0 +1 @@
|
|||
Rebol [] q: [print ["Rebol [] q:" mold q "do q"]] do q
|
||||
14
Task/Quine/REBOL/quine-2.rebol
Normal file
14
Task/Quine/REBOL/quine-2.rebol
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
;; A Rebol quine - a program that outputs its own source code
|
||||
;; This demonstrates self-referential code and metaprogramming concepts
|
||||
|
||||
Rebol [] ;; Standard Rebol header (minimal version)
|
||||
|
||||
q: [ ;; Define q as a block containing the program logic
|
||||
print [ ;; Print function to output the result
|
||||
"Rebol [] q:" ;; First part: literal string for the header and variable declaration
|
||||
mold q ;; Second part: convert the block q back to its source representation
|
||||
"do q" ;; Third part: literal string for the execution command
|
||||
]
|
||||
]
|
||||
|
||||
do q ;; Execute the block q, which prints the entire program
|
||||
|
|
@ -1 +0,0 @@
|
|||
rebol [] q: [print ["rebol [] q:" mold q "do q"]] do q
|
||||
Loading…
Add table
Add a link
Reference in a new issue