Skip to content

Commit

Permalink
Generated Sample Programs website automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Dec 22, 2023
1 parent 40a8854 commit 88e7b92
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ layout: default
title: Sample Programs in Every Language
---

Welcome to Sample Programs in Every Language, a collection of code snippets in as many languages as possible. Thanks for taking an interest in our collection which currently contains 1014 articles written by 230 authors.
Welcome to Sample Programs in Every Language, a collection of code snippets in as many languages as possible. Thanks for taking an interest in our collection which currently contains 1015 articles written by 230 authors.

If you'd like to contribute to this growing collection, check out our [contributing document](https://github.com/TheRenegadeCoder/sample-programs/blob/master/.github/CONTRIBUTING.md) for more information. In addition, you can explore our documentation which is organized by [project](/projects) and by [language](/languages). If you don't find what you're look for, check out our list of related [open-source projects](/related). Finally, if code isn't your thing but you'd still like to help, there are plenty of other ways to [support the project](https://therenegadecoder.com/updates/5-ways-you-can-support-the-renegade-coder/).
4 changes: 2 additions & 2 deletions docs/languages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ layout: default
title: Programming Languages
---

Welcome to the Languages page! Here, you'll find a list of all of the languages represented in the collection. At this time, there are 152 languages, of which 151 are tested, and 825 code snippets.
Welcome to the Languages page! Here, you'll find a list of all of the languages represented in the collection. At this time, there are 152 languages, of which 151 are tested, and 826 code snippets.

## Language Collections by Letter

Expand Down Expand Up @@ -259,7 +259,7 @@ The 'U' collection contains 1 language, of which 1 is tested, and 4 code snippet

### V

The 'V' collection contains 5 languages, of which 5 are tested, and 10 code snippets.
The 'V' collection contains 5 languages, of which 5 are tested, and 11 code snippets.

- [V](https://sampleprograms.io/languages/v)
- [Verilog](https://sampleprograms.io/languages/verilog)
Expand Down
3 changes: 2 additions & 1 deletion docs/languages/verve/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
date: 2021-05-24
featured-image: programming-languages.jpg
last-modified: 2021-05-24
last-modified: 2023-12-21
layout: default
tags:
- verve
Expand All @@ -16,4 +16,5 @@ No 'Description' section available. [Please consider contributing](https://githu

## Articles

- [Fizz Buzz in Verve](https://sampleprograms.io/projects/fizz-buzz/verve)
- [Hello World in Verve](https://sampleprograms.io/projects/hello-world/verve)
1 change: 1 addition & 0 deletions docs/projects/fizz-buzz/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ Verify that the actual output matches the expected output
- [Fizz Buzz in Tex](https://sampleprograms.io/projects/fizz-buzz/tex)
- [Fizz Buzz in Typescript](https://sampleprograms.io/projects/fizz-buzz/typescript)
- [Fizz Buzz in Unicat](https://sampleprograms.io/projects/fizz-buzz/unicat)
- [Fizz Buzz in Verve](https://sampleprograms.io/projects/fizz-buzz/verve)
- [Fizz Buzz in Vimscript](https://sampleprograms.io/projects/fizz-buzz/vimscript)
- [Fizz Buzz in Visual Basic](https://sampleprograms.io/projects/fizz-buzz/visual-basic)
- [Fizz Buzz in X86 64](https://sampleprograms.io/projects/fizz-buzz/x86-64)
Expand Down
55 changes: 55 additions & 0 deletions docs/projects/fizz-buzz/verve/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
authors:
- rzuckerm
date: 2023-12-21
featured-image: fizz-buzz-in-every-language.png
last-modified: 2023-12-21
layout: default
tags:
- fizz-buzz
- verve
title: Fizz Buzz in Verve
---

Welcome to the [Fizz Buzz](https://sampleprograms.io/projects/fizz-buzz) in [Verve](https://sampleprograms.io/languages/verve) page! Here, you'll find the source code for this program as well as a description of how the program works.

## Current Solution

{% raw %}

```verve
fn fizz_buzz_line(n: Int) -> String {
match [n % 3, n % 5] {
case [0, 0]: "FizzBuzz"
case [0, _]: "Fizz"
case [_, 0]: "Buzz"
case _: to_string(n)
}
}
fn fizz_buzz(start: Int, end: Int) {
if not(start > end) {
print(fizz_buzz_line(start))
fizz_buzz(start + 1, end)
}
}
fizz_buzz(1, 100)
```

{% endraw %}

Fizz Buzz in [Verve](https://sampleprograms.io/languages/verve) was written by:

- rzuckerm

If you see anything you'd like to change or update, [please consider contributing](https://github.com/TheRenegadeCoder/sample-programs).

## How to Implement the Solution

No 'How to Implement the Solution' section available. [Please consider contributing](https://github.com/TheRenegadeCoder/sample-programs-website).

## How to Run the Solution

No 'How to Run the Solution' section available. [Please consider contributing](https://github.com/TheRenegadeCoder/sample-programs-website).

0 comments on commit 88e7b92

Please sign in to comment.