From 8d4b4ab8f44fe08dfa783060a86df89a41dcac2e Mon Sep 17 00:00:00 2001 From: rzuckerm Date: Wed, 23 Aug 2023 19:26:43 -0500 Subject: [PATCH] Add Hello World in Unicat (#3225) --- archive/g/gnu-make/README.md | 2 +- archive/u/unicat/README.md | 67 ++++++++++++++++++++++++++++++++ archive/u/unicat/hello-world.cat | 26 +++++++++++++ archive/u/unicat/testinfo.yml | 8 ++++ 4 files changed, 102 insertions(+), 1 deletion(-) create mode 100644 archive/u/unicat/README.md create mode 100644 archive/u/unicat/hello-world.cat create mode 100644 archive/u/unicat/testinfo.yml diff --git a/archive/g/gnu-make/README.md b/archive/g/gnu-make/README.md index f8a2a0301..a8ba670ab 100644 --- a/archive/g/gnu-make/README.md +++ b/archive/g/gnu-make/README.md @@ -10,7 +10,7 @@ In this section, we feature a list of completed and missing programs in Gnu Make Below, you'll find a list of completed code snippets in Gnu Make. Code snippets preceded by :warning: link to a GitHub issue query featuring a possible article request issue. If an article request issue doesn't exist, we encourage you to create one. Meanwhile, code snippets preceded by :white_check_mark: link to an existing article which provides further documentation. To see the list of approved projects, check out the official Sample Programs projects list. -- :warning: [Baklava in Gnu Make](https://github.com//TheRenegadeCoder/sample-programs-website/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+baklava+gnu+make) [[Requirements](https://sampleprograms.io/projects/baklava)] +- :white_check_mark: [Baklava in Gnu Make](https://sampleprograms.io/projects/baklava/gnu-make) [[Requirements](https://sampleprograms.io/projects/baklava)] - :white_check_mark: [File Input Output in Gnu Make](https://sampleprograms.io/projects/file-input-output/gnu-make) [[Requirements](https://sampleprograms.io/projects/file-input-output)] - :white_check_mark: [Fizz Buzz in Gnu Make](https://sampleprograms.io/projects/fizz-buzz/gnu-make) [[Requirements](https://sampleprograms.io/projects/fizz-buzz)] - :white_check_mark: [Hello World in Gnu Make](https://sampleprograms.io/projects/hello-world/gnu-make) [[Requirements](https://sampleprograms.io/projects/hello-world)] diff --git a/archive/u/unicat/README.md b/archive/u/unicat/README.md new file mode 100644 index 000000000..0f063f032 --- /dev/null +++ b/archive/u/unicat/README.md @@ -0,0 +1,67 @@ +# Sample Programs in Unicat + +Welcome to Sample Programs in Unicat! To find documentation related to the Unicat code in this repo, look [here.](https://sampleprograms.io/languages/unicat) + +## Sample Programs List - 1/37 :disappointed: + +In this section, we feature a list of completed and missing programs in Unicat. See above for the current amount of completed programs in Unicat. If you see a program that is missing and would like to add it, please submit an issue, so we can assign it to you. + +### Completed Programs + +Below, you'll find a list of completed code snippets in Unicat. Code snippets preceded by :warning: link to a GitHub issue query featuring a possible article request issue. If an article request issue doesn't exist, we encourage you to create one. Meanwhile, code snippets preceded by :white_check_mark: link to an existing article which provides further documentation. To see the list of approved projects, check out the official Sample Programs projects list. + +- :warning: [Hello World in Unicat](https://github.com//TheRenegadeCoder/sample-programs-website/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+hello+world+unicat) [[Requirements](https://sampleprograms.io/projects/hello-world)] + +### Missing Programs + +The following list contains all of the approved programs that are not currently implemented in Unicat. Click on the name of the project to easily open an issue in GitHub. Alternatively, click requirements to check out the description of the project. + +- :x: [Baklava](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,baklava&template=code-snippet-request.md&title=Add+Baklava+in+Unicat) [[Requirements](https://sampleprograms.io/projects/baklava)] +- :x: [Binary Search](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,binary+search&template=code-snippet-request.md&title=Add+Binary+Search+in+Unicat) [[Requirements](https://sampleprograms.io/projects/binary-search)] +- :x: [Bubble Sort](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,bubble+sort&template=code-snippet-request.md&title=Add+Bubble+Sort+in+Unicat) [[Requirements](https://sampleprograms.io/projects/bubble-sort)] +- :x: [Capitalize](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,capitalize&template=code-snippet-request.md&title=Add+Capitalize+in+Unicat) [[Requirements](https://sampleprograms.io/projects/capitalize)] +- :x: [Convex Hull](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,convex+hull&template=code-snippet-request.md&title=Add+Convex+Hull+in+Unicat) [[Requirements](https://sampleprograms.io/projects/convex-hull)] +- :x: [Depth First Search](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,depth+first+search&template=code-snippet-request.md&title=Add+Depth+First+Search+in+Unicat) [[Requirements](https://sampleprograms.io/projects/depth-first-search)] +- :x: [Dijkstra](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,dijkstra&template=code-snippet-request.md&title=Add+Dijkstra+in+Unicat) [[Requirements](https://sampleprograms.io/projects/dijkstra)] +- :x: [Duplicate Character Counter](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,duplicate+character+counter&template=code-snippet-request.md&title=Add+Duplicate+Character+Counter+in+Unicat) [[Requirements](https://sampleprograms.io/projects/duplicate-character-counter)] +- :x: [Even Odd](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,even+odd&template=code-snippet-request.md&title=Add+Even+Odd+in+Unicat) [[Requirements](https://sampleprograms.io/projects/even-odd)] +- :x: [Factorial](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,factorial&template=code-snippet-request.md&title=Add+Factorial+in+Unicat) [[Requirements](https://sampleprograms.io/projects/factorial)] +- :x: [Fibonacci](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,fibonacci&template=code-snippet-request.md&title=Add+Fibonacci+in+Unicat) [[Requirements](https://sampleprograms.io/projects/fibonacci)] +- :x: [File Input Output](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,file+input+output&template=code-snippet-request.md&title=Add+File+Input+Output+in+Unicat) [[Requirements](https://sampleprograms.io/projects/file-input-output)] +- :x: [Fizz Buzz](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,fizz+buzz&template=code-snippet-request.md&title=Add+Fizz+Buzz+in+Unicat) [[Requirements](https://sampleprograms.io/projects/fizz-buzz)] +- :x: [Fraction Math](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,fraction+math&template=code-snippet-request.md&title=Add+Fraction+Math+in+Unicat) [[Requirements](https://sampleprograms.io/projects/fraction-math)] +- :x: [Insertion Sort](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,insertion+sort&template=code-snippet-request.md&title=Add+Insertion+Sort+in+Unicat) [[Requirements](https://sampleprograms.io/projects/insertion-sort)] +- :x: [Job Sequencing](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,job+sequencing&template=code-snippet-request.md&title=Add+Job+Sequencing+in+Unicat) [[Requirements](https://sampleprograms.io/projects/job-sequencing)] +- :x: [Josephus Problem](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,josephus+problem&template=code-snippet-request.md&title=Add+Josephus+Problem+in+Unicat) [[Requirements](https://sampleprograms.io/projects/josephus-problem)] +- :x: [Linear Search](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,linear+search&template=code-snippet-request.md&title=Add+Linear+Search+in+Unicat) [[Requirements](https://sampleprograms.io/projects/linear-search)] +- :x: [Longest Common Subsequence](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,longest+common+subsequence&template=code-snippet-request.md&title=Add+Longest+Common+Subsequence+in+Unicat) [[Requirements](https://sampleprograms.io/projects/longest-common-subsequence)] +- :x: [Longest Palindromic Substring](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,longest+palindromic+substring&template=code-snippet-request.md&title=Add+Longest+Palindromic+Substring+in+Unicat) [[Requirements](https://sampleprograms.io/projects/longest-palindromic-substring)] +- :x: [Longest Word](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,longest+word&template=code-snippet-request.md&title=Add+Longest+Word+in+Unicat) [[Requirements](https://sampleprograms.io/projects/longest-word)] +- :x: [Maximum Array Rotation](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,maximum+array+rotation&template=code-snippet-request.md&title=Add+Maximum+Array+Rotation+in+Unicat) [[Requirements](https://sampleprograms.io/projects/maximum-array-rotation)] +- :x: [Maximum Subarray](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,maximum+subarray&template=code-snippet-request.md&title=Add+Maximum+Subarray+in+Unicat) [[Requirements](https://sampleprograms.io/projects/maximum-subarray)] +- :x: [Merge Sort](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,merge+sort&template=code-snippet-request.md&title=Add+Merge+Sort+in+Unicat) [[Requirements](https://sampleprograms.io/projects/merge-sort)] +- :x: [Minimum Spanning Tree](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,minimum+spanning+tree&template=code-snippet-request.md&title=Add+Minimum+Spanning+Tree+in+Unicat) [[Requirements](https://sampleprograms.io/projects/minimum-spanning-tree)] +- :x: [Palindromic Number](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,palindromic+number&template=code-snippet-request.md&title=Add+Palindromic+Number+in+Unicat) [[Requirements](https://sampleprograms.io/projects/palindromic-number)] +- :x: [Prime Number](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,prime+number&template=code-snippet-request.md&title=Add+Prime+Number+in+Unicat) [[Requirements](https://sampleprograms.io/projects/prime-number)] +- :x: [Quick Sort](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,quick+sort&template=code-snippet-request.md&title=Add+Quick+Sort+in+Unicat) [[Requirements](https://sampleprograms.io/projects/quick-sort)] +- :x: [Quine](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,quine&template=code-snippet-request.md&title=Add+Quine+in+Unicat) [[Requirements](https://sampleprograms.io/projects/quine)] +- :x: [Remove All Whitespace](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,remove+all+whitespace&template=code-snippet-request.md&title=Add+Remove+All+Whitespace+in+Unicat) [[Requirements](https://sampleprograms.io/projects/remove-all-whitespace)] +- :x: [Reverse String](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,reverse+string&template=code-snippet-request.md&title=Add+Reverse+String+in+Unicat) [[Requirements](https://sampleprograms.io/projects/reverse-string)] +- :x: [Roman Numeral](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,roman+numeral&template=code-snippet-request.md&title=Add+Roman+Numeral+in+Unicat) [[Requirements](https://sampleprograms.io/projects/roman-numeral)] +- :x: [Rot13](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,rot13&template=code-snippet-request.md&title=Add+Rot13+in+Unicat) [[Requirements](https://sampleprograms.io/projects/rot13)] +- :x: [Selection Sort](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,selection+sort&template=code-snippet-request.md&title=Add+Selection+Sort+in+Unicat) [[Requirements](https://sampleprograms.io/projects/selection-sort)] +- :x: [Sleep Sort](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,sleep+sort&template=code-snippet-request.md&title=Add+Sleep+Sort+in+Unicat) [[Requirements](https://sampleprograms.io/projects/sleep-sort)] +- :x: [Transpose Matrix](https://github.com/TheRenegadeCoder/sample-programs/issues/new?assignees=&labels=enhancement,transpose+matrix&template=code-snippet-request.md&title=Add+Transpose+Matrix+in+Unicat) [[Requirements](https://sampleprograms.io/projects/transpose-matrix)] + +## Testing + +The following list shares details about what we're using to test all Sample Programs in Unicat. + +- Docker Image: esolang/unicat +- Docker Tag: latest + +See the [Glotter2 project](https://github.com/rzuckerm/glotter2) for more information on how to create a testinfo file. + +*** + +This page was generated automatically by the Sample Programs READMEs tool. Find out how to support [this project](https://github.com/TheRenegadeCoder/sample-programs-readmes) on Github. \ No newline at end of file diff --git a/archive/u/unicat/hello-world.cat b/archive/u/unicat/hello-world.cat new file mode 100644 index 000000000..47b2900ee --- /dev/null +++ b/archive/u/unicat/hello-world.cat @@ -0,0 +1,26 @@ +πŸ˜»πŸ˜ΉπŸ˜ΈπŸ™€πŸ™€πŸ˜ΉπŸ˜ΉπŸ˜ΈπŸ™€πŸ™€ Memory 0 = 0o110 (72 = 'H') +πŸ˜½πŸ˜ΌπŸ˜ΈπŸ™€πŸ™€ Output memory 0 +πŸ˜»πŸ˜ΉπŸ˜ΈπŸ™€πŸ™€πŸ˜ΉπŸ˜ΌπŸ˜½πŸ™€πŸ™€ Memory 0 = 0o145 (101 = 'e') +πŸ˜½πŸ˜ΌπŸ˜ΈπŸ™€πŸ™€ Output memory 0 +πŸ˜»πŸ˜ΉπŸ˜ΈπŸ™€πŸ™€πŸ˜ΉπŸ˜½πŸ˜ΌπŸ™€πŸ™€ Memory 0 = 0o154 (108 = 'l') +πŸ˜½πŸ˜ΌπŸ˜ΈπŸ™€πŸ™€ Output memory 0 +πŸ˜½πŸ˜ΌπŸ˜ΈπŸ™€πŸ™€ Output memory 0 +πŸ˜»πŸ˜ΉπŸ˜ΉπŸ™€πŸ™€πŸ˜ΉπŸ˜½πŸ˜ΏπŸ™€πŸ™€ Memory 1 = 0o157 (111 = 'o') +πŸ˜½πŸ˜ΌπŸ˜ΉπŸ™€πŸ™€ Output memory 1 +πŸ˜»πŸ˜ΉπŸ˜ΊπŸ™€πŸ™€πŸ˜½πŸ˜ΌπŸ™€πŸ™€ Memory 2 = 0o54 (44 = ',') +πŸ˜½πŸ˜ΌπŸ˜ΊπŸ™€πŸ™€ Output memory 2 +πŸ˜»πŸ˜ΉπŸ˜ΊπŸ™€πŸ™€πŸ˜ΌπŸ˜ΈπŸ™€πŸ™€ Memory 2 = 0o40 (32 = ' ') +πŸ˜½πŸ˜ΌπŸ˜ΊπŸ™€πŸ™€ Output memory 2 +πŸ˜»πŸ˜ΉπŸ˜ΊπŸ™€πŸ™€πŸ˜ΉπŸ˜ΊπŸ˜ΏπŸ™€πŸ™€ Memory 2 = 0o127 (87 = 'W') +πŸ˜½πŸ˜ΌπŸ˜ΊπŸ™€πŸ™€ Output memory 2 +πŸ˜½πŸ˜ΌπŸ˜ΉπŸ™€πŸ™€ Output memory 1 ('o') +πŸ˜»πŸ˜ΉπŸ˜ΊπŸ™€πŸ™€πŸ˜ΉπŸ˜ΎπŸ˜ΊπŸ™€πŸ™€ Memory 2 = 0o162 (114 = 'r') +πŸ˜½πŸ˜ΌπŸ˜ΊπŸ™€πŸ™€ Output memory 2 +πŸ˜½πŸ˜ΌπŸ˜ΈπŸ™€πŸ™€ Output memory 0 ('l') +πŸ˜»πŸ˜ΉπŸ˜ΊπŸ™€πŸ™€πŸ˜ΉπŸ˜ΌπŸ˜ΌπŸ™€πŸ™€ Memory 2 = 0o144 (100 = 'd') +πŸ˜½πŸ˜ΌπŸ˜ΊπŸ™€πŸ™€ Output memory 2 +πŸ˜»πŸ˜ΉπŸ˜ΊπŸ™€πŸ™€πŸ˜ΌπŸ˜ΉπŸ™€πŸ™€ Memory 2 = 0o41 (33 = '!') +πŸ˜½πŸ˜ΌπŸ˜ΊπŸ™€πŸ™€ Output memory 2 +πŸ˜»πŸ˜ΉπŸ˜ΊπŸ™€πŸ™€πŸ˜ΉπŸ˜ΊπŸ™€πŸ™€ Memory 2 = 0o12 (10 = '\n') +πŸ˜½πŸ˜ΌπŸ˜ΊπŸ™€πŸ™€ Output memory 2 +πŸ™€πŸ™€ Exit diff --git a/archive/u/unicat/testinfo.yml b/archive/u/unicat/testinfo.yml new file mode 100644 index 000000000..2a12c269c --- /dev/null +++ b/archive/u/unicat/testinfo.yml @@ -0,0 +1,8 @@ +folder: + extension: ".cat" + naming: "hyphen" + +container: + image: "esolang/unicat" + tag: "latest" + cmd: "unicat {{ source.name }}{{ source.extension }}"